Repository navigation
test(trace): add authentic WHO 18 Dimension 1200 energy stream trace and replay test (#466) - #664
Merged
Conversation
…and replay test (OpenWebNet-HA#466) Adds an authentic customer on-wire bus trace and deterministic replay test suite for the complete WHO 18 Dimension 1200 automatic instant power stream lifecycle (*OpenWebNet-HA#18*WHERE*#1200#Type*Time## start command, meter interval confirmation, periodic active power telemetry, and zero-duration interval notification emitted upon 2-minute stream lease expiry). Captured and contributed by @xtimmy86x on PR OpenWebNet-HA#661 (#issuecomment-6067730589) from a physical BTicino F454 gateway (firmware 2.0) and BTicino F520 energy meters on a live plant. Companion to: - OWNd PR OpenWebNet-HA/OWNd#92 - Downstream companion PR OpenWebNet-HA#661 Co-authored-by: xtimmy86x <76836856+xtimmy86x@users.noreply.github.com>
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
GreenGrassBlueOcean
merged commit Oct 8, 2026
3f9574d
into
OpenWebNet-HA:v2-phase1-architecture
16 checks passed
GreenGrassBlueOcean
deleted the
test/who18-dimension1200-customer-trace
branch
October 8, 2026 20:40
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.
test(trace): add authentic WHO 18 Dimension 1200 energy stream trace and replay test (#466)
Summary
Adds an authentic customer on-wire bus trace and deterministic replay test suite for the complete WHO 18 Dimension 1200 automatic instant power stream lifecycle (
*#18*WHERE*#1200#Type*Time##start command, meter interval confirmation, periodic active power telemetry, and zero-duration interval notification emitted upon 2-minute stream lease expiry).This authentic on-wire capture was contributed by @xtimmy86x in PR #661 (comment 6067730589, 6067865874) from a live plant, successfully resolving the missing customer trace blocker on PR #661 and companion OWNd PR OpenWebNet-HA/OWNd#92.
Companion to:
fix(energy): parse the WHO 18 dimension 1200 automatic-update reply)fix(energy): align active power queries and dimension 1200 stream lifecycle)Detailed Provenance & Sources
1. Authentic On-Wire Customer Bus Telemetry (
@xtimmy86x)tests/fixtures/traces/issue_466/myhome_trace_F454_who18_2026-10-08T19-30-16.json2.0, MAC prefix00:03:50)WHERE = 56WHERE = 51,53,54,55,57,58,59,510,5112026.10.0.dev0, MyHOME2.0.0b14, OWNd2.0.0b9truncated: false. No frames synthesized or modified.2. Sequence of Actions Recorded & Subsystems Verified
19:27:55.541903 TX *#18*56*#1200#1*2##(Start 2-minute active power stream on meter 56)19:27:55.776619 RX *#18*56*1200#1*2##(Meter 56 confirms 2-minute stream lease, arrived ~235 ms after start command)*#18*56*113*9##(9 W, arriving at ~30s cadence)19:30:01.726662 RX *#18*56*1200#1*0##(Meter 56 autonomously reports interval 0 upon expiry, arrived ~126.18 s after start command)19:30:01.870024 RX *#18*56*1200#1*255##(arrived ~143 ms after expiry). Background meter 54 also broadcasts*#18*54*1200#1*255##at19:28:59.553859.*#18*51*51*35098267##,*#18*51*54*13165##, etc.)Changes
tests/fixtures/traces/issue_466/myhome_trace_F454_who18_2026-10-08T19-30-16.json:tests/fixtures/traces/issue_466/README.md:tests/golden/frames/who18_energy.yaml&tests/golden/corpus.json:#1200#1*2), confirmation (1200#1*2), stop (#1200#1*0), stop confirmation (1200#1*0), and renewal (1200#1*255).tests/test_golden_conformance.py:OWNEnergyCommandin builder parity map for golden testing.tests/test_energy_dimension1200_trace.py:Verification
pytest tests/test_energy_dimension1200_trace.py: 3/3 passed in 1.14s.pytest tests/test_golden_conformance.py -k meter56: 10/10 passed in 1.32s.ruff checkandverify_ha_standards.py: All checks passed with 0 violations.Co-authored-by: xtimmy86x 76836856+xtimmy86x@users.noreply.github.com