I’m trying to trigger a msg from a state change of a device, but want to use a flow variable to define the entity ID. In the below image, using the flow variable to get a state works (green circle), but when used as a trigger it never fires (red circle). Is this a limitation, or is there a better way to do this?
it’s a limitation. the entity id needs to be defined when you deploy so it knows what to listen for.
Use a events: all
with the event type set to state_changed
then a switch node to check if the entity id of the event is equal to the flow variable.
If your range of entity ids have a similar pattern you could use a events: state
node and with a regex expression.