Skip to content

v2.0.2

Choose a tag to compare

@GreenGrassBlueOcean GreenGrassBlueOcean released this 02 Dec 19:47
558b674

πŸ”§ Release: v2.0.2 β€” Post-v2.0.1 Patch Release

Patch release v2.0.2 of MyHOME for Home Assistant (Home Assistant 2026.8+ / Python 3.14; OWNd 2.0.3).

πŸ”’ Security & Safety

  • Bus Monitor Card XSS Hardening & Admin-Only myhome.send_message (hacs/default#15020, #1027): Escaped all dynamic HTML sinks in the custom Bus Monitor card (myhome-bus-card.js) and restricted interactive myhome.send_message service calls to Home Assistant administrator accounts (matching myhome/bus_monitor/send; automations and system calls without a user context remain allowed). Upgrade note: dashboard cards, scripts, or Template Alarm Panels invoked interactively by non-admin Home Assistant users can no longer call myhome.send_message directly; use native entity actions or a state/event-triggered automation instead.
  • Gateway-Aware Firmware Oracle Crash Guards Across Bus Monitor UI & Backend (#1036): Unified client-side (myhome-bus-card.js) and backend (frame_safety.py, where_grammar.py, services.py, websocket.py) safety enforcement across all 13 blanket crash rules and model-specific Firmware Oracle verdicts (including MH202 WHO = 14 dimension writes, WHO = 22 Dim #6 >= 33 warnings, and L4686SDK clock-reset guards), with amber pre-send confirmation prompts in the Bus Monitor card.
  • Pre-Release Security, Privacy, Lifecycle & Platform Audit Hardening (#1065): Restricted all 7 Bus Monitor / calibration-trace WebSocket endpoints (websocket.py) and interactive myhome.sync_time / myhome.sweep_bus calls (services.py) to Home Assistant administrators (automations/system calls remain allowed), anonymized expose entity_ids and redacted subentry_id ULIDs in diagnostics (expose.py, diagnostics.py), wired deterministic privacy scrubbing into Bus Monitor card Copy Trace / Export Trace (myhome-bus-card.js) and hardened trace_recorder.py scrubbing for leading-zero WHO/dimension tokens, leading-punctuation hostnames, and 8-octet ZigBee EUI-64 MACs, moved frontend card file checks off the event loop with headless-HA guards (__init__.py), reloaded config entries on expose subentry deletion without stale duplicate-key rejections (__init__.py, config_flow_expose.py), switched repair reloads to async_schedule_reload, scoped companion/empty-device pruning safely across config entries and composite devices (discovery.py, button.py), added missing shared-bus topology and cover-calibration repair translation keys across all four locales, and removed redundant hardcoded entity icons in favor of icons.json.

✨ New Features

  • Lossless Gzipped OpenWebNet Bus Trace Recorder (#1046): Added admin-only myhome.start_bus_recording, myhome.stop_bus_recording, and myhome.bus_recording_status actions writing atomic .jsonl.gz trace segments (O_CREAT | O_EXCL | O_NOFOLLOW) with deterministic privacy scrubbing (OPEN/HMAC auth frames, configured passwords/PINs, WHO = 5 #<code> alarm PINs, and WHO = 13 / WHO = 10xx network/MAC/DeviceID frames while preserving bare *#<WHO>## status queries), routine in-band EventSessionRunner reconnect transition logging, CommandWorkerPool cmd_done tracking, strict per-session max_bytes / 500 MiB directory quotas, and diagnostics integration.

πŸ› Bug Fixes

  • WHO = 14 Actuator Lock Preservation, Reconnect Resync, F455/F450 Gating & Scope End-Stop Self-Heal (#1032, #1051, #1052, #1056, #1059):

    • Preserved actuator_locked across startup/post-ACK WHO = 1 / WHO = 2 status and dimension polls (_recent_who1_polls / _recent_who2_polls, including *#1*0##, *#1*0#4#II##, and Dim 4 replies), gated WHO = 14 lock/unlock buttons on refusing F455/F450 gateways (pruning on Generic β†’ F455/F450 resolution), added WHO = 14 shared-bus secondary delegation and inbound *14*0/1*W## routing, and reloaded affected primaries across secondary lifecycle changes (#1032).
    • Automatically re-applied persisted *14*0*<WHERE>## actuator locks on gateway reconnect and mid-flight startup in-band OWNEventSession recoveries before discovery sweeps (_startup_reapply_in_progress), kept failed/cancelled/timed-out writes deferred in _deferred_startup_lock_keys for retry (delivered_ok), closed secondary catch-up, cancellation, write-timeout, and reconnect-supersede lock resync edges (#1059), added the reapply_actuator_locks Options Flow toggle, and self-healed covers on delayed scope end-stop frames (#1052, #1056, #1059).
  • Cover In-Flight Move Anchoring During Stop Probe, Failed-Stop Settle Recovery & Intentional Queued-Stop Log Fix (#1047, #1048, #1054): Anchored confirmed in-flight P2P/scope moves arriving while _pending_cmd == "stop" or outside ECHO_WINDOW (_confirmed_move_anchor), preserved _probing_p2p_direction across _begin_stop() so covers starting under a stale WHO = 14 lock still reconcile travel and slat tilt (#1054), re-armed wall settle if a timed cover's STOP write fails or is cancelled so it never stays stuck opening/closing, and eliminated false ERROR log entries when an intentional stop_cover / stop_cover_tilt cancels a queued move or tilt write (#1048).

  • Gateway Profiles, Firmware Backtrace Alignment, OWNd 2.0.3 & BTicino 3488 Support (#1039, #1031):

    • Upgraded the pinned protocol library to OWNd 2.0.3 and aligned MyHOME gateway capability tables, WHO TX/RX routing (peer_handles_who_tx, remote_blocked_who), L4686SDK clock-read guard (*#13*0*[01]##), and gateway_tier() / _is_isolated_numeric_span() delimiter guards with full firmware backtraces (742-input / 10,517-row 13-gateway oracle snapshot).
    • Added full BTicino 3488 / Legrand 067259 gateway support (model selector, non-overriding WHO = 1013 OBJECT_MODEL = 128 observation, Tier 2 / WHO = 8-only topology classification, 2-worker session limit with 1-worker default, *#4*0#0*20## startup actuator sweep, broadcast *#4*0*60## humidity polling, and F452/F452V vs F453/F453AV/MH200N startup alignment).
    • Hardened WHO = 4 thermoregulation handling against bt_termo firmware disassembly findings: extended WHO = 4 mode WHATs (104/204/304, 107/108/207/208, 402/407/408/410, 502/507/508/510), validate_thermo_trigger_command crash guards (CRASH-01/03/04), WHAT 40 (*4*40*Z##, local_offset_release) coalesced DIM 13 + DIM 12 refresh, fan-coil DIM 11 re-polling on season change after single-empty DIM 19, preserving HVACMode.AUTO on standalone DIM 7 (*#4*Z*7*3*0##) across trailing season frames, normalizing zero-padded zone addresses (zone: "02" β†’ 2), guarding thermo-switch discovery for 4001/4002 pump_call frames, and validating WHO = 4 interface tokens.
  • Zone-0 Circulation Pump Actuators (WHO = 4, 0#1..0#9) (#1038, #1040): Added full support for zone-0 circulation pump actuators (0#1..0#9, including #4#IF routed forms) as read-only binary_sensor (RUNNING) or controllable switch (MyHOMEThermoSwitch) via subentries and YAML, tracking 4001#Z/4002#Z requesting zones, gating direct *#4*0#N*20## reads on refusing gateways (F450/F454/F459 Gen C *#4*0#0*20## fallback; H4684/MH200 Gen A refusal), preserving pump devices across platform reconfigures, and archiving anonymized MyHomeServer1 #1038 traces.

  • Clean DEBUG Logging for Echoed WHO = 4 OWNHeatingCommand Frames (#1063): Stopped GatewayEventDispatcher.process_message from logging valid WHO = 4 OWNHeatingCommand frames echoed on the monitor stream (Gen D actuator #20 writes like *#4*3#2*#20*1##, #5/#7/#30–#32 writes, non-polled active/standby #11/#14 writes, and echoed requests) as Unsupported message type, using OWNd's human_readable_log or structured Heating dimension write / Heating command DEBUG logs while preserving entity dispatch and #11/#14 zone re-reads.

  • Climate Off-Season Fan Mode Hiding & Write Guard (#1045): On mixed zones where Dimension 19 proves the active season's side has no fan coil (e.g. heating valve + cooling fan coil during winter), dynamically hide ClimateEntityFeature.FAN_MODE / fan_mode (preventing dead UI controls, winter scene.create β†’ scene.turn_on failures, and area-wide climate.set_fan_mode aborts), refuse direct off-season *#4*Z*#11*S## writes without optimistic drift, and keep season state synced across Dimension 7 (_apply_zone_state) and mode-with-season frames (_remember_season).

  • Climate myhome.yaml cool / standalone Autodiscovery Parity & Dynamic TARGET_TEMPERATURE (#1053): Stopped validate.py (climate_schema) from injecting cool: False and standalone: False when omitted in myhome.yaml so YAML central units keep heating + cooling by default (fixing state=unknown / post-restart state=off on cooling central units like *4*2101*#0##), YAML zones learn cooling and standalone/plant topology from the bus identically to autodiscovery across both climate.py and sensor.py (MyHOMEActuatorOutputSensor), and heat: false zones that later learn cooling dynamically gain ClimateEntityFeature.TARGET_TEMPERATURE alongside HVACMode.COOL (explicit cool: true/false and standalone: true/false continue to pin behavior). Upgrade note: installations that kept myhome.yaml on disk auto-heal on reload as entry.options["migrated_yaml_platforms"] is refreshed; users who already deleted myhome.yaml on v2.0.0 / v2.0.1 after the legacy_yaml_imported notice still have the earlier injected false defaults in migrated_yaml_platforms and can clear them by temporarily restoring myhome.yaml without cool/standalone for one reload (then removing it again) or by removing and re-adding the gateway entry.

  • Climate Silent-Zone Dim 12 Poll & Inferred-Mode Provenance Hardening (#1061, #1064): Tracked when a zone's mode is only inferred from a #0 central-unit broadcast or an F455 synthetic *4*311*#Z## frame (_mode_inferred) so silent-zone polling (*#4*Z*12## / *#4*Z*14##), post-discovery *#4*Z## polling (_core_zone_state_reported), standalone detection/restore (async_restore_last_state, _is_off, _mark_standalone_detected, MESSAGE_TYPE_SEASON), and Dimension 7 no-op frames cannot mask a standalone thermostat's real heating/cooling/off/protection state.

  • WHO = 4 Temperature Probe & WHO = 1 Illuminance/Motion Sensor Router Key Isolation (#1068): Isolated WHO = 4 temperature probes (thermo_temp:), WHO = 1 illuminance sensors (light_lux:), and WHO = 1 motion/PIR sensors (light_motion:) onto dedicated FrameRouter keys, eliminating double-delivery onto MyHOMEClimate (preserving #383 protection-nominal setpoint restoration), MyHOMEMotionSensor, and MyHOMELight/MyHOMESwitch on shared addresses, closing #967 phantom-probe bypasses on empty *#4*<probe>*0## / *#4*<probe>*15## requests, and guarding against foreign-where_param, invalid-interface, empty-reading, central #0/#Z Dim 0, and write-frame leaks.

  • Central Unit Cross-Season Settle Wait & Warm-Standby Failover (#1069): Waited briefly (_CENTRAL_SEASON_REPORT_TIMEOUT = 2.5 s) for the central unit's fresh target-season operating-mode report (*4*102 / *4*202) before transmitting *4*3100*...## on cross-season switches (#0 3550 and #0#N 4695) so fast bare-metal gateways (F455, including WHO = 4 warm-standby failover) no longer race and drop program restore, with freshness-gated post-settle checks and clean async_on_remove abort / #1062 rename re-arm.

  • 4-Zone Central Unit (4695 / #0#N / #Z#C) Schedules, Grammar, Discovery & Restore Hardening (#994, #1067): Handled QUIRK-10 unnumbered #0#N schedule WHATs (1100/2100/1200/2200), paired DIM 12 β†’ DIM 13 / WHAT 40 wake bursts with a 5.0 s _FOUR_ZONE_BURST_WINDOW and ordering guard (_arm_four_zone_unpaired_dim12), canonicalized zero-padded #0#01..#0#09 routing and routed #0#4#4#II _health_address, hardened #Z#C controlled-zone grammar and conditioning reports, guarded 4695-only #Z NACK retries, prevented ZoneDiscovery.correct_saved_central_address no-op self-deletion, matched MACs case-insensitively in _rehome_master_output_sensors, guarded holiday and opposite-season DIM 12 frames, cleared stale _local_target_temperature across season switches, and made active-schedule restore offset-safe.

  • Timed Cover set_cover_position Auto-Stop & Echo Handling on Dimension = 10-Emitting Actuators (#1043, #1044): Fixed stationary Dimension = 10 stop echoes (*#2*<WHERE>*10*10*<LEVEL>*…##) relayed by pre-move-STOP gateways (F461, F454, F459, F460, MyHomeServer1, 3488, H4890, MH200N) bypassing _handle_echo() on covers kept on a timed strategy (not _advanced, e.g. manual travel_time calibration or strategy: timed), which previously cancelled _auto_stop() before motor start, treated Home Assistant's own move as an external full run, or overwrote the timed stop estimate with an uncalibrated actuator level. Also consumes paired *2*0*<WHERE>## ↔ Dimension = 10 stop-echo bursts in either order, protects timed Venetian slat pulses (slat_tilt: true without advanced: true) against pre-move and pulse-stop Dimension = 10 echoes, invalidates _run_generation on external/in-flight Dimension = 10 stops, preserves assumed_state (position = None) on strategy: simple, and learns 100 % / 0 % endpoints when an unknown timed cover is already at its physical limit without falsely flagging stop_before_move.

  • Venetian Tilt Restore, Ignored Address Normalization, Motion Dedup & Orphan Pruning (#1033): Persisted and restored Dimension 10 Venetian blind tilt_level across Home Assistant restarts, normalized IgnoredAddresses handling (WHO = 4, leading zeros, #/hyphen keys, WHO = 22 #4# speakers, button.py startup enforcement), unified Area-00 WHO = 1 motion detector addresses (0004 ↔ 04) so outbound PIR queries (*#1*04*5## / *#1*04*7##) succeed on bt_luci/F450 gateways while preserving registry unique IDs, and pruned orphaned companion/button entities on manual deletion (including unified #0#N 4-zone central units and MyHOMEImpulseCover).

  • Guided Cover Calibration Repair Flow, Ownership, Timeout & Reload Safety (#1035, #1060, #1066): Added a guided Start/Stop cover calibration repair flow, improved calibration button UX, detected legacy cutoff behavior, synced live entity renames, updated cover strings to generic wording across all locales (#1035), enforced strict live WHO = 2 cover matching and manual-timing run ownership checks before sending STOP (#1060), ensured pressing Stop or dismissing the dialog still stops a moving cover after a mid-run config-entry reload, and transmitted a safety *2*0*<WHERE>## STOP + clean motion settle when CALIBRATION_RUN_TIMEOUT (180 s) expires on non-stop-reporting actuators (_last_stop_generation guard, #1066).

  • Live entity_id Rename Lifecycle Re-Attachment (#1062): Re-attached FrameRouter subscriptions, gateway availability callbacks, WHO = 14 lock manager bindings, CoverFamily / scope & impulse cover timers, MyHOMELightGroup member tracking (including member removal, disabled-member handling, and HA 2026.12+ restored unavailable placeholders), MyHOMELock auto-relock timers, media player pools, and watch_zone_actuators reconnect watchers across UI entity_id renames (including round-trip A β†’ B β†’ A renames) with zero outbound bus frames and no state clobbering.

  • Config & Options Flow Form Preservation on Rejected Submits (#1037, #1041): Preserved the user's chosen gateway model across rejected Options Flow submits (#1037) and preserved audio, topology, and port fields across rejected Config Flow submits (#1041).

  • Diagnostics, Bus Monitor, Media Player & Cover Poll Fixes (#1026): Redacted copied_from in diagnostics, counted both UI and YAML platforms accurately, filtered WHO = 16 zones and #4#II bus interfaces properly, preserved BusFrame WHERE values, and skipped redundant cover status polls.

  • Complete Localization Parity (en, fr, it, nl) & Translation CI Gate (#1028): Brought nl, fr, and it translations to 100% key parity with strings.json and enforced translation completeness in CI.

πŸ“– Documentation

  • One-Click My Home Assistant Marketplace Repository Badge (#1024, #1029): Added and polished the official My Home Assistant marketplace_repository one-click badge (owner=OpenWebNet-HA, repository=MyHOME, category=integration) in README.md and docs/getting-started/installation.md, guarded by an anti-drift check in tests/test_ha_standards.py.
  • 13-Gateway Firmware Oracle Metadata & 3488 Parity Sync (#1034): Synchronized tests/golden/README.md, tests/golden/SOURCE.yaml, docs/protocol_conformance_matrix.md, ROADMAP.md, docs/roadmap.md, services.py/services.md, gateway.py comments, and 3488 conformance/reversal tests with chore/release-2.0.2's 742-input / 10,517-row 13-gateway oracle snapshot (verdicts_sha256: af4654d6…, 0 timeouts, 129 crashes, 2,080 nack/out rows).

βš™οΈ CI & Tooling

  • Owner Governance, Release Ancestry Guard & CI Verification (#1042): Added .github/CODEOWNERS with @OpenWebNet-HA/owners / @gdluck, enforced compulsory non-author Owner review and release ancestry guards via scripts/verify_repo_governance.py.
  • OWNd Pinned Smoke Lockstep Scoping (#1050): Scoped OWNd profile/oracle lockstep verification in scripts/run_ownd_smoke.py and tests/test_firmware_oracle_conformance.py to the pinned OWNd smoke target so upstream OWNd dev/latest additions do not break pinned release CI.
  • Live Community Verification Traces & Golden Corpus Expansion (#1021, #1022, #1023):
    • F454 (FW 2.0.50) Bus Sweep & Climate/Lighting Capture (#1021): Archived a 240-frame (186 rx, 54 tx) physical F454 FW 2.0.50 sweep covering WHO = 1, 2, 4, 13, 1013 (tests/fixtures/traces/f454_2_0_50_sweep_2026-11-26/) with provenance, privacy, and end-to-end Home Assistant replay tests.
    • F459 (FW 2.1.5) Full Debug Log & 14 Golden Corpus Fixtures (#1022): Archived a sanitized 2,943-line F459 FW 2.1.5 full debug log (tests/fixtures/traces/f459_full_debug_log_2026-11-26/) expanding trace-matrix coverage for WHO = 25 & WHO = 1001, and staged 14 schema- and builder-verified community-plant-capture fixtures (467 β†’ 481 corpus records, 295 β†’ 309 golden shapes) in tests/golden/.
    • F454 4-Zone Central Unit (#0#1) v2.0.1 Verification Trace (#994, #1023): Added an 18-frame live F454 FW 2.0.51 + 4695 4-zone central unit verification trace (tests/fixtures/traces/issue_994/) and end-to-end replay test confirming central-unit setpoint propagation and direct subordinate zone writes on v2.0.1 / OWNd 2.0.2.

Docs: https://openwebnet-ha.github.io/MyHOME/

Upgrade Guide (from v0.9.4): https://openwebnet-ha.github.io/MyHOME/latest/migration/upgrade-from-094/

Discussions & Feedback: https://github.com/orgs/OpenWebNet-HA/discussions