Giter Club home page Giter Club logo

gpio2mqtt's Introduction

gpio2mqtt

A server application to expose obscure devices to homeassistant via MQTT. Not many devices are currently supported as I basically use it exclusively for my own purposes and only use the ones that are implemented.

Currently supported:

  • Covers connected to GPIO via seperate Up, Down and Stop pins (you can for example solder wires to a VELUX Integra remote, see below)
  • VARTA Element Energy Storages via Sunspec-Modbus (probably also some others that are similar enough)

Example Config

Example config defining one cover and one sunspec device:

broker: 192.168.1.20
client_id: gpio2mqtt_bridge
covers:
    -   group_gpio_pause_ms: 1000
        devices:
            -   name: Velux 1
                chip: /dev/gpiochip0
                up_pin: 2
                stop_pin: 3
                down_pin: 4
                device_gpio_pause_ms: 300
                device:
                    identifier: velux_integra_1
                    manufacturer: VELUX
                    model: INTEGRA
            -   name: Velux 2
                chip: /dev/gpiochip0
                up_pin: 7
                stop_pin: 8
                down_pin: 25
                device_gpio_pause_ms: 300
                device:
                    identifier: velux_integra_2
                    manufacturer: VELUX
                    model: INTEGRA

sunspec:
    -   name: Varta Element
        host: 192.168.0.52
        device_polling_delay_ms: 1000
        device:
            identifier: varta_element_1
            manufacturer: Varta
            model: Element

Example Hardware Setup for two Velux Integra Covers

Required Components

  • 2 Velux Remotes
  • 2 Quad Bilateral Switches (e.g. this)
  • 1 Raspberry Pi 1 B+

Steps

  1. Dismantle the Velux remotes

  2. Solder wires to the power and signal pads on the internal PCB

  3. Connect all components as shown by the schematic (the GPIO pins can free freely chosen, this just needs an adjustment the config shown above) grafik

gpio2mqtt's People

Contributors

clueliss avatar liss-h avatar

Watchers

 avatar  avatar

gpio2mqtt's Issues

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.