-
Notifications
You must be signed in to change notification settings - Fork 420
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
Sonoff L1 not changing color in scenes #513
Comments
Another thing that I forgot to mention is that when I'm changing to the scene where I have set a different effect, e.g. Colorful Gradient, then it changes the effect in real life as well. If after that I activate the scene that has Colorful effect on (meaning just one static color), then it changes back to the last color that was set before changing to Colorful Gradient and not the one that is specified in the scene, so there's a high chance that the problem is only related to the color. |
I have the same problem wont change colors in both automation and scenes |
Is problem actual in latest SonoffLAN version? |
@AlexxIT unfortunately yes, same issue here with the latest version |
Fixed in latest master version. Will be in next release |
Hi, I'm new to Home Assistant and I'm trying to migrate scenes from SmartThings. I have a Sonoff L1 LED strip which I have successfully connected to Home Assistant via your integration, and I'm trying to add it to scenes. The problem is that when I'm activating the scene, all the other lights are switching colors to the ones configured in the scene, however Sonoff L1 strip just turns on to the last color that it had.
Here's an example of such scene (
light.sonoff_living_room_bookshelf_led_strip
is the entity for L1):I have enabled debug logs for
sonoff
and whenever I activate the scene nothing is happening in the logs, meaning that the request is never sent to the device, which explains why the device doesn't react. At the same time, I can see that the icon on the Lovelace dashboard changes to the color that I specified in the scene, so I suspect that the internal state of the entity is indeed updated, however for some reason the actual request to the device never comes through. Just to give you some more context, this is what I see in the logs when I simply toggle the L1 from the Lovelace dashboard:I went to developer tools and attempted to set the state of
light.sonoff_living_room_bookshelf_led_strip
to the exact same state as inscenes.yaml
(except for thestate: 'on'
), and the same thing happened - I could see in the table below that the state got updated, but the logs were empty and the device didn't change the color.I have peeked into the source and read some developer docs from Home Assistant, however I haven't found how exactly "set state" updates the entities - I suppose some default behavior from the
light
domain updates the state, however I don't know which code from the platform integration is called at that moment. I have found this in the docs: https://developers.home-assistant.io/docs/reproduce_state_index/ Maybe this is something that will have to be implemented in order to send the request to the device upon activating a scene?Some more technical details:
System Health
Home Assistant Community Store
Home Assistant Cloud
Home Assistant Supervisor
Lovelace
The text was updated successfully, but these errors were encountered: