Option to use HTTP post to trigger door open/close. #27
Replies: 3 comments 25 replies
-
Hi! I don't know if you saw but I recently updated the readme with a Notice of Deprecation for this app because of the MyQ API changes, and in the notice I mention that I'm working on a fork of this app to support other smart Garage Door Openers (GDO's) instead. In that effort, I've rewritten a significant portion of the codebase, which includes abstracting control of the garage doors away from the rest of the logic of YouQ (or whatever the new app will be called; I'm open to suggestions 😄 ). Because of this abstraction, it would be incredibly simple to implement HTTP endpoint calls to operate an arduino as you've suggested. If you want to handle the required door state for operation in the arduino and abstract that logic away from YouQ, that's fine, or YouQ can also handle that logic if you have an endpoint for it to receive status updates for the garage door state. As I mention in the notice of deprecation, the initial version of the fork will support ratgdo and other generic mqtt smart garage door openers, so if your arduino can watch for mqtt events (and optionally publish door status to a topic), then YouQ will support that method out of the box when it releases. Otherwise I can add in the http endpoint as you've described and you can use that. |
Beta Was this translation helpful? Give feedback.
-
Hi Brchri, |
Beta Was this translation helpful? Give feedback.
-
fyi, I tested and it worked. Thanks for your hard work. My Arduino also included logic to only open/close if the door current status is the opposite. Now, I got double "safety switch" :) - even better. Here is my config @ 10:23:00 , I opened the garage door using garage door opener (other method than tesla-youQ) @12:00:00, the garage door "open" action was triggered by tesla-youQ Here is the log |
Beta Was this translation helpful? Give feedback.
-
Sorry if this is not the right place to request new features.
Since myQ api is currently broken and most likely it will remain broken, I am wondering is it possible to add a feature to trigger “open” and “close” using http post on Tesla-YouQ like so http://<arduino_IP>/open and http://<arduino_IP>/close” ?
First, I am not a developer, nor good at coding anything. Everything I have ever coded was via googling.
Several years ago, before I had myQ. I have an Arduino ESP8266 wired to a garage door remote and leveraging MQTT from adafruit.com. Using IFTTT on my phone, I can trigger/simulate the remote button press.
If Tesla-youQ can trigger Open/Close using http post then I can then program the ESP8266 to listen for “open/close”
Using IFTTT as a hub connecting to Arduino and Smartthings (or any door sensor that works with IFTTT), I can have smartthings door status update the GarageDoorStatus feed at adafruit.com. My logic will be something like this.
From Tesla-YouQ:
http://<arduino_IP>/open
On the Arduino: Only simulate button press if door status is closed.
Subscribe to Adafruit GarageDoorStatus feed. (open=1 and close =0)
If (GarageDoorStatus =0)
{
Trigger door remote button press on Arduino
}
Else do nothing
From Tesla-YouQ:
http://<arduino_IP>/close
On the Arduino: Only simulate button press if door status is opened.
If (GarageDoorStatus =1)
{
Trigger door remote button press on Arduino
}
Else do nothing
Thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions