GaragePi talk to Home Assistant using MQTT Pi You can set up the MQTT with SSL and or username/password, which the clients will connect. To install the broker, go to the Supervisor tab, click on the Add-ons tab and select MQTT. Home Assistant has a built-in MQTT broker using Mosquitto, which is convenient. MQTT is a lightweight Message Queuing Protocol designed for IoT applications. So far, we have a Garage Door, Relay, Raspberry pi, and Home Assistant the question now is how does the Raspberry Pi communicate with the home assistant? Fortunately, there's MQTT. If you are into home automation, you should check out Home Assistant - I have been using it for more than two years, and I love it! If you want to get started with Home Assistant, check out this link The answer was quite obvious since I already use Home Assistant. The next challenge is how the user communicates with the Pi (GaragePi) and the user interface. The garage wall switch is an open-close switch, and all you need to activate the garage door is to emulate the open-close behavior using a relay. Above all, I wasn't comfortable with the security of any of these solutions since giving out control of my garage doors is pretty much the same as giving out the house keys.Īfter researching online, I decided that the best way to use a raspberry pi + relay is to control the garage opener. There's products like Nexx, with costs you about $75 / door, and there are products like MyQ, which in addition to the cost of the hardware, forces you to pay a monthly subscription. I looked around on Amazon and other online storefronts. I wanted a solution that is accessible from my smartphone, secure, reliable, and cheap. My new home had two garage doors with wall-mounted switches.
0 Comments
Leave a Reply. |