Giter VIP home page Giter VIP logo

uvr2mqtt's Introduction

uvr2mqtt

Tool to read all available data from UVR to MQTT including Homeassistant Auto-Discovery

Introduction

With a little help of the TA-Support, I have developed a way to read also Variables from within Logic Blocks and transfer them to HA. As an example, for a PID Block, these Values are available:

Image showing Examples

All of this runs in a python script with little dependencies.

Configuration

The only thing you need to do is to create a Schema with TA-Designer. We need the resulting xml (and it must be uploaded to CMI/BLNet). The other prerequisite is an MQTT Broker and the MQTT Integration in HomeAssistant (in case the the Data shall become available in HomeAssistant).

Then, the only configuration is this (send_uvr_mqtt.py):

mqtt_config = {
    "broker": "192.168.177.3",
    "port": 1883,
    "user": "user",
    "password": "pass" 
}

uvr_config = {
    "xml_filename": "Neu.xml",
    "ip": "192.168.177.5",
    "user": "user", 
    "password": "pass"  
}

Testing

  1. Check that your TA-Designer / CMI Schema is working by accessing http://cmi/schema.html

  2. (optional) edit the line page_values=_read_data("Neu.xml","192.168.177.5","user","123")` run uvr.py

The data available from your schema should be shown on the commandline

Running

run ´send_uvr_mqtt.py´ It will poll information from CMI every 60s.

HomeAssistant Integration

In HA, the result is an MQTT Device that has the different Sensors as Entities. As soon as the XML is updated (and the script restarted) the new Entities are created automatically. No configuration in HA needed (auto-discovery)

uvr2mqtt's People

Contributors

henfri 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.