Ubidots Community

Using Specific Device Properties for Event Notifications

Hi,

I am wondering if it is possible to reference specific device properties that I added (ex. location) when creating event trigger notifications. This would be just like the ability to reference “Device description”. I don’t know if something like “Device properties.location” works, but if I have a device with many properties I would like to be able to reference only the ones needed for the notification.

image

Thank you!

Hello @Backpacker87

You can indeed access a property of your device with the “Device properties” bookmark in the Event engine. Just double click the bookmark and use the dot (".") operator to access the property key. In your case it would be the “location” property:

bookmark-device-props

Note that the key of a property can be found by inspecting the Device property in the edit modal:

Best,

–David

What would be nice is if the device property could be a trigger level. A really good example would be in the trigger: battery_level is less than battery_level_alarm (a property) for XX minutes.

That way you could create a global event with different battery types. I’m assuming this IS possible using Functions but I haven’t gotten there yet!