# 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