-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Use scenes from Hue #35
Comments
+1 |
I am happy to work on this but unfortunately, I don't have any Hue hardware. Does Hue provide any state information itself? Or any information as to what Lights are triggered by a scene? |
I don't think so. I think it does map to a group, which can be used for the current value though. |
Hmm, but there is no way of knowing what the values of the group are when the state is active...? |
No, only by checking the brightness, similar to this automation. What I currently do is is a helper, which is basically looping through all the states from Hue which have a certain Room as attribute, and match the first one in range. (There is a conversion bug in the Hue automation I think, hence the 100->255)
|
To add to that:
|
I am going to see whether it is possible to learn the scenes from Hue. That is, manually select what lights are in a scene, activate a scene, and then learn what state the lights are in when the scene is active. This will be more experimental, and I will see how far I get along. Note that I don't have a Hue bridge so I will be testing this using virtual devices. If I get it working on that I might ask one of you to test it out using the Hue bridge. |
I have created a first proof of concept to learn non-HA scenes. It is available in 1.3.0b0. Please try it out and report whether it is working or not. |
I have a lot of scenes in Hue. Is it possible to get the scenes from there?
The scene does have brightness setting:
I think that roughly matches (if the temperature in lights is 0-255 instead of 0-100?)
What I do now is create a template that calls the scene, but shows the state from your scene.
Which now calls the scene I created in HA, but that wouldn't be necessary in that case. But not sure how reliable it is.
(I used the call-service instead of the toggle because that seemed more reliable, to force the state even if already active)
The text was updated successfully, but these errors were encountered: