Running RPi 3B+ with version 2.5.10-1
I got the basic lights and temp sensors around the house working several years ago.
Now I would like to be able to turn On and Off all the lights at once. Wife security request.
I have been working through the Demo files to get this to work. I currently have 2 buttons, for now, one for All On and one for All Off. I have gotten them to toggle on the Basic UI screen and display changes in the log file.
2020-11-14 20:01:34.931 [vent.ItemStateChangedEvent] - Garage_Humidity changed from 21.0 to 21.1
2020-11-14 20:01:35.217 [ome.event.ItemCommandEvent] - Item âLightsâ received command OFF
2020-11-14 20:01:35.514 [ome.event.ItemCommandEvent] - Item âLightsâ received command ON
2020-11-14 20:01:35.814 [ome.event.ItemCommandEvent] - Item âLightsâ received command OFF
2020-11-14 20:01:36.130 [ome.event.ItemCommandEvent] - Item âLightsâ received command ON
2020-11-14 20:01:36.429 [ome.event.ItemCommandEvent] - Item âLightsâ received command OFF
2020-11-14 20:01:36.727 [ome.event.ItemCommandEvent] - Item âLightsâ received command ON
2020-11-14 20:01:37.033 [ome.event.ItemCommandEvent] - Item âLightsâ received command OFF
2020-11-14 20:01:37.328 [ome.event.ItemCommandEvent] - Item âLightsâ received command ON
Unfortunately, I havenât been able to get the lights to respond to these two buttons. They work fine with the individual On/Off buttons.
Here is what i have in the site map to display the two buttons.
Frame label="Master Lights" {
Text label="On / Off" icon="firstfloor" {
Switch item=Lights mappings=[OFF="All Off"]
Switch item=Lights mappings=[ON="All On"]
}
And have been playing with these two lines below to try and get this to work.
//==================================================================
Group:Switch:OR(ON, OFF) Lights âAll Lights [(%d)]â
//Group:Switch:OR(ON, OFF) gLight âLightâ (Home) [âLightingâ, âSwitchableâ]
//==================================================================
I have been searching through the forums and online for Ideas to get this to work. Once I get this working, I plan on using a motion sensor to turn on the lights when any of the doors are approached. Iâm still learning and reading the docs. Can anyone suggest what Iâm missing?
Thank you in advance!!
John Frankforther