Skip to content

heishamon: reset the heat curve offset only after FTW wrote one #233

Closed

Description

@frahlg

Reported by @Romaost on Discord, 17 Nov 2026. heishamon 0.8.0 on WH-SXC09H3E8.

driver_default_mode() and driver_cleanup() always publish safe_offset (default 0) to set/Z1_Heat_Request_Temp. Core calls driver_default_mode() at every start (go/internal/drivers/registry.go), on watchdog trips and on shutdown. An owner who sets the offset from Home Assistant loses it each time, even when FTW never commanded the pump.

Fix

The driver remembers whether FTW wrote an offset since it started (set in driver_command). driver_default_mode() and driver_cleanup() reset only then, and clear the mark. No new setting.

Roma also suggested control: false. Core's observe_only does that job for batteries, but its config check requires battery_capacity_wh, so it does not fit a heat pump. The mark covers Roma's case without a setting.

Known limit

After a Core crash the driver no longer knows that FTW wrote, so the pump keeps that offset. Today the only FTW writer is the operator's offset control on the heating card; no planner sends set_heat_curve_offset. So the value that stays is one the owner chose. Planned heat control will need the device-side lease from ADR 0012.

Test

A harness test that default mode and cleanup publish nothing before a command and publish safe_offset after one. Roma has offered a hardware check on WH-SXC09H3E8.

Activity

  1. added
    bug
    on Nov 17, 2026
  2. added a commit that references this issue on Nov 17, 2026
    940a913
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions