You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, brightness for room devices (config includeRoomsAsLights = true) is never updated on brightness changes (only when setting the value from HA).
This in itself will mean transitions for room devices will work a bit unexpectedly (room might have a brightness of 50, but all lights have actually been changed to 250 giving transition => 0 start from 50).
An even worse (and quite common example if not using the room sliders) is that a "good night transition" (Tun off ALL lights, transition over 60 seconds) will behave very oddly:
Room light = undefined (never set from HA since restart)
All actual lights in room = 255 (fully on)
HA command: TurnOff "all", transition = 60
hassio-plejd will get individual commands for all lights AND all rooms
Room = undefined => room will be turned off directly (so fully on => fully off for all lights)
Each light in the room will still be in the transition cycle so after turning off fully it will turn on with brightness 254, 253, 252, 251, ...
Really happy that I finally found out what was going on, but a bit hard to actually solve the problem from the hassio-plejd side. As a user you can
Transition rooms (will be more efficient, but currently has the problem of room brightness is often wrong)
Only transition lights, not room, or set includeRoomsAsLights = false to avoid the problem
Mqtt is quite quick, so all transition commands are sent in ~1 second. We could wait 1s and then try in some way to aggregate transition commands before starting the transition, but I don't really like artificial delays unless absolutely necessary.
Either way I think we should calculate room brightness on each update (the Plejd app actually seems to set room brightness = MAX(all lights in room), which seems a bit strange to me, but is probably a good choice all in all). Transitions on rooms with devices having different brightness will still be a bit strange, but at least better.
Ideas?
The text was updated successfully, but these errors were encountered:
Currently, brightness for room devices (config
includeRoomsAsLights = true
) is never updated on brightness changes (only when setting the value from HA).This in itself will mean transitions for room devices will work a bit unexpectedly (room might have a brightness of 50, but all lights have actually been changed to 250 giving transition => 0 start from 50).
An even worse (and quite common example if not using the room sliders) is that a "good night transition" (Tun off ALL lights, transition over 60 seconds) will behave very oddly:
Really happy that I finally found out what was going on, but a bit hard to actually solve the problem from the hassio-plejd side. As a user you can
includeRoomsAsLights = false
to avoid the problemMqtt is quite quick, so all transition commands are sent in ~1 second. We could wait 1s and then try in some way to aggregate transition commands before starting the transition, but I don't really like artificial delays unless absolutely necessary.
Either way I think we should calculate room brightness on each update (the Plejd app actually seems to set
room brightness = MAX(all lights in room)
, which seems a bit strange to me, but is probably a good choice all in all). Transitions on rooms with devices having different brightness will still be a bit strange, but at least better.Ideas?
The text was updated successfully, but these errors were encountered: