Repository navigation
HA bridge: per-alarm-type sensors + install fix; test cycle is 6 steps not 8 - #133
Merged
Merged
Conversation
…cle is 6 steps The HA bridge used one shared msg_state binary_sensor, so only the last-changed alarm type was reflected and expire_after hid any alarm still active after ~150s. Split into one retained binary_sensor per alarm type plus a separate Radio Link connectivity sensor fed by every frame, with no expiry on the alarm sensors. Also fixes the systemd install copying the wrapper without the bridge script next to it, which crash-looped the service. Also corrects docs/eeprom-map.md, docs/ghidra/codes.md and docs/u2-serial-protocol.md: Proc Ver 30's Test cycle runs 6 steps (S401-S406), not the manual's 8 -- firmware-confirmed, and it starts a full cleaning batch afterward instead of returning to the counter display. Patch and analysis from fraatti in #113.
Unrelated version skew on main (fixed, unmerged, on ci/fix-codeql-action-version-skew) broke CodeQL on this branch too.
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
bridge.difffrom Radio command interface, frame-format corrections, pairing, alarm counters and process logic (from the MC9S08 firmware) #113: the HA bridge's singlemsg_statebinary_sensor couldn't represent five independent alarm types andexpire_afterhid a still-active alarm after ~150s. Now one retainedproblembinary_sensor per alarm type, plus a separate "Radio Link" connectivity sensor fed by every frame (no expiry on alarm sensors). Also fixes the systemd install copying the wrapper script withoutrtl_433_mqtt_hass_uclean1.pynext to it, which crash-looped the service every 10s.docs/eeprom-map.md,docs/ghidra/codes.md,docs/u2-serial-protocol.md: Proc Ver 30's Test cycle (firmware-confirmed from the board-A flash dump) runs 6 steps (S401–S406: pump-in/sludge-removal/pump-out/chem-fill/dose/aeration), not the installation manual's 8, and ends by starting a full cleaning batch rather than returning to the counter display.Test plan
rtl433-uclean1.service's/usr/local/bin/rtl_433binary has nouponor_clean1decoder registered at all (built 2026-05-18, predates the decoder) — service was running blind. Not fixed here; flagged for the user to rebuild/replace that binary separately.andy778/rtl_433fork (add-uponor-clean1-upstream) locally; confirmed decoder is registered (-R helplists[387] Uponor Clean 1).bridge_alarm,bridge_link,clear_legacy_entities,alarm_mapping) against a stub MQTT client: per-type retained publish, link sensor has noexpire_after, legacy-faultentity cleared once per device.python3 -m py_compilepasses.