Forum Replies Created
-
AuthorPosts
-
spikebikeParticipantSorry to answer my own question again. I read the source and open/close is supported.
$ mosquitto_pub -m “Button” -t “myog/IN”I’m listening with MQTT in another window and sure enough:
18:37:26 Garage door OPENVery cool. So now I can control the door via web API or MQTT from anywhere on my network. Now to get something working with HTTPs and IPv6 (I’d rather not use someone else’s cloud).
spikebikeParticipantCan OpenGarage be controlled by MQTT to open/close the door? What string to I publish to, something like <OG name>/OUT/STATE? What do I send as a message? “OPEN”?
spikebikeParticipantCorrection, another post had an example and I now get push updates on door position via MQTT:
$ mosquitto_sub -v -t “myog/OUT/STATE”
myog/OUT/STATE CLOSED
myog/OUT/STATE OPEN
myog/OUT/STATE OPEN
myog/OUT/STATE CLOSED
spikebikeParticipantSorry, it works, I cut/paste from one of the web pages and managed to get some unicode character instead of double quotes.
spikebikeParticipantI was hoping for exactly this functionality, push based notifications without depending on an external cloud service.
However I installed mosquitto and the mosquitto-clients, and named my device “myog” without quotes.
From the command line I ran:
$ mosquitto_sub -t “myog/OUT/STATE”In the mosquitto log I see:
1530875249: New connection from 127.0.0.1 on port 1883.Then I point my OG at it and I see:
1530874937: New connection from 192.168.3.101 on port 1883.
1530874937: New client connected from 192.168.3.101 as myog (c1, k15).But when I open or close the door I don’t see any messages. I don’t think it’s a firewall since I’m successfully connecting.
spikebikeParticipantSeems like not a particularly good idea. At least by default SSL isn’t supported. So you want to send plain text over IPv6 to control your garage door?
I was thinking of writing a small proxy that could support IPv6, SSL, and be secure/robust enough to be Internet facing. Similarly I’m pondering an android app, but I want it to be self hosting. I’d rather not depend on IFTTT or Blynk and worry about downtime, billing changes, bankruptcy, changes to pricing model, being hacked, etc.
I’ve been trying to get MQTT to do something, but so far I’ve got it to connect, but not log anything of interest. Still digging around for docs or examples.
-
AuthorPosts