Repository navigation
OWNd 2.0.3
WHO 4 bt_termo P0–P2 protocol support, backtrace-verified gateway profiles across all 19 canonical gateways, session/transport race hardening, and 100.0% statement + branch coverage since 2.0.2 (#188, #189, #190, #192, #193, #194, #195, #196). No breaking API changes.
pip install OWNd==2.0.3Added
- WHO 4 (
OWNHeatingEvent,OWNHeatingCommand) (#190): Decode circulation-pump demand calls (4001/4002,MESSAGE_TYPE_PUMP_CALLwithpump_call_active,calling_zone,pump), local offset release (WHAT 40,MESSAGE_TYPE_LOCAL_OFFSET_RELEASEandOWNHeatingCommand.release_local_offset), undocumentedDIM 13codes7/8asLOCAL_CONTROL_UNKNOWN, andDIM 154-bit probe status mask (probe_status_raw,probe_status_mask). - Profiles (
F450Profile,F459Profile,F460Profile,H4684Profile,L4686SDKProfile) & Gateway Identity (#193): Added dedicated backtrace-verified profiles across all 19 canonical gateways (bringingF450,F459,F460, firmware-awareH4684WHO 22 >= 6.0.0, and serialL4686SDKalongside3488), new declarative capability fields & helpers (hmac_algorithm,forces_hmac,emits_cover_pre_move_stop,rx_only_who,remote_blocked_who,supports_who18_response_injection,default_baudrate,supports_who_tx(),supports_who_rx()), and expanded WHO 13 / WHO 1013 model tables aligned with firmware disassembly. - Profiles (
Bticino3488Profile) (#189): Dedicated hardware profile for the BTicino3488HOMETOUCH / Legrand067259gateway (HMAC-SHA256, native transitions, extended frames, up to 2 command sessions, Gen Dbt_termoWHO 4 capabilities, WHO 1013 object model128). - WHO 4 (
OWNHeatingEvent,who4_bt_termo_crash_reason) (#189): Decodebt_termocomfort/eco/timed-manual/extended WHAT modes (104/204/304,107/108/207/208,402/407/408/410,502/507/508/510,1100/2100/1200/2200and symmetric1..16program ranges),timed_manual_hoursfrom112/212/312#TTTT#HH,DIM 7manual/extended states (0,31,32), single-side emptyDIM 19valve status frames (QUIRK-03), Gen A sub-10 °C 2/3-digit temperatures (QUIRK-11), non-collidingunique_idfor external probes100..900, and pre-send crash guards (CRASH-01,CRASH-03,CRASH-04) across all send paths.
Changed
- Profiles (Gen B
F453,F453AV,MH200N) (#189): Setsupports_general_heating_status=False(QUIRK-15:*#4*0##polls non-existent zone 0 and stalls on physical plants). - Governance & CI (
#194): Added.github/CODEOWNERS(@OpenWebNet-HA/owners) andCONTRIBUTING.mddocumenting compulsory non-author owner review and four-eyes PyPI publishing, hardened.github/workflows/release.ymlwithorigin/masterancestry validation onrefs/tags/v*, SHA-pinned all GitHub Actions workflows, and added.github/workflows/workflow-lint.yml(zizmor+actionlint) and.github/dependabot.ymlfor GitHub Actions updates.
Fixed
- WHO 4 (
OWNHeatingCommand.get_temperature) (#190): Strip accidental 2-digit leading zeros ("01".."09", optionally behind#4#IIor surrounding whitespace) onDIM 0temperature reads sobt_termodoes not trigger its 8-probe slave scan (QUIRK-05), while keeping 3-digit"001".."099"all-probes queries unchanged. - Sessions & Transport (
OWNSession,OWNCommandSession,OWNEventSession,AsyncTcpTransport) (#188,#192,#195,#196):- Bind each negotiation attempt's
(reader, writer, close_is_routine)to task-local_NEGOTIATE_STREAMSContextVar, track in-flight unnegotiated writers, advance attempt sequence counters inclose(), abort closed/supersededconnect()attempts cleanly, keeptest_connection()strictly local, gateOWNCommandSession.send()on_stream_unnegotiated, guardOWNEventSessionkeepalive/teardown on stream/writer ownership, and guardAsyncTcpTransport.connect()against concurrentdisconnect()/connect(). - Tear down unnegotiated sockets when
await _negotiate()exits viaCancelledErroror any non-OSErrorBaseException. - Reference-count active handshakes (
_negotiating_count) to close the mid-negotiationsend()window, snapshot(host, port)andpasswordper attempt inside_ACTIVE_CONNECT, guard failure teardown acrossawait _close_streams(), and enforcePytestUnraisableExceptionWarningas an error. - Arm
SEND_AUTH_COOLDOWNsynchronously onnegotiation_errorbefore stream close, scope single-attempt connect caps via_CONNECT_MAX_ATTEMPTSContextVar, and guardconnect()/_reconnect()results withisinstance(..., Mapping).
- Bind each negotiation attempt's
- Coverage & CI (
#188): Closed all remaining partial branches (100.0% statement and 100.0% branch coverage across all 28 modules), upgradedscripts/verify_coverage.pyand CI to enforce 100.0% branch coverage, and addedcodecov.ymllocking project/patch coverage at100%.
Full changelog: v2.0.2...v2.0.3