Listen to Device Status Change Event
A Product
might have many properties, for example, a Thermometer has Temperature
and Humidity
. A Device
is an instance of a Product
, so each device has an instantiated copy of the properties. When the value of these property changes, we call it Device Status Change
. In IoT, this is a major trigger for the system to do something.
Add Node
Right-Click anywhere on canvas, select Event/Device Status Change
Drag and drop some device from the device list to the canvas.
Connect node
Connect the Device
node to the Device Status Change
noe. Now when any of the device's property value changes, the Device Status Change
node will be triggered, and our flow will be executed:
Listen only to one property change
If our device has multiple properties, and we only want to listen to one property change, we can connect the Property
handle of the Device Status Change
node:
Now, we will receive a message only when that specific property changes.