-
-
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] Support for Groups/Rooms #7419
Comments
I can have a look. |
I have already something working. I still need to add the update of the group state and then I will be able to provide a PR. |
Fix openhab#7419 Signed-off-by: Laurent Garnier <[email protected]>
This is now implemented. The new thing type for a Hue group has a switch channel to turn on or off the lights in the group (room). Discovery is implemented too. |
Hi lolodomo, that was a really fast development. I can test the binding tomorrow. You said there there is only a switch channel? From the hue app it seems that you can control more than just the On/Off state. I am not sure how the api works, do you think it would be possible to also add a color/brightness/color temperature channel? Cheers Andreas |
Maybe you could have a look at the unofficial documentation? It seems, that you can send besides the On/Off also all other parameters which can be send to an individual light. http://www.burgestrand.se/hue-api/api/groups/ http://www.burgestrand.se/hue-api/api/lights/#changing-light-color-and-turning-them-onoff Thanks a lot for your hard work so far. Cheers Andreas |
I added the brightness control now. One problem with a group color control could be that if your group/room has few lights without color control, I am not sure what could be the result. But I will be able to test, so I will see. |
I had a look at the PR, looks good! Will test it tomorrow. Based on my experience, i think the hue bridge will just discard values for non-color lights. Same goes for the brightness with on/off units. So that might not be a perfect solution, However if you got large installations this will greatly reduce the command to send to the hue bridge and the commands send to the hue lights. Besides the color channel also the color temperature would be a good addition. |
I have no lights with color temperature control, so I can try to add this control but I will not be able to test it. |
The hue app does not offer the feature to set the same color for all lights in a group. It rather shows to you the different lights on a color wheel and you can adjust each of them. I can give the ability to send a color command for all lights in the group but to get the color state of a group, this is not obvious ! For dimmer, I computed the average of all lights. I am not sure how computing the average between different colors ! |
As color state for the group, I could set it to the color of lights in case they have all the same color and to white in case they have not the same color. |
That would be absolutely OK for me. I would really like to see the option to control the color of a group of lights, it doesn't matter to me if the representation is black. |
Fix openhab#7419 Signed-off-by: Laurent Garnier <[email protected]>
Fix openhab#7419 Signed-off-by: Laurent Garnier <[email protected]>
Fix #7419 Signed-off-by: Laurent Garnier <[email protected]>
It seems to me that the behaviour of hue groups isn't consistent with hue lights in openhab yet their behaviour is the same with the hue API let me explain: On the hue API, both groups and specific lights will only accept a hue, saturation, brightness change if they are already turned on or are turned on with the same API call. |
The handling of groups and lights by the binding is the same. |
I use jython via js323 with the helper libraries this is my test code : `from core.rules import rule @rule("Testrule", description="Optional Rule Description") @when("Item LA_Motion_OR received update") def my_rule_function(event): ` |
Fix openhab#7419 Signed-off-by: Laurent Garnier <[email protected]>
@lolodomo : ANy updates can I somehow help? |
I just tried this command in console:
With a simple hue light, it seems to work better:
I will have a look. |
@lolodomo thanks! The State within openhab changes in both cases for me. Just the physical things don't react in case of a group. Let me know if I can be of any help. |
@Tomibeck : could you please open a new issue for your problem. |
Good news, I know how to fix the issue. |
@lolodomo thats amazing thanks a lot |
Fix openhab#7419 Signed-off-by: Laurent Garnier <[email protected]>
Fix openhab#7419 Signed-off-by: Laurent Garnier <[email protected]> Signed-off-by: CSchlipp <[email protected]>
Fix openhab#7419 Signed-off-by: Laurent Garnier <[email protected]>
Fix openhab#7419 Signed-off-by: Laurent Garnier <[email protected]>
Fix openhab#7419 Signed-off-by: Laurent Garnier <[email protected]>
Fix openhab#7419 Signed-off-by: Laurent Garnier <[email protected]>
Fix openhab#7419 Signed-off-by: Laurent Garnier <[email protected]> Signed-off-by: Daan Meijer <[email protected]>
Fix openhab#7419 Signed-off-by: Laurent Garnier <[email protected]>
It would be great to see the addition to rooms/groups to the hue binding.
Of course, you can achieve similar things with openHAB Groups, however the reliability using hue groups/rooms is higher and the response time is much shorter than using groups in openHAB.
For example, I got about 15 lights in my living room. If I switch the group on/off all lights turn on/off at the same time (I am not able to see a chronological order on how the lights switch on). If I am doing the same thing with openHAB groups I can clearly see an order on how the lights turn on and it takes a lot longer as all lights are activated in a serial way.
I saw that @leluna is working on support for scenes, so that might be another addition.
I will add a bounty for that feature request.
Thanks a lot
Cheers
Andreas
The text was updated successfully, but these errors were encountered: