-
-
Notifications
You must be signed in to change notification settings - Fork 32.9k
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
brightness_pct is deprecated from scenes; what now? #33573
Comments
Use brightness. It goes from 0…255. Scenes work based on the state attributes, not based on the parameters you can pass to light.{turn_on/turn_off} |
@balloob , any chance there is a reference or explanation into why this backwards incompatibility was put in motion? Maybe some sort of technical reasoning?
, this was not previously true, scenes worked fine before with "non-state attributes", and now being deprecated. What about the other things like |
This makes no sense still. When I visit: https://www.home-assistant.io/integrations/light/ I'm still getting the deprecation warning. The "State Attributes" on the light still include both |
light state attributes are not the same things as scenes. |
3 years later is this true? have I just spent an entire f&(*ing day getting gaslit that I didn't JUST CHANGE THAT SETTING you mean to tell me that it is not reasonable to expect dimming the lights to be a "scene change"??? THAT IS EVERYTHING to a room |
The problem
Per #33527 , it has become clear that
brightness_pct
is deprecated in scenes.https://www.home-assistant.io/blog/2019/10/30/release-101/#breaking-changes
When I look at dev tools states, clearly
brightness_pct
is not listed.So what is the equivalent replacement?
Why has it been deprecated and removed? (to be completely honest, this is a very annoying breakage of backwards compatibility) - I'd like to clearly understand the technical need or reason to "restrict scene states", for this trade off of functionality (there are a whole lot of other attributes lost...)
Brightness % is still a valid attribute for a light ...
https://www.home-assistant.io/integrations/light/
It is less usable if users have to compute a rough % themselves based on the
0-255
absolute value ofbrightness
alone.Environment
Problem-relevant
configuration.yaml
example entry in
scenes.yaml
that worked fine before release 101Traceback/Error logs
Additional information
Of course this particular example is specific to one thing. What about everything else for a light that a scene would clearly want to set or control?
rgb_colour
,white_value
, etcThe text was updated successfully, but these errors were encountered: