Sending multiple variable's "last_value" in a webhook payload

I am trying to export the data from a device into another app. the target app can only take input every 5 mins, and I want to send it the current last_value of 6 variables from the same device.

I have set up a conditional event and added code to the payload, but it only send the last value of the “last” variable in the conditional stack.

I am using this code in the payload with the event conditional on temperature>=0 or tilt>=0 (so constantly sending every 5 min)

{“temperature”: " [variable] ", “tilt”: " [variable] ", “battery”: " [variable] ", “interval”: " [variable] ", “gravity”: " [variable] ", “rssi”: " [variable] " }

The output sent is…
“payload”: “{"temperature": "{‘name’: ‘tilt’, ‘id’: ‘67c1a9c10f65563694d4c8d2’, ‘properties’: {}, ‘last_value’: 36.59605, ‘timestamp’: 1741097268589, ‘last_value_context’: {}} ", "tilt": "36.59605 ", "battery": "36.59605 ", "interval": "36.59605 ", "gravity": "36.59605 ", "rssi": "36.59605 " }”

How can I get the event payload to send all 6 variable’s last value in one hit?

Hello @Prn72,

This is not possible to do using the events module. When you try to use the bookmarks, all of them will be associated with the variable that triggered the event.

In fact, you have only one condition on this event (I see it on your account), in this case, variable temperature:

This means that the Last value bookmark on the payload will always show the last value from temperature variable That’s why you see the same value on all the variables.

Please let me know if you have any questions.

Alejandro

Thankyou, so how do I send multiple variables and their values in one payload?

@Prn72 is not possible unfortunately.