Software for ESP32 to talk to Hoymiles/TSUN/Solenso Inverters
Go to file
2024-06-27 22:18:41 +02:00
.github BREAKING CHANGE: repartition: double sketch size 2024-06-24 21:39:31 +02:00
.vscode Merge remote-tracking branch 'tbnobody/OpenDTU/master' into v24.3.15 2024-03-20 09:42:35 +01:00
docs docs: explain usage of MCP2515 module 2024-05-30 17:58:55 +02:00
include SDM power meter: evaluate error code after polling value 2024-06-27 22:18:41 +02:00
lib powermeter refactor: SML lib: replace double by float 2024-06-26 20:51:56 +02:00
pio-scripts check FW bin file size when creating factory.bin 2024-06-01 22:19:58 +02:00
src SDM power meter: evaluate error code after polling value 2024-06-27 22:18:41 +02:00
test Initial commit 2022-04-09 11:05:14 +02:00
webapp Feature: support JSON payload in MQTT power meter 2024-06-27 22:18:41 +02:00
webapp_dist Merge remote-tracking branch 'tbnobody/OpenDTU/master' into merge-v24.4.12 2024-04-25 20:59:19 +02:00
.DS_Store First version 2022-08-11 17:26:00 +02:00
.editorconfig Added .editorconfig 2024-01-05 17:26:02 +01:00
.gitignore Add new log location to .gitignore 2023-05-19 18:21:07 +02:00
COPYING Updated license file to match right phrase 2022-07-15 19:35:08 +02:00
LICENSE Change License to GPLv2 as the RF24 lib uses GPL-2.0-only 2022-07-15 18:05:58 +02:00
partitions_custom_4mb.csv BREAKING CHANGE: repartition: double sketch size 2024-06-24 21:39:31 +02:00
partitions_custom_8mb.csv BREAKING CHANGE: repartition: double sketch size 2024-06-24 21:39:31 +02:00
partitions_custom_16mb.csv Feature: Added support for boards with 16MB flash and PSRAM 2024-02-02 20:33:42 +01:00
platformio_override.ini Merge branch 'pr/MalteSchm/144' into development 2023-03-27 22:16:53 +02:00
platformio.ini BREAKING CHANGE: repartition: double sketch size 2024-06-24 21:39:31 +02:00
README_onBattery.md fix: project's name is 'OpenDTU-OnBattery' (capital 'O') 2024-05-30 13:55:44 +02:00
README.md README: update documentation links 2024-05-30 17:28:38 +02:00

OpenDTU-OnBattery

This is a fork from the Hoymiles project OpenDTU.

GitHub tag (latest SemVer)

OpenDTU-OnBattery Build cpplint Yarn Linting

What is OpenDTU-OnBattery

OpenDTU-OnBattery is an extension of the original OpenDTU to support battery chargers, battery management systems (BMS) and power meters on a single esp32. With the help of a dynamic power limiter, the power production can be adjusted to the actual consumption. In this way, it is possible to come as close as possible to the goal of zero feed-in.

History of the project

The original OpenDTU project was started from this discussion (Mikrocontroller.net). It was the goal to replace the original Hoymiles DTU (Telemetry Gateway) with their cloud access. With a lot of reverse engineering the Hoymiles protocol was decrypted and analyzed.

Summer 2022 I bought my Victron MPPT battery charger, and didn't like the idea to set up a separate esp32 to recieve the charger data. I decided to fork OpenDTU and extend it with battery charger support and a dynamic power limitter to my own needs. Hoping someone can make use of it.

Highlights of OpenDTU-OnBattery

This project is still under development and adds following features:

  • Support Victron's Ve.Direct protocol on the same chip (cable based serial interface!). Additional information about Ve.direct can be downloaded directly from Victron's website.
  • Dynamically sets the Hoymiles power limited according to the currently used energy in the household. Needs an HTTP JSON based power meter (e.g. Tasmota), an MQTT based power meter like Shelly 3EM or an SDM power meter.
  • Battery support: Read the voltage from Victron MPPT charge controller or from the Hoymiles DC inputs and starts/stops the power producing based on configurable voltage thresholds
  • Voltage correction that takes the voltage drop because of the current output load into account (not 100% reliable calculation)
  • Can read the current solar panel power from the Victron MPPT and adjust the limiter accordingly to not save energy in the battery (for increased system efficiency). Increases the battery lifespan and reduces energy loses.
  • Settings can be configured in the UI
  • Pylontech Battery support (via CAN bus interface). Use the SOC for starting/stopping the power output and provide the battery data via MQTT (autodiscovery for home assistant is currently not supported). Pin Mapping is supported (default RX PIN 27, TX PIN 26). Actual no live view support for Pylontech Battery.
  • Huawei R4850G2 power supply unit that can act as AC charger. Supports status shown on the web interface and options to set voltage and current limits on the web interface and via MQTT. Connection is done using CAN bus (needs to be separate from Pylontech CAN bus) via SN65HVD230 interface.

Documentation

Documentation of OpenDTU-OnBattery extensions can be found in the project's wiki.

For documentation of OpenDTU core functionality refer to the original repo and its documentation.

Please note that OpenDTU-OnBattery may change significantly during its development. Bug reports, comments, feature requests and fixes are most welcome!

To find out what's new or improved have a look at the changelog.

Acknowledgment

A special Thank to Thomas Basler (tbnobody) the author of the original OpenDTU project. You are doing a great job!

Last but not least, I would like to thank all the contributors. With your ideas and enhancements, you have made OpenDTU-OnBattery much more than I originally had in mind.