Hi all,
Still quite new to OpenHab, but very happy with it at the moment. I’m trying out the use of groups so that I can switch off all my lights at one, eventually. Right now, I’m just trying to show the number of active lights in my basicUI.
When I open the basic UI, It presents 2 light switches, that I can use to switch on/off the lights. In addition, it has a text saying “Number of lights on” which mentions the number of lights that are switched on. This number is correct, but is not updated when I switch on/off a light unless I refresh the page. Is there something that I’m missing here? Or does this need to be covered with a rule (I hope not, and if so: how)?
.items
Group gLights
Switch Light1 <switch> (gLights) { channel="loxone:..." }
Switch Light2 <switch> (gLights) { channel="loxone:..." }
Group:Number:SUM gLights "Number of lights switched on: [%d]" <slider>
.sitemap
...
Text item=gLights
Switch item=Light1 label="Light 1"
Switch item=Light2 label="Light 2"
...
My configuration:
- openhab2 version 2.2.0~20171206234049-1
- OSX
- java version 1.8.0_151
Thank you!
jan.