fix: added energy-management

This commit is contained in:
Willem Serruys
2026-08-19 18:35:47 +02:00
parent fece1603e7
commit 53fa112aa8
38 changed files with 6060 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
# InfluxDB 2.x
INFLUX_URL=http://influxdb.local:8086
INFLUX_TOKEN=replace-with-a-read-scoped-token
INFLUX_ORG=your-org
INFLUX_BUCKET=your-bucket
# Measurement/field that holds live power draw for the whole house
INFLUX_MEASUREMENT=power
INFLUX_FIELD=value
# Unit of INFLUX_FIELD as stored in Influx: W or kW
INFLUX_FIELD_UNIT=W
# Home Assistant
HA_URL=http://homeassistant.local:8123
HA_TOKEN=replace-with-a-long-lived-access-token
# Capacity tariff target: keep every 15-minute block's average under this many kW
TARGET_KW=5
# Optional
PORT=3000
DB_PATH=./data/energy.db
CONTROL_LOOP_INTERVAL_MS=10000