#Trigger on all events from a remote.

1 messages · Page 1 of 1 (latest)

wise mango
#

I've got a 4 button remote and I plan to use it to control a light, I'd love to code it in a way that I have everything on the same automation so I can just duplicate the automation, change the ID of the remote, the one of the light and everything else just works.

My issue (for now) are the triggers. I can't use a variable to store the device id of the remote and then use it on the triggers as it seems it's not supported.
So I thought... can I have the automation trigger on ALL events from the remote and then have a "choose:" action based on the event that triggered it?

Also I'm open to any other solution that I might have missed 😄

(If it matters, both the remotes and the lights are ZHA devices, might want to add shutters to the remote too, shelly ones, but one thing at a time :D)

nova finch
#

Hello @wise mango,
That is the definition of a blueprint...
Write the automation, then convert it to a blueprint. One of the most obvious inputs would be

the ID of the remote

#

Then just make an automation for each remote with new data for each and the same blueprint.