Repository navigation
Flows Triggers device changed
Home > Flows > Triggers > A virtual device changed
Report a Device control change and its value.
Card ID: device_changed.
This app-wide trigger listens to changes handled by a Device control listener, not Mode changes. It has no arguments. It supplies three text tokens: device (current device name), variable (capability ID such as onoff), and value (the value converted to text, such as true). A Device with several capabilities can produce a separate event for each changed capability. An unchanged onoff is ignored. Direct sensor-value writes should not be relied on to trigger this listener.
Add a Device with onoff named Test switch. Create a Flow with this trigger and a notification action. Insert the device, variable, and value tokens in the notification text. Turn Test switch off and then on using its control. Expect a notification identifying Test switch, onoff, and true. If other Devices change, this app-wide trigger can also run.
Support development - If Virtual Devices is useful to you, you can support its
continued development through GitHub Sponsors,
Patreon,
PayPal, or
bunq.
Thank you!