I’m a new one with openhab
I would like to have something like a global mode selector.
This global variable could be used to deactivate some rules depending on its value.
Example: mode=(alarm)Armed so all rules for switching on lights can be disabled.
Mode=auto, lights rules are all activated
Mode=Night, only low light rules are activated
I’ve read a couple of things around scenario, but they looks more like a list of actions to do when we start a scenario, mode is more to change openhab default behaviour/rules.
Any idea to implement this without adding a dozen of “if” in the rule’s “when” ?
is there a way to make somekind of link between an virtual item state and rules ?
Thanks for your help