This is really easy if you have Home Assistant. I haven’t done it yet - I just don’t have a use case for wanting to open my garage with my voice - but it is fairly straightforward with HA and IFTTT.
- Open IFTTT, Create a new Applet, select Google Assistant, and use “Say a simple phrase”
- Choose the phrase you will want to trigger the action by, “open my garage” (and provide up to 2 alternatives)
- Select the response you want to hear from Google when you say the phrase, like “OK, Opening garage door”
- Go to the “That” of the Applet and select the Maker channel
- For the URL use:
http://[HASS URL]:8123/api/services/cover/open_cover?api_password=[HASS PW] - Select
POSTandapplication/json - Enter
{"entity_id": "cover.[HASS GARAGE DOOR NAME]"}for the message body - SAVE AND VOILA
You will need a different applet for closing the door (fixing the trigger phrase/URL). You will also need to go into the Google Home app and link your IFTTT account if you haven’t done it yet.
If Garadget has an API of any sort then you’d just replace steps 5-7 with the information Garadget wants. EDIT: Per this post you can.
There will be a 3-4 second delay but I used the exact same thing for my lights (until I got emulated_hue working!)