To make things simple for my wife I was hoping to use a column of RM433 keys (i.e. the left 4) for switching various lights on, but turn many/all off with ANY 2 (or more) of the right-hand keys.
I’m currently using a Sonoff RM433 via a Tasmota’d RF Bridge with MQTT and simple automation triggers. It works well with a single button code, but I’m struggling with what I’d have thought was a simple task to set a conditional OR so that the trigger happens when either of two (or more) buttons is pressed and codes received.
Is it my logic, syntax, timing?
The automation below works fine without the OR condition
Wow, response faster than a speeding bullet!
Many thanks Taras, that works perfectly!!! .
I’m not familiar enough with the syntax so wasn’t aware of the in [x, y] function, was only looking for some sort of OR statement. Must read up more, you’ve piqued my interest in what can be done. IT’s always good to be concise, as you have shown.
Out of interest and to educate me even further, may I ask why the long version doesn’t work?