-
Notifications
You must be signed in to change notification settings - Fork 501
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
Support for Enhanced Scenes (transition times in tenth of a second) #111
Comments
I think my problem in #53 is specific to the OSRAM lights, but both scenes and I don't think the Hue bridge stores Note that the actual scene is stored on each light - the "scene" on the gateway (or bridge) is just a representation of what the gateway thinks the scene looks like. I've seen many instances where the scene stored in the light differs from the representation on the Hue bridge, or deCONZ gateway, especially when setting the light state with a transition time and then storing a scene. I don't think ZigBee provides a means to see the scene as it's stored in the light (other than recalling it and observing the resulting light state). It would seem every manufacturer uses different transitiontime defaults for lights as well as for the gateway/bridge, resulting in a myriad of different behaviours when combining lights from multiple vendors. I think I need to do some serious ZigBee sniffing before I fully understand this. However, this is low on my prio list - I need to get my home automation as it ran on the Hue bridge running on deCONZ first. |
That's because every transition time below 1 second is raised to 1 second before
No, the transition time is stored on the lights with the scene, so they can recall the scene with proper fading after receiving the command. Which is quite nice since scene supporting light switches like the ones from Busch-Jaeger, JUNG and GIRA just send the recall scene xy commands. |
The Hue bridge does store the transitiontime in the bridge with a scene and it is not possible to specify it when recalling the scene. A (version 2) scene with details from my Hue bridge:
And according to https://developers.meethue.com/documentation/groups-api#253_body_example recalling a scene only uses the scene id on the group action.
deCONZ does not support this. Recall is a
I don't think this have something to do with the defaults of the lights. The transition time is related to the scene. The
So 4 becomes 0, 10 becomes 1, 19 becomes 1, etc. Other tasks like Storing a scene with In deCONZ GUI using "Move to level" on the "Level control" cluster you can specify transtition time in deci-seconds. I think this command is also used by So I found out that there are two types/version of scenes: "scenes" and "enhanced scenes". It looks like that only viewing of the "enhanced scenes" is supported in deCONZ. Adding "enhanced scenes" is missing. I saw in some ZLL documents that this is command 0x40 for add enhanced scenes instead of 0x00 for adding a "normal scene". I'm pretty sure that the Hue bridge uses the "enhanced scenes", which gives a more fine-grained control of transition time in scenes. I would be nice if enhanced scenes are also supported by deCONZ. |
Cooking something up which can be testest with < 1 s transition time.. |
Thanks for the explanation @manup.
I understand. I only have Philips lights at the moment, so I can't help with that. |
Hi, could you test it with version 2.04.65? The 1/10th second transition times should work there (at least with hue lights). |
1/10th second transition times work for transition times below 10 (1 seconds) now (in 2.04.65) when used in scenes (with Hue lights). |
That's right for now I'd like to keep it this way in order to support both methods, when more testing with various lights verify that all support the sub second times, the code can be changed to always use it. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@manup What is the status on this one? I can provide testing of the various IKEA lights, if that helps. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
My experience is that transition times below 10 (1 second) don't work in scenes.
In this example I use a Philips Extended color light LCT001.
In my setup this light has id 2 and is the only light in group 1.
First I turn the light on:
This results as expected in a fade in of 900ms.
When I verify the state:
I see ct 443 (after a while), while I expect 447, this is maybe the same as @ebaauw mentions in #53.
Then I create a scene:
The scene has the default transitiontime of 10.
When I turn off the light and recall the scene using
PUT /groups/1/scenes/1/recall
the light is turned on using a transition of 1 second.
I would like to change the transition time to 4 (400ms) which is also the default in the Hue bridge.
When the light is still on I do:
I verified that
GET /groups/1/scenes/1
and/groups/1
both show"transitiontime": 4
When I turn off the light and recall this scene again the light turns on again, however it is 'instant' (no fade of 400ms)
I tried this also with transitiontime 5,6,7,8 and 9 and never saw the transition. When I store 10 again, I can see the transtition again.
When I manipulate the state of the light directly using
PUT /lights/2/state
and a transitiontime of 4 I do see the transition of 400ms.Why can't transitiontimes below 10 be used in scenes?
In the examples in #53, @ebaauw also stores
"transitiontime": 4
without noticing this, so maybe I'm doing something wrong. Or is this related to this specific Philips bulb?The text was updated successfully, but these errors were encountered: