So I have the following setup:
Group:Dimmer:AVG gYBrightness "Lampenhelligkeit [%d]" (gBrightness)
Group:Dimmer:AVG gABrightness "LEDs helligkeit [%d]" (gBrightness)
Group:Dimmer:AVG gBrightness "helligkeit [%d]" ["Switchable"] {autoupdate="false"}
and a python script running like this:
elif "SHAKE_AIR" in str(event2):
if (int(float(str(items["gBrightness"]))) > 20):
i = int(float(str(items["gBrightness"]))) - 20
logXC.info(str(i))
events.sendCommand("gBrightness",str(i))
but the Dimmeritems don’t take values around 20-100. They change trough other item values like this:
2019-05-12 14:06:43.400 [GroupItemStateChangedEvent] - gYBrightness changed from 77.77777800 to 88.88888900 through Yeelightc_3
2019-05-12 14:06:43.405 [GroupItemStateChangedEvent] - gBrightness changed from 59.25925900 to 62.96296300 through gYBrightness
2019-05-12 14:06:43.410 [GroupItemStateChangedEvent] - gYBrightness changed from 88.88888900 to 100.00000000 through Yeelightc_9
How can I stop this behaviour? I want to have all items brightness in those groups set to for example “30”. Didn’t find anything related in the docs, a simple url to the informations I need is enough.
Thanks alot!