You may use the universal PiGateway sketch on your receiving side. This sketch can be used to communicate to all Moteinos with RFM69 radios, as well as Moteino based kits like GarageMote, BellMote, MotionMote, IOShield, etc.

The Moteino that controls GarageMote should be loaded with this GarageMote sample sketch.

Status tokens

The GarageMote sends and receives messages that control and reflect the status of the opener (based on the position of the magnets/sensors). Here are some of the tokens used in the sketch, note that the LED on the GarageMote Moteino will also reflect the state of the GarageMote:

  • CLOSED : when the garage door has finished closing and the belt/chain magnet has reached the closed side hall sensor (LED ON)
  • OPEN : when the garage door has finished opening and the belt/chain magnet has reached the open side hall sensor (LED OFF)
  • CLOSING : when the garage door is moving towards CLOSED position (LED pulses)
  • OPENING : when the garage door is moving towards OPEN position (LED pulses)
  • UNKNOWN : when neither open/closed hall sensors are near a magnet. This can be caused by magnet misalignment or belt/chain movement slack which needs to be adjusted (LED blinks)

You can test the relay by sending an ‘r‘ to GarageMote in serial monitor (right after programming), you should hear a short relay click.

Once you are confident the GarageMote is working, and consistent with the labels on the wiring, you are ready to install it on your opener. When you test it on your opener, present, except now you cannot talk to GarageMote directly, except if you power it from an FTDI adapter. The point here is to start interacting with GarageMote from the receiver Moteino (that has the PiGateway sketch). Here’s sample output from the Arduino IDE as you test GarageMote:

The RaspberryPi home automation gateway blog post series explains how GarageMote can be hooked to the web through a secured RaspberryPi webserver/websocket stack.

If you are using the LowPowerLab PiGateway software on your Pi, then you are already familiar with how GarageMote can be securely controlled directly from your browser or mobile device.