Hello.
What is correct syntax for setting a scene for a room with hue actions.
val hueActionsRoom = getActions("hue","hue:room:xxxxxxxxxxxxxxxx:yyyyyyyy-zzzz-vvvv-wwww-123456789012")
hueActionsRoom.dynamicCommand("scene", new StringType("71f96029-4b9f-4946-bcba-313392e521a1"), Long.valueOf(20000))
The Thing and all Items works fine.
The ID for the scene comes from the console:
openhab> hue:bridge-api2:xxxxxxxxxxxxxxxx scenes
Does anyone have an example of how to set this correctly?
Thanks in advance.
Edit:
Sorry. I forgot the Warning:
2024-01-04 22:20:35.906 [WARN ] [e.internal.handler.Clip2ThingHandler] - Command '71f96029-4b9f-4946-bcba-313392e521a1' is not supported on channel 'hue:room:xxxxxxxxxxxxxxxx:yyyyyyyy-zzzz-vvvv-wwww-123456789012:scene'.
And it doesn’t matter whether I use the ID or friendly name of the Scene
And as a further supplement:
hueActionsRoomAZ.dynamicCommand("brightness", new PercentType (100), Long.valueOf (60000))
Scene is a channel (advanced) of a room or zone. To activate the scene you just command the channel item value. There is no rule action for activating scenes.
Hello Andrew.
Thanks for your respond.
Yes: It is possible to set a scene directly with this channel, but I would like to change the scenes slowly, just like dimming with brightness via actions.
I would like to have this as well - are you sure this is possible (e.g. with HUE App)?
It would be nice if e.g. lambs switch on slowly or switch off slowly - but I never found this possibilty in the the HUE App.
The dynamics your are talking about is to my understanding how fast effects (within a running scene) are changing - not the speed of changing from one scene to another.
No. This option is not available in the app either.
I have given up my plan.
But the documentation is not really clear here.
Why or for what do I need action on scenes?
Now it works.
I thought I had tried this before.
Thank you very, very much.
That’s what I love about OH: Even if it’s such a small thing, somehow you get it done, usually with the help of the community.