You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support heat-pump/flexload nodes in Live Energy Balance and SoC-aware heat-curve control #520
Roma is building a Heishamon driver and hit two current product gaps while testing on HA Green v0.121.0.
Current behavior:
Flexloads can dispatch thermostat setpoints via setpoint_action and price/PV-aware planner/simple modes.
The current flexload model can express min/max or target/min behavior, but not a discrete three-level heat-curve offset policy (-3, 0, +3) driven by both price and site battery SoC.
Live Energy Balance currently builds nodes from /api/status driver fields pv_w, bat_w, ev_w, and grid/site meter. A heat pump/flexload that only emits metrics does not appear as its own node.
Desired behavior:
Allow a Heishamon/heat-pump flexload to expose/display as a heat-pump or flexible-load node in Live Energy Balance, distinct from EV and battery.
Consider a config-level policy for discrete flexload commands, e.g. set_heat_curve_offset values [-3, 0, +3] based on price bands and battery SoC / surplus state.
Avoid requiring driver authors to fake DerBattery or DerEV solely for UI visibility.
Notes:
Existing valid host.emit types are meter, pv, battery, ev, vehicle.
host.emit_metric is the right path for temperatures/diagnostics today, but metrics do not create a flow node.
HeatSourceDriver is declared but not yet wired in flexload service, so central HP attribution may be related future work.
Code status on master (8154a715): the Heishamon driver now exists, advertises heatpump, and supports the bounded set_heat_curve_offset command. The requested product work is still incomplete: heat-pump metrics do not create a Live Energy node, and Core has no SoC/price-driven discrete heat-curve policy wired through flexload control. Keep this open, but split the remaining work into read-only UI attribution and a separate opt-in active-heat policy with its own safety checks.
Answering the driver author's question directly: no manifest field is missing. There is nothing you can declare today that makes Core render an offset control, and the command path to reach the driver is missing too. Two gaps, not one.
Settings → Devices is not capability-driven.web/settings/tabs/devices.js renders hand-written branches: MQTT/Modbus connection fields, plus one branch per driver family (tesla, zap, myuplink, sonnen, goodwe). The file says so at line 23 — those choices stay in the UI "until the signed driver catalog grows a general config-schema field". That schema does not exist yet.
The catalog parser reads only these keys from the DRIVER block (go/internal/drivers/catalog.go:170): id, name, manufacturer, version, host_api_min/max, description, homepage, protocols, capabilities, http_hosts, connection_defaults, read_only, verification_*, tested_models, config_secrets. Nothing describes controls, commands or value ranges. config_secrets is the only key that creates an input, and it renders as a password field.
heatpump as a capability string is read by nobody. The only hit in the repository is drivers/heishamon.lua:36. The strings Core actually branches on are meter, pv, battery, ev, vehicle and apicreds.
There is no command path either. A slider would have nowhere to POST. Registry.Send is internal; the only HTTP routes are POST /api/ev/command (allowlist: ev_start, ev_pause, ev_resume, ev_set_current) and POST /api/v2x/command. The control tick in go/cmd/ftw/main.go:2632 sends only battery, curtail and curtail_disable. set_heat_curve_offset is never called by Core — the only hit outside the driver itself is go/internal/drivers/heishamon_test.go:71.
So the driver is built correctly. Core has no end to attach it to yet.
Where the real path runs. Core already has a declarative command contract: control v2 in go/internal/drivers/control_v2.go, fed by the signed package manifest (commands[] with typed inputs, lease_policy, default_mode, capabilities.control). That is the shape a rendered control should be built from, rather than another hand-written branch. Three things currently stop it reaching a heat pump:
RuntimePolicy.validate() rejects every permission except modbus.read/modbus.write and requires a Modbus write path, so an MQTT driver can never bind a control policy.
sourcefulFTWCapabilities() maps only capabilities.telemetry into the catalog entry — capabilities.control is dropped.
Nothing exposes policy.Commands over HTTP, and RuntimeCommandInput carries only type and required — no min, max, step, unit or label, which is what a slider needs.
One fix worth making now, independent of control. The Heating view discovers heat pumps by the hp_power_w metric (web/heating.js:172). heishamon.lua emits hp_outside_temp_c, hp_inlet_temp_c, hp_outlet_temp_c, hp_target_temp_c and hp_z1_heat_offset — no hp_power_w — so the pump does not appear on that page at all, not even as telemetry. The view also reads hp_outdoor_temp_c while the driver emits hp_outside_temp_c. If Heishamon publishes a power topic, one extra emit_metric("hp_power_w", …) plus that rename lights up the whole Heating page. That page is also where a curve-offset control belongs later — next to the offset the view already reads for NIBE.
Activity
frahlg commentedon Jul 22, 2026
Code status on
master(8154a715): the Heishamon driver now exists, advertisesheatpump, and supports the boundedset_heat_curve_offsetcommand. The requested product work is still incomplete: heat-pump metrics do not create a Live Energy node, and Core has no SoC/price-driven discrete heat-curve policy wired through flexload control. Keep this open, but split the remaining work into read-only UI attribution and a separate opt-in active-heat policy with its own safety checks.frahlg commentedon Jul 31, 2026
Answering the driver author's question directly: no manifest field is missing. There is nothing you can declare today that makes Core render an offset control, and the command path to reach the driver is missing too. Two gaps, not one.
Settings → Devices is not capability-driven.
web/settings/tabs/devices.jsrenders hand-written branches: MQTT/Modbus connection fields, plus one branch per driver family (tesla, zap, myuplink, sonnen, goodwe). The file says so at line 23 — those choices stay in the UI "until the signed driver catalog grows a general config-schema field". That schema does not exist yet.The catalog parser reads only these keys from the
DRIVERblock (go/internal/drivers/catalog.go:170): id, name, manufacturer, version, host_api_min/max, description, homepage, protocols, capabilities, http_hosts, connection_defaults, read_only, verification_*, tested_models, config_secrets. Nothing describes controls, commands or value ranges.config_secretsis the only key that creates an input, and it renders as a password field.heatpumpas a capability string is read by nobody. The only hit in the repository isdrivers/heishamon.lua:36. The strings Core actually branches on are meter, pv, battery, ev, vehicle and apicreds.There is no command path either. A slider would have nowhere to POST.
Registry.Sendis internal; the only HTTP routes arePOST /api/ev/command(allowlist: ev_start, ev_pause, ev_resume, ev_set_current) andPOST /api/v2x/command. The control tick ingo/cmd/ftw/main.go:2632sends onlybattery,curtailandcurtail_disable.set_heat_curve_offsetis never called by Core — the only hit outside the driver itself isgo/internal/drivers/heishamon_test.go:71.So the driver is built correctly. Core has no end to attach it to yet.
Where the real path runs. Core already has a declarative command contract: control v2 in
go/internal/drivers/control_v2.go, fed by the signed package manifest (commands[]with typed inputs,lease_policy,default_mode,capabilities.control). That is the shape a rendered control should be built from, rather than another hand-written branch. Three things currently stop it reaching a heat pump:RuntimePolicy.validate()rejects every permission exceptmodbus.read/modbus.writeand requires a Modbus write path, so an MQTT driver can never bind a control policy.sourcefulFTWCapabilities()maps onlycapabilities.telemetryinto the catalog entry —capabilities.controlis dropped.policy.Commandsover HTTP, andRuntimeCommandInputcarries only type and required — no min, max, step, unit or label, which is what a slider needs.One fix worth making now, independent of control. The Heating view discovers heat pumps by the
hp_power_wmetric (web/heating.js:172). heishamon.lua emits hp_outside_temp_c, hp_inlet_temp_c, hp_outlet_temp_c, hp_target_temp_c and hp_z1_heat_offset — nohp_power_w— so the pump does not appear on that page at all, not even as telemetry. The view also readshp_outdoor_temp_cwhile the driver emitshp_outside_temp_c. If Heishamon publishes a power topic, one extraemit_metric("hp_power_w", …)plus that rename lights up the whole Heating page. That page is also where a curve-offset control belongs later — next to the offset the view already reads for NIBE.Keep the HA automation for now.
feat(thermaltwin): learn each declared room's thermal twin in shadow
docs(adr): propose heat control from a target temperature and a learn…
feat(drivers): let a control declare what it does to heat (#1995)
feat(thermaltwin): learn each declared room's thermal twin in shadow
feat(thermaltwin): learn each declared room's thermal twin in shadow (#…