Hi Mark,
thanks for your suggestion and now i will try to steal you some more of your experience, for sure that sooner or later somebody elso will need this lines.
I tried Alexa mode controller because it sounds to me its the best command but i left programming something like 35 years ago β¦therefore donβt trust me!
What i have done is this:
.Thing
bus_cenplus_scenario_control iCenplus_Cancello "CEN+ Cancello" @ "CenPlus" [ where="29", buttons="1" ]
.items
String iCenplus_Cancello "Apri Cancello" <switch> {channel="openwebnet:bus_cenplus_scenario_control:mybridge:iCenplus_Cancello:button_1"}
String CEN_Command "Cancello" {alexa="ModeController.mode" [supportedModes="START=START,STOP=STOP,DUMMY=DUMMY", autoupdate="false"]}
well, Alexa see the device βCancelloβ and wen i send the vocal command, she doesnt reconize UP, Open, Switch command and she replay that doesnt know how to tune the device to that setting and the command is not sent.
What i can see from MyOpenHab is:
https://myopenhab.org/rest/items/CEN_Command?metadata=alexa,autoupdate
{"link":"https://myopenhab.org/rest/items/CEN_Command","state":"NULL","metadata":{"alexa":{"value":"ModeController.mode","config":{"supportedModes":"START\u003dSTART,STOP\u003dSTOP,DUMMY\u003dDUMMY","autoupdate":"false"}}},"editable":false,"type":"String","name":"CEN_Command","label":"Cancello","tags":[],"groupNames":[]}
https://myopenhab.org/rest/items/iCenplus_Cancello?metadata=alexa,autoupdate
{"link":"https://myopenhab.org/rest/items/iCenplus_Cancello","state":"PRESSED_EXT","stateDescription":{"pattern":"%s","readOnly":false,"options":[{"value":"PRESSED","label":"pressed"},{"value":"RELEASED","label":"released"},{"value":"PRESSED_EXT","label":"pressed_ext"},{"value":"RELEASED_EXT","label":"released_ext"}]},"commandDescription":{"commandOptions":[{"command":"PRESSED","label":"pressed"},{"command":"RELEASED","label":"released"},{"command":"PRESSED_EXT","label":"pressed_ext"},{"command":"RELEASED_EXT","label":"released_ext"}]},"editable":false,"type":"String","name":"iCenplus_Cancello","label":"Apri Cancello","category":"switch","tags":[],"groupNames":[]}
and my feeling is that this part should be ok.
I tryied to change the supported mode (on off), but she replay always the same.
One more tip?
Thanks Costa
PS Is there any way to have a Alexa log to understand whats going on on her side?