I currently use Alexa voice commands to trigger OpenHAB rules via IFTTT integration. For example, “Alexa, trigger security pause” causes Alexa to send OpenHAB a command to update NUMBER
item Master_Control
to the value of 3. The NUMBER
item Master_Control
is declared to be exposed
in the openhabcloud.cfg
configuration file.
I am running OpenHAB 3.0.2 and use configuration files.
IFTTT is now putting restrictions on its free usage so I am migrating away from it.
I have spent the afternoon researching the solution and found hints in:
Amazon Alexa Smart Home Skill at openHAB Skill For Amazon Alexa | openHAB
and
Amazon Alexa Smart Home Skill: How to tag items for Alexa?
and
Amazon Echo Control Binding: Amazon Echo Control - Bindings | openHAB
but have not found a clear way to set a NUMBER
item.
The utterances I would like to use are:
“Alexa, Security ON”
“Alexa, Security OFF”
“Alexa, Security PAUSE”
“Alexa, Security RESTART”
“Alexa, Security SHUTDOWN”
“Alexa, Network RESTART”
etc.
etc.
or “Alexa, trigger Security …”
I think I need the .items
file to something like as follows that maps the control setting to a number?
Number Master_Control “Master Control [%d]” (gControl) {alexa=“Security ON”=1,“Security OFF”=2,“Security PAUSE”=3,“Security RESTART”=4,“Security SHUTDOWN”=5}
{channel=“mqtt:topic:hsbroker:WatchManThing:WMC39”}
Any help will be appreciated.