Coder Social home page Coder Social logo

shmick / mqtt-door Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 19 KB

Report the status of, and control the garage doors over MQTT

License: MIT License

Python 91.51% Dockerfile 8.49%
mqtt iot garage-door-opener garage-controller home-automation home-assistant homeassistant raspberry-pi gpiozero

mqtt-door's Introduction

mqtt-door

Use gpiozero to read the state of the magnetic reed sensors on the doors and control the doors via relays connected to GPIO pins

Use paho-mqtt to publish MQTT status messages and subscribe to command messages

The door contacts are GE Overhead Panel Door Magnetic Contact

The relay board is found on eBay. Search for 4-Channel Optic-Isolated Relay Module H/L Trigger 3.3V-5V Arduino / Raspberry PI

MQTT Status

topic = stat/garage/NAME
payload = {"state": "STATE"}

MQTT Command

topic = cmnd/garage/NAME 
payload = open or close

Home Assistant Sensor

sensor garage_north:
  - platform: mqtt
    name: "Garage North"
    state_topic: "stat/garage/north"
    value_template: "{{ value_json.state }}"

Home Assistant Cover

cover garage_north:
  - platform: mqtt
    name: "Garage North"
    device_class: garage
    state_topic: "stat/garage/north"
    command_topic: "cmnd/garage/north"
    payload_open: "OPEN"
    payload_close: "CLOSE"
    state_closed: '{"state": "closed"}'
    state_open: '{"state": "open"}'
    qos: 1
    retain: false

mqtt-door's People

Contributors

shmick avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.