deconz: fix light.turn_off with transition (2)#15227
deconz: fix light.turn_off with transition (2)#15227Kane610 merged 1 commit intohome-assistant:devfrom
Conversation
Previous commit d4f7dfa successfully fixed the bug in which lights
would not turn off if a transition was specified, however if 'bri' is not
present in the payload of the PUT request set to deCONZ, then any
'transitiontime' ends up being ignored. This commit addresses the
unintended side effect by reintroducing 'bri', resulting in the following
payload:
{ "on": false, "bri": 0, "transitiontime": ... }
|
Have you done some extra verification that this actually gets the wanted behavior? ;) |
|
Yes. This is the exact version confirmed to be working with for both the "off" state and also for transitions being honoured. But I would welcome if @vandalon could do the same modification in his system and confirm that it also works for him, before this gets merged. |
|
@lbschenkel yes that would be good! |
|
Will do in an hour. At swimming lessons with the kids now :) |
|
No hurry, we got two weeks to get this merged :) |
|
To bad i can not remotely see how the bulb reacts :) I've got everything in place just need to see the blub :) |
|
Ok, girlfriend confirmed slowly going off :) so it works |
|
Tell me when you're satisfied with the testing |
|
Well there is still something weird. Running the command from HA works, running it via Node Red it still turns off the lights instantly. where node red sends the exact same command to HA. |
|
Please enable |
|
My bad! I made a config error within Node Red. All works perfectly! |
|
I am having a serious trouble typing |
|
Good to go then? |
|
Yes from me. @vandalon? |
|
Yes, absolutely |
|
Thanks @Kane610. I'm not so familiar with the release process, how much time can we typically expect for code landing in |
|
If you're running on stable release you can expect this to be available in 0.74, in ~3 weeks |
|
In the meanwhile you can place the adjusted |
Previous commit d4f7dfa successfully fixed the bug in which lights
would not turn off if a transition was specified, however if 'bri' is not
present in the payload of the PUT request set to deCONZ, then any
'transitiontime' ends up being ignored. This commit addresses the
unintended side effect by reintroducing 'bri', resulting in the following
payload:
{ "on": false, "bri": 0, "transitiontime": ... }
Previous commit d4f7dfa successfully fixed the bug in which lights
would not turn off if a transition was specified, however if 'bri' is not
present in the payload of the PUT request set to deCONZ, then any
'transitiontime' ends up being ignored. This commit addresses the
unintended side effect by reintroducing 'bri', resulting in the following
payload:
{ "on": false, "bri": 0, "transitiontime": ... }
Description:
Previous commit
d4f7dfasuccessfully fixed the bug in which lightswould not turn off if a transition was specified, however if
briis notpresent in the payload of the PUT request set to deCONZ, then any
transitiontimeends up being ignored. This commit addresses theunintended side effect by reintroducing
bri, resulting in the followingpayload:
Checklist:
tox. Your PR cannot be merged unless tests passIf user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
REQUIREMENTSvariable (example).requirements_all.txtby runningscript/gen_requirements_all.py..coveragerc.If the code does not interact with devices: