I’m trying to make some logic work without the help of OpenHab/Home Assistant or Node-Red… but struggling to see if the following is possible:
I have 1 button for spot lights - with dimmer memory on/off on short press.
when I click that button… I want another channel to also switch on - lets call it light2
when I switch off the spot lights… the spots should switch off… but not light2
and the kicker:
If light2 was already off - and the spots are on - and I press spots to go off - light2 must stay off
so, in short - I need a conditional statement:
BUTTON_ACTION
IF {Spots == OFF
SEND ON to LIGHT2
} ENDIF
But how can I do this natively ?
At first I thought to do a virtual relay channel that would follow SPOTS and send INHIBIT to LIGHT2 if Spots are ON - but that would also exclude me from switching off LIGHT2 from any other point in the house - which I still want. - or can I send a CANCEL INHIBIT and TOGGLE in a single command from another button? - or would this become fuzzy logic depending on which command reaches LIGHT2 first?
I don’t want to use timers - as that would confuse the hell out of everybody depending on the timings used…
My light switches are all home-made with VMB8PBU inside (see photo here).
I have 30 of these switches each with either 2 or 4 buttons.
So there are lots of unused inputs available but other than hooking them up to things for testing (eg. switch all the downlights on/off) that I can toggle in the VelbusLink via “operate” I have not thought to use them for anything else.
Oh, apart from, I do have one spare switch has a program to turn the bathroom towel rails on for two hours every morning. Is that the sort of thing you use the virtual switches on the glass panels for?
Is it possible to start a program (ie. a program on an input module like a switch) on a button press?