Successfully setup Alexa Smart Home Skill, Works great!!!
One thing I would like to ask for,
Can I get a kind of verification question or confirmation from Alexa when using a specific switch?
For example I don´t want Alexa opening accidentily the Garage Door, would be great if Alexa would ask something like “Should I open the Garage Door”
Is that possible?
You could take advantage of the Alexa garage door integration which adds a security pin code to open the door similar to the lock integration.
Unfortunately, this integration is not accessible through a metadata label, currently, as I highlighted to you in the other thread. This means that the setup isn’t that straight forward requiring a proxy item if your controlling item is a Switch item type to use the ModeController interface.
rule "Garage Door Alexa Commands"
when
Item GarageAlexa received command
then
if (receivedCommand == "OPEN")
Garage.sendCommand(ON)
else if (receivedCommand == "CLOSE")
Garage.sendCommand(OFF)
end
rule "Garage Door Changes"
when
Item Garage changed
then
if (Garage.state == ON)
GarageAlexa.postUpdate("OPEN")
else if (Garage.state == OFF)
GarageAlexa.postUpdate("CLOSE")
end
I’m not familiar with the OH Alexa Skill, but you should be able to accomplish this with one of the NODE-RED Alexa flows. I started using these when I wanted to get more interactivity from Alexa. Using these flows along with the OH flows you can create almost anything. You will need JavaScript experience to craft the functions. Check them out they are really powerful.
Amazon only made the garage door opener security feature I mentioned above using a ModeController interface. The example I provided should work with your setup. It is basically a workaround to get this feature working with your garage door item using a proxy item and rules that sync/update states of original item.
Alexa will ask for your pin code to open your garage door or to setup it via the Alexa app, if not done already.