flic.io -> homeautomation -> Garage Door node

  • There are lots of Mysensors solutions for opening your garage here in this forum and here is another one šŸ˜€ . The Garage opener in itself is nothing strange (Pretty simple and naive approach to reuse a remote unit) but for me the missing piece of the puzzle was how to interact with the opener from my cars, and in the house. I then came across the flic.io buttons which I would like to share. Yes they are a bit too pricy šŸ˜• - but at least for me the biggest reason why to use mysensors is not to get the cheapest solutions (even if that is most often the case) but rather to build the exact solution I want and to have full control over it!

    The code can be found in my git repo: https://github.com/epkboan/myhome/tree/master/garage_door were also the text below is copied from

    Garage Door Opener
    Maybe you have an old motorized garage that you would like to control in a more flexible way? Or maybe you have lost one remote unit or the number of cars are more than the remotes. And after all it sort of defies the purpose of having a garage door opener if you have to leave the car to enter a code on the keylock :)...

    Here is a simple solution to pimp your system without having to hack the central control unit for the garage opener (and still be able to use the keypad if you have one of those). It requires you to strip one of your remote units for the garage door system and use a relay to emulate the button push. In my case the remote unit used a 12V battery so I added a step up from 5V to 12V to never have to bother about the battery life. But the battery could have stayed if you don't want the step up.

    I started out using my own built remote unit (a mysensors button node in low powered mode, deep sleep until button is pressed) but I then came across (flic.io) and then I just had to have some. You can then open the garage door at a longer distance from the house (think of all the seconds you don't have to wait in the car before the door is fully up. You are actually making money from the investment ;-)) as it communicates via your phone via Bluetooth and they are really small (size of a coin cell * 9mm) and nice looking.


    I use 2 magnetic door/window switches for the door state. It then shows the state in Domoticz (or whatever home automation system you have), but i also have a small web interface (html page with a button to control it and a picture of the garage depending on its state CLOSED, OPEN, OPENING, STOPPED & CLOSING). I have considered having logic to exactly control the state of the door in the mysensors node but since I still allow the keylock (directly connected to the garage door system) it might still be a bit confusing and lots of corner cases. For me this works!




    • Arduino Mini pro ~$2
    • RFM69HW ~$2
    • Step up 5v to 12v ~$3
    • Box ~$5
    • Relay module ~$3
    • 2 window/door magnetic switches ~$1

    So you should be able to build this for around $15.

    Then to get this really nice and user friendly i recommend getting something like the flic.io buttons. They will cost you at least $20 each but they are sooo worth it. Stick it to the dashboard of your car, next to the door before you leave the house and you can reuse the buttons for other automation tasks too. Works with Low power Bluetooth together with your phone(s) via an app that support all sorts of requests (hue, IFTTT, web req....)


  • @epkboan
    How is the phone accesing your homeautomation system, by http web command? how is security? is your homeautomation exposed to the internet? or if your phone connected to your home-wifi via VPN?

  • @bjacobse
    I left that part out deliberately šŸ˜‰. The Home Automation is connected to internet with nonstandard port, user, password, so that information is included in the plain webrequest and could be intercepted from anyone on the same network. But I would never hook my phone onto any Wi-Fi other than my own and the rest (most since when I leave the door the Wi-Fi drops) is going over the LTE network which Iā€™m not overly worried about. Any hardening suggestions are welcome!


Suggested Topics