Trigger custom tile from device

I have a situation where I have a custom tile, and I want to access it from a device or rule. In particular if a the device attribute changes (eg a light turns on or off) then this will trigger an event in the custom tile.
Is this possible?

Custom Tiles can access Things and Variables:

:link: Custom Tiles: Access to Things and Variables

Keep in mind that this is really intended for cases where you want to display device data or variable data within a Custom Tile.

If you want to run logic when an event occurs, that’s better suited for something like rules. Otherwise the event would occur in every instance of the Custom Tile that’s actively displayed and run multiple times (or none if none are displayed).

Thanks Josh. I had worked out how to get the device data to the custom tiles, but I couldn’t work out how to trigger an action in the custom tile.
However, it turns out the way I was trying to do it was far to complicated and I found a much easier way using a virtual switch and a few rules.
All working properly now.
Thanks again for your quick response.

1 Like