I’ve managed to setup Google Assistant so that when I speak “Turn on garage door 1” a relay on an ESP32 board will trigger and cause the door to move - up or down depending on it’s position (if the door is closed it will open and if the door is open it will close). This is the only command that Google recognizes; it doesn’t recognize “Hey Google - Turn off garage door 1”. So only the voice command of “Hey Google - Turn on garage door 1” can operate the door up or down.
I have a reed switch on the door that indicates if it’s open or closed.
What I would like to happen is for me to say “Hey Google - Open garage door 1” or “Hey Google - Closed garage door 1”. I would also like google to tell me if I can’t close garage door 1 if it is already closed (based on the reed switch).
Is this possible and how to I go about doing it?
Thanks in advance for any help that can be provided.
But obviously thats not always possible, especially if you have invested into Google Homes / Nest Homes etc.
If you want to use Google Assistant the best i know is to create a Template Cover Template cover - Home Assistant (home-assistant.io). In this you can use your reed switch in the value_template so it knows if its open or closed. Then you can trigger your relay in the open_cover, close_cover and stop_cover segments.
I currently dont know if you can “open” the cover if its already open and then it would maybe close again, but if that happens, you can just put a script there like in the first example on the website that checks if the door is closed/opened or not and just does not do anything if it is already at the state where you want to go to.
What you cannot do with this is that the Google Assistant tells you, that you cant close/open the door, because it already has that state, it will just do nothing then (or whatever you specify in your custom script)
Hello
Once I got it working I didn’t follow-up to see if Google Assistant would respond with a custom response. So now even if the door is closed an I say “Hey Google, close Garage Door 1” it will trigger the relay and open the door.I need to look into this further. Probably a good winter project. Thanks for following up.
I think it would still not respont then, or just give you a confirmation that it worked, but at least not close, when it should open or also the other way if you change it there.
Maybe you can use this idea or something simmilar when you try it