Repository navigation
feat: decode faults by name, expose HP/LP input, explain no-flow temperatures - #33
Merged
Merged
Conversation
…-flow temps
A device's faults[] array is a bitmask, so "fault code" was never a meaningful
value: the sensor showed the raw first word, and a state map translated 8 to
"HP/HP5" using the HP table even on HP10 units where 8 is Defrost Sensor 2.
- hp_fault_code now reports the decoded fault names ("Compressor Fault") with
faults/raw/pid attributes, decoded with the PID-appropriate table. A snapshot
with no faults reports nothing instead of a bare 0.
- HP10 ctrlFlags bit 2 is the live highPressureLowPressure input, which the app
renders as its own "HP/LP" status row. Exposed as a diagnostic binary sensor
for HP10 only; it reports None on HP, where no such bit exists. This is
distinct from the latched fault at faults[0] bit 6, and its exact meaning is
still unconfirmed (Q2) - the point of exposing it is to collect that evidence.
- Water temperature already dropped to None without flow; it now also explains
itself with unavailable_reason: no_flow, so "unavailable" is not mistaken for
the device being offline.
Diagnostics rename active_fault_code -> active_faults, which is what it holds.
Tests: fault names for three fixtures, per-PID fault-table divergence, the
sensor state and attributes, and the HP/LP flag being True on HP10 and None on
HP. 453 pass (was 445).
This was referenced Nov 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Three follow-ups from the #30 investigation: fault reporting was showing a raw
bitmask word, the HP10 HP/LP pressure input was invisible, and "water temperature
is unavailable" gave no reason.
Faults are a bitmask, not a code
faults[]is a bitmask, so there is no single "fault code". The sensor wasshowing the first non-zero word, and a state translation mapped
8toHP/HP5from the HP table — wrong on HP10, where8is Defrost Sensor 2.Compressor Fault, using the PID-appropriate table.faults(list),raw(words),pid.0.active_fault_code→active_faults, which is what it held.HP10 HP/LP pressure input
HP10
ctrlFlagsbit 2 ishighPressureLowPressure, which the vendor app rendersas its own "HP/LP" status row. It is now a diagnostic binary sensor on HP10
units and reports unknown on HP, where no such bit exists.
Two caveats, stated plainly:
live input, not an alarm.
compressor off and
faults: [0]. Exposing it is how we collect that evidence(§7.3 Q2). The doc says so rather than asserting an interpretation.
Water temperature reason
Without flow the value was already suppressed. It now also carries
unavailable_reason: no_flow, so "unavailable" is not mistaken for the devicebeing offline. This matches the app, which shows "No Flow" rather than a number.
Verification
./utils/quick_lint.sh— clean./utils/run_tests.sh— 453 passed (was 445)New tests: fault names for three fixtures, per-PID table divergence
(
1 << 4→ Compressor Fault on 9985 vs Defrost Sensor 1 Open on 9984), thesensor state and attributes, and the HP/LP flag being
Trueon HP10 /NoneonHP.
Behaviour changes:
sensor.*_fault_codebecomes*_active_faultswith adifferent state format; water temperature becomes unavailable without flow; a
new diagnostic binary sensor appears on HP10 units.
Related: #30