Skip to content

Home

Logo

OpenDTU-OnBattery

Upstream Project

OpenDTU-OnBattery is a fork of OpenDTU by Thomas Basler (tbnobody).

Open Source software to talk to Hoymiles solar inverters and battery peripherals. It is an alternative to Hoymiles Data Transfer Units (DTUs), which sync data into the s-Miles cloud.

Note

You can only use one DTU for a specific inverter. You cannot query an inverter with two DTUs. Mixing up multiple DTUs may lead to unexpected behavior!

Key Features

  • Dynamic Power Limiter to adjust one inverter's limit dynamically
  • Power Meter interface to read the household power consumption
  • Victron VE.Direct interface to communicate with Victron charge controllers
  • Battery interface (JK BMS, Pylontech, Victron SmartShunt) to know a battery's state
  • AC charger interface to control a Huawei AC charger

Key Features inherited from the upstream project

  • Read live data from inverter
  • Show inverters internal event log
  • Show inverter information like firmware version, firmware build date, hardware revision and hardware version
  • Show and set the current inverter limit
  • Show the current grid profile settings
  • Function to turn the inverter off and on
  • Supports up to 10 inverters
  • MQTT support (with TLS)
  • Home Assistant MQTT Auto Discovery support
  • Nice and fancy WebApp with visualization of current data
  • Firmware upgrade using the web UI
  • Time zone support
  • Ethernet support
  • Prometheus API endpoint (/api/prometheus/metrics)
  • English, German and French (partially translated) web interface
  • Displays (SSD1306, SH1106, PCD8544)
  • Status LEDs
  • Configuration management (export / import configurations)
  • Dark Theme

Features for developers

Background

The upstream project was started from a discussion on mikrocontroller.net. It's goal was to replace the original Hoymiles DTU (Telemetry Gateway), which uploads data to their cloud. With a lot of reverse engineering, the Hoymiles protocol was decrypted and analyzed.

Support

For support using OpenDTU-OnBattery you can find us on Github or Discord:

Github Discussions Discord Chat