I’d like to have an automation trigger different actions depending on state (ideally scene state, but there’s no such thing so I’ll use a device from that scene instead).
What I’m thinking of doing is to create two versions of the automation and add conditions that check the state of the device to both. Is there a better way or will this work fine?
The objective is that during Movie mode, rotating the Xiaomi cube should control volume instead of light brightness.
I have a dumb receiver so I’ve mapped the IR codes for volume up and down to a Broadlink switch’s on and off commands.
Now, how do I check based on the trigger value to turn on or off the switch?