-
-
Notifications
You must be signed in to change notification settings - Fork 148
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
Ignore lights being turned on with a specific color value and effects. #416
Comments
I would also love this! Honestly it’s how I presumed it would work by default and I was very confused when I realised it didn’t seem to work this way. I understand there maybe technical reasons why this is tricky to implement but purely from a user experience perspective if I have a switch or automation or something that turns on a light and explicitly sets a colour when it does so then I would expect that request would be respected. Without this behaviour it breaks things like scenes. I have a scene to turn on a few accent lights and set them to some soft colours. However when I activate the scene the lights are very briefly turned on to the desired colours but then AL turns them to white. With home assistant scenes I can at least activate the scene a second time and have it work which is annoying but manageable. However I’ll often use the Home app on iOS to control my lights (via the HomeKit integration) and with the Home app scenes work as a toggle, once you turn on the scene tapping it again will turn off the scene and all the lights in the scene. That means you can’t simply activate the scene twice and have it set the colours correctly the second time. @basnijholt I see you mentioned in a different issue that this is something you were considering looking into #2 (comment) did you ever get a chance to do that? Least this come across too negative, I should say I love AL and and very much appreciate all the hard work that’s gone into making it! |
Possible duplicate of #2
If you only call the 2nd light.turn_on, and the light is off, adaptive-lighting will adapt the light. Having two separate calls there tells adaptive-lighting that we've turned the light on, and we set it's state., so it'll fire the manual control event. Sorry if this isn't intuitive but I just looked at the code and I don't see a way around this. If you turn a light on outside of HA, there's no way for adaptive-lighting to know if the color/brightness data was set during turn on or if it was the last state. I tried checking the state change event briefly with the following code:
but there's no information in the attributes that make this feature request actionable. In order to implement this, we'd have to log the last state of every light once they're turned off. It just wouldn't be practical, and would open the integration to more potentially hidden bugs down the road. |
Doesn't the HA has a last_state and new_state under the entity? I know I access this object using Node-red. Surely the API also has it. |
@maxi1134 would you mind elaborating on how last_state is saved in hass? Do you have any node-red automations you could post utilizing this? I'm a bit new to home assistant's developer api but I know the config option As far as I'm aware, hass only has a |
Sorry for the tardiness, I was out of the country! This is what I see in node-red: |
I am implementing an option Enabling this will make sure AL doesn't take over when setting a scene. |
This is a big deal IMO, and exactly what I've been hoping for. My only notable gripe with A.L. has been not being able to utilize scenes/automations/scripts/etc 'as intended' and having to implement additional service calls to get the desired end result. This is expected for 1.19 release? |
Yes, it is already in the 1.19.0b3 release 😃 |
This works for me on 1.19.0b4. Thanks a lot! I've adapted my node-red flows already. |
Hi there!
I hope y'all are doing great!
I have this issue where I sometimes turn on lights with specific colors and effects in some automation. (Mainly for accessibility as I don't hear too well ).
Unfortunately, those get turned to white by this integration.
Would it be possible for the tool provided here to ignore lights being turned on with "effect" or "color_name" and its counterparts?
Thanks!
-Maxi1134
The text was updated successfully, but these errors were encountered: