I have read that it is possible to activate scenes in the phoscon app from OpenHAB3.
The scene appears as a channel in my lights group.
I have tried to set the state to the name of a scne: no joy, also tried sending the name of the scne as a command. No joy either.
The targeted “Scene” channel of item “Buitenlamp aan huis” reports being online.
Managing lights brighness directly from openhab as well as phoscon works fine. Scenes from phoscon also work ok.
Obviously I am doing someing wrong here
Whats the trick to do this / either using a rule or (this is what I tried) using the GUI to set up a rule to activate the scene. My scene names are “Avond” (evening) “Nacht” (night) and “Dag”
(Running Openhab 3.01 on synology nas in docker container)
i have the same here. The other way around does not work either. The channel is a string channel and when i activate a scene in Phoscon it should appear in the openHAB but this does not happen. the Channel stays NULL.
Edit: it seems in fact at least with recent version it is supported on the deconz side, but not on openHAB side. This is an enhancement to the current functionality.
Recalling scenes works for me if
the scene was present at openHAB startup
the name of the scene (NOT the id) is send to the channel (case-sensitive!)
Can you confirm this is also working for you? Newly added scenes are not available before the next restart. Not sure if that is a bug, but for sure not nice.
ok, i deleted the thing, created some scenes in Phoscon and re-added the thing again in openHAB after restart of both and i now can work with the scenes.I have added the scene names in the state description and can nicely select them. I confirm if I add some more scenes in Phoscon, they cannot be choosen. I suspect this needs another re-start atleast…
I have another issue with this Deconz Thing. The switch of this Phoscon Group in the Thing is not switchable, it behaves like a string.
These are the steps I took (after restarting Deconz and Openhab)
Things-> Goto thing “Buitenlamp aan huis” (deconz:lightgroup)
Select channels -> “Recall scene”,
Add link to item, create new item , named “Buitemlampaanhuis_RecallScene”
Parent group “Buiten” (which is same as parent as lightgroup)
Profile: (No Profile)
Click Link button.
Then back to rules,
Create/Edit rule “Buitenlamp Avond”
When: daylightphilps_dark changed from OFF to ON
then: Update the state of Buitenlampaanhuis_RecallScene to “Avond”
and another rule “Buitenlamp Dag”
When: daylightphilps_dark changed from ON to OFF
then: Update the state of Buitenlampaanhuis_RecallScene to “Dag”
and another rule “Buitenlamp Nacht”
When: time is 23:30
then: Update the state of Buitenlampaanhuis_RecallScene to “Nacht”
When I trigger the rules using the “Run Now” button the state of the Buitenlampaanhuis_RecallScene item changes alright (pinned in the debug pane), but nothing actually happens in the phoscon app, and neither to the lights outside.
I have found out how to display the events log, and I do see the state changes generated from the rules.
Unfortunately I do not know (yet) how to “debug the binding” nor how to visualize commands/REST communication sent to the phoscon app/deconz. I looked around abit but couldnt find a “howto” for this.
No, that issue was fixed before 3.0 release. Please set the binding to “TRACE” level (log:set TRACE org.openhab.binding.deconz) and show what is sent and received when you try to recall a scene.