I’ve been trying to figure out a way to get alexa to control the operation of my garage door.
I’m so new at this that I’m really having a hard time wrapping my head around the sequence of steps to get this working.
I keep looking at examples but nothing seems to be registering with me.
These are the steps I want to have happen:
I want to tell Alexa to close my garage door - “Alexa, close the garage door”
Then I want to HA to test the condition of the garage door position switch
If the garage door is closed I want Alexa to say “the garage door is already closed” and end the script.
If it’s open I want to send the signal to the garage door control switch to activate to close the door and for Alexa to just acknowledge the command - “OK, closing the garage door” - or some such thing.
I have a lot of the bits of what I need to do figured out (I think!) but i can’t figure out how to combine them all together in a coherent script that i can run.
I have emulated_hue enabled and Alexa can already control my lights so I know Alexa works. I can operate the garage door control switch and see the state of the garage door position sensor in HA. I have already programmed an automation to turn the garage door operating switch off 2 seconds after HA detects the switch is on to simulate a momentary pushbutton.
Can anyone give me a nudge (or hopefully a big shove) in the right direction to be able to put it all together?