-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[hue] Add channel to the hue bridge to activate predefined scenes #6044
Conversation
22c621f
to
6de9563
Compare
Why can't this functionality be added to the bridge thing? |
I fully agree with @J-N-K that this would be the right way to add this functionality. |
I first tried to add it to the existing bridge thing and simply could not get it to work. Do you know any add-ons where the bridge also has an additional functionality that I can refer to? |
The avmfritz binding implements a bridge |
onewire has extensible channels on the bridge. |
Just so you know, the Hue binding (v2.5 snapshot) causes repeated log messages as shown below. Since the message comes from PersistentInbox, my suspicion as that the problem is inside that Class. But perhaps the problem is in the Hue binding after all ??
|
Some while ago I developed a Hue REST-Client in Groovy for my JSR233 use cases. I integrated a simple caching layer to resolve the scene names. You can find the code here. When the I think it would be great to handle a Hue group as a Thing. Scenes could then be controlled via a channel of a group Thing. The available channel options/scenes should be explorable via the REST API. In addition, a group thing might have a switch, dimmer and color channel. Attached is the mentioned Groovy code. Nothing fancy but it does what it's supposed to do in my smart home automation. |
@leluna what is the status of this pull request, are you still planning on finalizing it? Are you blocked in any way? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sry for getting back to you that late.
Do not care about the itest failures. Just ignore them if it is building fine locally. We are aware of that but do not have a solution for it yet.
Would you be so kind and add some information to the README.md? I am not really sure which commands I have to send to the new channel. Do you think it is possible to add dynamic state options for it? I will test the new feature in the next couple of days.
Travis tests have failedHey @leluna, |
7f3287e
to
1d6f158
Compare
Travis tests have failedHey @leluna, |
Signed-off-by: leluna <[email protected]>
Travis tests have failedHey @leluna, |
I think the ability to activate scenes is really essential for hues. Although I've seen some tutorials on how to do this, none of them seem really none-trivial to me. I know that you can create the scenes as rules, but the scenes creator in the hue app is very convenient in my opinion.
As an intermediate solutation, this does not retrieve the list of available scenes, so the user have to provide the scene IDs in e.g. a switch control. (Also haven't written any intergration test yet, as I am quite unfamiliar with the setup.)
The concept is to add the hue as a separate gateway thing to control functionatlities that goes beyond that of a bridge. This approach is taken from the Mi Home addon.