fix: setpoint clamp, thread safety, error handling, real-time kWh counters; cleanup repo

This commit is contained in:
bart
2026-11-11 18:57:25 +01:00
parent 0b17034b68
commit 651676afda
12 changed files with 89 additions and 27996 deletions
+12
View File
@@ -0,0 +1,12 @@
# chargeman
Home battery controller for Victron (Venus OS). Controls the inverter via D-Bus (AC power setpoint, feed-in/charge enable),
uses P1 meter data and the Tibber hourly price via MQTT, and publishes state to MQTT (Home Assistant discovery).
## Run
- Install on the Venus OS device under `/data/chargeman`, copy `config.ini.example` to `config.ini` and set the Tibber key.
- Init script: `chargeman` (`start|stop|restart|status`), runs `chargeman.py` with `/data` as working directory.
- MQTT broker: env `CHARGEMAN_MQTT_BROKER` (default `10.2.0.15`) and `CHARGEMAN_MQTT_PORT` (default `1883`).
## Chargemodes (`avr95/battery/chargemode/set`)
0 floating, 1 charge manual, 2 charge max, 3 discharge manual, 4 discharge max, 5 charge cheap (Tibber), 6 balance dyn, 7 charge dyn, 8 discharge dyn.