github WiesiDeluxe/ha-harvia-sauna v2.8.6
v2.8.6 — Fix Fenix Door Flip-Back

5 hours ago

🚪 Fix: Door flipping back to "Open" on Fenix (issue #3)

Symptom: on Fenix units using the remoteAllowed door fallback (v2.8.4), the door showed correctly right after opening/closing — then flipped back to "Open" a few minutes later while physically shut.

Root cause (diagnosed by @Leinadzet via debug logs): two code paths derived doorOpen. The state feed maps it correctly from remoteAllowed, but the measurement feed ran the same mapping — and on some Fenix units its doorSafetyState field is frozen at 0, so the safety inversion emitted doorOpen: True on every telemetry message. Last-writer-wins: the stale measurement value clobbered the correct state value on the next telemetry cadence.

Fix: indirect derivations (inverted safety fields, remoteAllowed) are now restricted to the state feed. The measurement feed only accepts direct door fields (doorOpen, door, doorState, doorSensor).

  • Devices reporting a real door field anywhere: unaffected
  • Xenio: untouched (uses the statusCodes path)
  • binary_sensor.remote_allowed: unchanged

Thanks to @Leinadzet for the precise two-path diagnosis. 🙏

Don't miss a new ha-harvia-sauna release

NewReleases is sending notifications on new releases.