New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
transition
attribute to light calls leads to an unexpected beaviour
#79
Comments
I'm having the same issue without deconz, just using z2m with a cc2531 coordinator. Controller is IKEA E1743 and the lights are the ikea zigbee 30w driver |
Hi @hutchinsane, Are both light aggregated with Group integration? Or just the lights separately? |
I apologise, it's just one light driver, but with multiple individual spotlights connected to the driver, I should have made that clearer 😅 I did some testing around and it seems that is the turning-off action that sets the light to minimum brightness, if I turn it off via the HA frontend and then use the button to turn it on, it reverts to the previous brightness, as you would expect. If I now turn the light off via the button and turn it on via the frontend, it's on the lowest brightness again. |
Hi' @hutchinsane Have only a selection of different Ikea bulbs, but no driver. So unfortunately I can't help with tests 😕
|
|
OK @hutchinsane I'm pretty sure that brightness will be set correctly, if you apply the Have googled some, but was unable to find definite answers on whether this device (both 10- and 30w version) actually supports transitions at all ? If |
That did indeed do the trick, everything is back to normal 😅 Thank you very much! |
@hutchinsane Glad to hear 👍😊 |
I don't think so as they're purely dimmer-drivers, the leds (spotlights in my case) connect only via power and ground |
@hutchinsane Even though this is not an issue in your use case, this brightness error should not occur and transition attributes send should be ignored by zigbee converter. These problems that 'pop up' with brightness and transition, across the platforms, surely should be adressed at lower level, perhaps Xavi should consider adapting ControllerX code to 'filter out' some of these problems anyway ? In this case a check of entity/groups transition capabilities could be done before issuing any calls with transition and strip that attribute completely. But then again, that's exactly what the Ciao ! |
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 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. |
No worries, Xavi 😎 It will be here, when you have the time for it. It will probably be helpful to have that sort of a flag in ControllerX. As much as the bugs have nothing to do with ControllerX, it will be nice to have some means to navigate around these bugs. With this specific driver I expect that a flag wont have any effect though, as it apparently doesn't support transition at all. Ciao ! |
Hi guys, I just released v2.7.1 with a new attribute |
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 @htvekov, I think we have discussed this before, but I will change the default for I just wanted to let you know in case you are using it. Thanks :) |
Hi' Xavi I've just returned from my summer holiday (cottage by the sea here in Denmark - Completely covid-19 safe 😷🙂) I'm been puzzling with a display add-on (using ESPHome) for my Sonos media player setup. Felt the need for some visual feedback, when using my ControllerX remote all the time 😎 Anyway, I've one annoying issue that I can't figure out how to solve. I need to get the friendly names of all the active speakers in a sensor, so I can display them. Not even sure that it's possible to 'template' my way out of this issue ? Ciao ! 🙋♂️ |
Hi @htvekov,
I hope vacations went well. I bet you passed a really nice and peaceful holiday then 😎
Sounds good! In fact, the switchmode 11 can be updated to be used with MQTT instead of the
I am not an expert templater, but I might be able to help you. I will answer you on the topic you linked 👍 |
Hi' @xaviml Yes, it was probably THE most relaxed vacation I've had in years 🙂 Yes, I actually thought about updatating swithcmode11 documentation as well. Can't really figure out why appdeamon is notisable slower than HA itself to toggle lights using MQTT topics ? Appdeamon should be able to handle a MQTT event as fast as HA I believe. And a direct HA service call from appdeamon should in my opinion not be that slower, compared to HA's internal call on identical MQTT topic ? Don't really know if some speed improvement could be made somewhere in the code, if I raised an (appdeamon) issue on the subject ? Nevertheless, I'll update the documentation and point out that a toggle speed improvement can be achieved using direct HA MQTT handling for toggle and let ControllerX handle all other events (my setup today) I'll refine the display code a bit (nothing fancy really) and will add your nice templates as well, to make first version ready for upload. Some documentation will have to be made as well. Once again, thank you for the Sonos friendly names templates ! 😎 Ciao ! |
Hi' @xaviml Still 'polishing' initial Sonos display version layout, so I'm not dead (yet) 😉 Have to tidy up sensors/entities involved, though. It's quite messy with all the hardcoded master speaker entities throughout the ESPHome/HA config YAML. 🙄 Need to template my way out of this... Also found an HA core issue with media_text/media_title when playing from source. For now I've templated my way out of this small bug 🙂 I'll get back when I'm done with the final ESPHome code, documentation and some pictures. Ciao ! |
Hi @htvekov, No worries, what you are doing doesn't seem something that can be done in hours, but when you finish, it will be worth it! So no rush, you take your time to update the documentation, no worries :) Xavi M. |
Hi' Xavi Still writing in this old, closed and completely irrelevant issue regarding Tasmota Switchmode 11/12. Bad habit, but the initial talk was in this issue, so I'll finish it here 🙂 @RemiDing has improved the current Tasmota switchmode 11/12 with an additional double press detection - without compromising the crusial instant toggle and clear command (no wait for xx milliseconds to distinguish between single or double click). So toggle will still fire first on a double click. But MQTT/ControllerX is fast enough to catch and execute both commands, that it's seldom visible that lights are beginning turning off before issuing arendst/Tasmota#7603 (comment) I'll update documentation with the MQTT integration option and include some example on this new feature as well 🙂 Ciao ! |
That is great Henning! Thank you for letting me know. Just like you did for Sonos Display, you can create a PR modifying the existing file or just paste it here and I will update! Thanks! :D |
Hi' Xavi. I'll update documentation when PR is done and implemented in Tasmota dev version. Ciao ! |
I finished all my tests and start a pull request for this changes tomorrow |
Hi' @RemiDing Perfect! 👍 I'll update my documentation here at Xavi's ControllerX github. Thank you for this addition for your existing Tasmota switchmodes 👏😃 Ciao ! |
pull request is done |
Sorry about the late reply, guys. I'll update the documentation on Tasmota site with just the basics - written in same simple style as for the previous switch states. Or do you wish for something more elaborate than that, Remi ? I'll have to revise documentation on Xavi's ControllerX Github page as well, with a bit more than just adding the double click possibility. As Xavi's latest beta has announced deprecation of custom controllers and MQTT implementation in future will depend on JSON objects and not just 'simple' payload commands. Ciao ! Edit: Initial test OK - All working with new ControllerX MQTT setup. Escaped payload as trigger for toggle (HA automation) also works. Actually Tasmota revise entered rule and 'auto add' escape signs for all double quotes in rule. Clever thing 😊 @xaviml: This old bug seems to have been reintroduced with latest beta v3.4.0b1 #81 |
Pull request done for step 1 (revision of Tasmota switchmode 11/12 commands) Ciao ! |
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
The text was updated successfully, but these errors were encountered: