Code Monkey home page Code Monkey logo

tzerra2mqtt's Introduction

tzerra2mqtt

Python script for reading Remeha Tzerra central heating boiler data and send the data as mqtt messages.

To use this script you need:

  • a RS232 to TCP converter like this one
  • a ttl to RS232 converter like this one.

Put the ip-address of the RS232 to TCP converter in settings.py.

Connect the PC output of the heater to the ttl to RS232 converter using a RJ10/4P4C connector, for instance a cut in half telephone handset cable. Connect the ttl converter to the RS232 to TCP converter.

         

(Instead of these two convertors you can use an ESP8266 and the WifiTelnetToSerial example sketch in the Arduino IDE)

You will need the Eclipse Paho MQTT Python client library, use pip for installation: pip3 install paho-mqtt

The script returns the current running values of the heater. All values are sent as an mqtt message to your mqtt broker. In settings.py you can set the brokers address, the topic and some other mqtt stuff.

The script is meant to run every minute (or 5) as a cronjob e.g.

* * * * * /usr/bin/python3 /home/pi/tzerra2mqtt/tzerra2mqtt.py > /home/pi/tzerra2mqtt/cronlog.txt

If you use Home Assistant, you can run set_hass_autodiscovery.py once to add the sensor entities to HA automatically. *** THIS IS OUTDATED because of changes in Home Assistants mqtt model. ***

https://community.home-assistant.io/t/rehema-tzerra-central-heating-interface/267366

tzerra2mqtt's People

Contributors

jjanssen123 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

tzerra2mqtt's Issues

Still working?

Hi,

Is the repo still working? I have a new tzerra, can you help me to set it up with esp and wifi? I can write a full 'how to' for future users?

Gr Hugo

Use with FTDI USB Adapter

Hi nice project,

i want to use with FTDI USB Adapter on a Remeha Celenta 25ds to send the data to iobroker.
Can you help me tobinding the usb /dev/ttyUSB0 in the script?

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.