Git Product home page Git Product logo

hassio-voltronic-axpert's Introduction

This is a hassio addon to monitor voltronic axpert inverters.

The inverter is connected by USB and data is published as JSON to an MQTT broker. It publishes the data to 3 topics:

  • 'power/axpert' for the parallel data (some of these values seem to be only for the connected inverter even though they are returned by the parallel data command)
  • 'power/axpert_settings' for the configured settings
  • 'power/axpert{sn}' for the data from the connected inverter (configurable, {sn} is replaced with the serial number of the inverter)

You can then configure the sensors in Home Assistant like this:

sensors:
  - platform: mqtt
    name: "Power"
    state_topic: "power/axpert"
    unit_of_measurement: 'W'
    value_template: "{{ value_json.TotalAcOutputActivePower }}"
    expire_after: 60

See the following functions in monitor.py for the values published on each topic:

Install

Add https://github.com/bennieswart/home-assistant-addons to the addon store repositories and you will get a Axpert Inverter listed there. Note that this assumes the inverter is /dev/hidraw0. If you have other USB to Serial devices connected this might be wrong.

Manual build and run

# Build the docker image
docker build --build-arg BUILD_FROM=alpine -t axpert-monitor .

# Run the container
# You will need to edit options.json or add the proper environment variables
docker run                                     \
    -dit                                       \
    --name axpert-monitor-0                    \
    --device /dev/hidraw0:/dev/hidraw0         \
    -v $(pwd)/options.json:/data/options.json  \
    -e MQTT_CLIENT_ID=axpert0                  \
    --restart unless-stopped                   \
    axpert-monitor

Known working configurations

  • Two Kodak OG-PLUS6.2 in parallel running on Raspberry Pi 4.

Resources

A description of the serial communication protocol can be found in docs/protocol.pdf.

Credit

This project was forked from MindFreeze/hassio-axpert after it was deprecated.

hassio-voltronic-axpert's People

Contributors

bennieswart avatar

Stargazers

G.Grandes avatar  avatar  avatar ZEANE avatar Raphael P. avatar  avatar

Watchers

James Cloos avatar  avatar  avatar Jacques Combrink avatar

hassio-voltronic-axpert's Issues

Cannot install

Cannot install the addon, when I try to install in HA OS, returns the error code: "The command '/bin/ash -o pipefail -c apk add --update --no-cache jq python3 && python3 -m ensurepip && pip3 install crcmod paho-mqtt' returned a non-zero code: 1"

How I can solve it?

Thanks

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.