Skip to content

A simple garage opener (momentary relay contact) based on ESP2866

Notifications You must be signed in to change notification settings

renatobo/arduino_garage_opener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

arduino_garage_opener

A simple garage opener (momentary relay contact) based on ESP2866

HW Requirements

Compiled for WEMOS D1 mini (you might have to change pin settings)

SW Requirements

  • MQTT used to log temperature and to wait for open/close actions. I ran a Mosquitto server on a separate raspberry pi in the same network
  • IFTTT used to notify phone or to use a trigger action to open/close garage (e.g. I arrive home -> open garage)
  • WiFi for a simple web page with a push button and status page and general connectivity for MQTT and IFTTT

Non common libaries used

  • PubSubClient for MQTT
  • OneWire and DallasTemperature for the DS18B20 temperature sensor
  • Ticker to update things on a schedule (temperature readings, status of garage door)
  • simpleDSTadjust to change DST based on my location

HomeBridge Temperature

To make the temperature readings available in HomeBridge, you can use this:

{
  "accessory": "mqttthing",
  "caption": "WorksShop temeperature",
  "name": "Temp Workshop",
  "topics": {
    "getCurrentTemperature": {
    "apply": "return (message.toString().split(';')[3].replace('}','')-32)/1.8;",
      "topic": "sensors/mydevicename/temp"
    }
  },
  "type": "temperatureSensor",
  "url": "http://mymqttserver:1883"
},

About

A simple garage opener (momentary relay contact) based on ESP2866

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published