Hi everyone.
I'm having "issues" with integrating my Shelly 1 with Google Home for a garage door scenario. I say "issues" because I'm not certain that it's not functioning as intended, and that perhaps I'm misunderstanding/misconfiguring my Shelly 1. Or maybe I'm overestimating Google Home.
Apologies for the length here but I simply wanted to be clear and thorough in my description.
My objective is to use the Shelly 1 as a garage door opener, and be able to say "Heh Google, open the garage door" and "Heh Google, close the garage door". I also need these actions to be "smart" as the user will not see the state (open or closed) of the garage door. By this, I mean that if the door is already closed when issuing the close action, I don't want the door to open. Similarly, if the door is already open then I don't want the door to close when the open action is issued. In other words, I don't want a switch that simply toggles the state of the door.
My current Shelly 1 setup is straightforward: I use a 12V source with a magnetic door switch to give open/closed state information. I have not reflashed the device nor am I using any smarthome platform - it's all rather vanilla. I've connected the mag switch to the SW terminal and configured the button type as a "detached switch" and set the timer to AUTO OFF of 1 second. So, while I got this working under the Shelly Cloud app, it falls short of my needs when I bring it into Google Home. My first issue is that I can't seem to tell Google that this is a "door" type device, i.e. that it is to respond to open/close commands. Rather, all devices that Google offers me are on/off-type devices, e.g. lamp, socket. I believe that as a consequence of this, regardless of the device type chosen, I can only use "turn on" and "turn off" voice commands, which is awkward. Upon further examination however, I realized that Google only triggers the Shelly 1 (I hear the click) when asked to "turn on" the garage door while asking it to "turn off" the garage door does nothing. In Google Home, the Shelly 1 appears to be "on" only for 1 second (from the AUTO OFF setting presumably) and drops back down into an off state, regardless of the SW (mag switch) state. Actually, going back to the Shelly Cloud app, I realized that this is what it's also doing so perhaps this behaviour is expected. Unfortunately, this moves me even further away from being able to issue "smart" open and close commands, in that I don't know how to use the SW state to guide those commands in Google.
At this point, I'm stuck wondering whether I've misconfigured things or perhaps I can't do what I need.
Any insight would be greatly appreciated.
Thanks all.