Giter Site home page Giter Site logo

8ch9azbsfifz / schanz-rolladen-raspi Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 6.06 MB

Remote Control 433MHz Schanz Rolladen with Raspi

License: GNU General Public License v3.0

Python 98.05% Dockerfile 1.95%
cover fhem homeassistant mqtt raspi rollershutter sdr openhab openhab3

schanz-rolladen-raspi's Introduction

schanz-rolladen-raspi

Remote Control 433MHz Schanz Rolladen with Raspi.

Using a minicul and the SIGNALduino FHEM module create an interface for a rollershutter using MQTT. FHEM is encapsulated in a separate container only for the purpose of sending the 433,95 MHz commands to the rollershutter motor. A separate container provides a python script for sending the commands to fhem and serving an interface using MQTT.

The following topics will be used:

Description Topic Values
Set position rollershutter/control_position/Test1 0-100
Control rollershutter/control/Test1 Open, Close, Stop
State rollershutter/Test1/state open, closed, opening, closing, stopped
Position ย  rollershutter/Test1/percentage 0-100
  • 0% == Open, 100% == Closed

Thus this module is compatible with HomeAssistant and OpenHab.

minicul

Installation

Configuring the varibles for the containers

Configure the following variables in the docker-compose.yml file: MQTT_HOST MQTT_PORT FHEM_HOST FHEM_PORT TIME_OPEN TIME_CLOSE ROLLERSHUTTER_NAME. (If the variable SIMULATION is defined, run in simulation mode.)

Testing the installation

  • Install mosquitto, i.e. on osx: brew install mosquitto
  • Optionally use the dashboard using docker-compose described here
  • Set position topic: 0-100 mosquitto_pub -h t20 -t rollershutter/control_position/Test1 -m 30
  • Set control topic: Open, Close, Stop
mosquitto_pub -h t20 -t rollershutter/control/Test1 -m Open
mosquitto_pub -h t20 -t rollershutter/control/Test1 -m Close
mosquitto_pub -h t20 -t rollershutter/control/Test1 -m Stop
  • State topic: open, closed, opening, closing, stopped - mosquitto_sub -h t20 -t rollershutter/Test1/state
  • Position topic: 0-100 - mosquitto_sub -h t20 -t rollershutter/Test1/percentage

Configuration for HomeAssistant

  • Install the MQTT integration and provide your server
  • Copy and adjust the configuration in HA Config to your setup

Configuration for OpenHAB

  • Install the mqtt binding
  • Copy and adjust the things configuration Things
  • Copy and adjust the item configuration Item

References

schanz-rolladen-raspi's People

Contributors

8ch9azbsfifz avatar

Stargazers

 avatar  avatar

Watchers

 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.