controllerx: `transition` attribute to light calls leads to an unexpected beaviour
Bug report
Description
When using deCONZ integration and group of lights, then when toggling the light (or turning it on/off) it leads to unexpected behaviour. It does not go back to the previous brightness. Even though all lights support transition, it does not work as expected.
To solve this problem, I will create a new attribute (TBD) that will remove the transition attribute from light calls when the lights are turned on/off or toggle.
In the meantime, the flag add_transition: false can be used, but this will remove the transition to all calls and it will cause a not very good smooth transition when changing the brightness or color.
Additional information
- Devices involved:
- Model: E1810
- Ikea lights
- Integration: deconz (maybe with others as well)
- AppDaemon version: -
- ControllerX version: v2.7.0
- HACS version (if installed from there): -
- Home Assistant Core version: -
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 29 (22 by maintainers)
Commits related to this issue
- fix(light_controller): pass a default value for the "on" method related #79 — committed to xaviml/controllerx by xaviml 3 years ago
Hi guys!
Sorry for being MIA, I have been quite busy lately and I might not be able to tackle some of these issues for the moment.
Thank you @htvekov for the explanation. Basically, the problem it does not come from ControllerX since what ControllerX does is to communicate with HA via service calls. If you check AppDaemon logs, you will see a lot of logs from this app and some of them will be the calls that request to HA. You can take the service and you will be able to reproduce the same issues if you go to “Developer Tools > Services”.
This being said, I would like to create a flag to remove the
transitionattribute to just the on/off and toggle actions. Because if you markadd_transition: false, it will not send any transition when changing the brightness which causes a not good smooth effect in the brightness change.Therefore, I will update this issue accordingly and I will add in the FAQ this so people is aware of this problem and they will be able to solve by adding a flag.
Hi’ @RemiDing & @xaviml
And pull request done for step 2 as well (revised use case documentation of Tasmota switchmode 11/12 in conjunction with ControllerX https://github.com/xaviml/controllerx/pull/114
Ciao !
I finished all my tests and start a pull request for this changes tomorrow
Hi’ Xavi.
I’ll update documentation when PR is done and implemented in Tasmota dev version. I’ll update as well regarding the MQTT part 🙂
Ciao !
Hi’ Xavi
I’ll test this feature here on my z2m and Hue Bridge integration and let you know if I experience any issues.
Looking forward to the ‘dimmer direction’ improvement for my tasmotized wall switches 😁
Ciao, Xavi !
Hi guys, I just released v2.7.1 with a new attribute
add_transition_turn_toggle. If set to false it will not add any transition attribute when turning on/off or toggling, however, the transition will be present when changing brightness or color if transition is supported.