Hello everybody!
I’ve been trying to solve a problem using the Smartthings API for a few weeks now, but as I’m new to this area, I’d like some help developing:
I created a virtual device to open or close my garage and read a contact sensor to tell me the status.
To update the status of the gate, I created an automation via Alexa that, through Voice Monkey, sends a request to the Smartthings API and the request changes the status to open or closed.
To open or close the gate, I created two routines, one to open or close, which creates a command via Alexa to perform the function.
The problem: when I’m in the car, via AndroidAuto, I can’t access the panel to give commands in the garage, only some buttons, but the garage door doesn’t exist button.
What I’m trying to do, via API or CLI, is to place a button to command the open/closing garage door, all this in on device.
I’ve already tried to do this by creating a virtual switch via CLI, but I believe the right thing to do is to try using the API, and this is an area that I know minimally, making requests, puts and posts, but I don’t know where or what to change.
Could anyone clarify how I could do this??