Skip to content

Controller: valid $state only, no phantom $alert nodes, removal, /set QoS - #119

Merged
dcj merged 2 commits into
mainfrom
gh-93-controller-robustness
Nov 11, 2026
Merged

dcj merged 2 commits into
mainfrom
gh-93-controller-robustness

Conversation

@dcj

@dcj dcj commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

Part of #93 (items for $state values, non-UTF-8, $alert/$log, zero-length removal, non-retained /set QoS). The default discovery domain, missing-parent fallback, $description validation and HA availability items stay open.

  • Only the five $state values create or update a device; non-UTF-8 $state, value and $target payloads are logged and dropped.
  • $alert/<id> and $log/<level> are no longer stored as properties of node $alert/$log.
  • A zero-length value or $target removes the stored entry; the property-changed callback gets None.
  • set_property() uses QoS 0 for a property whose $description says retained: false (convention.md:695); an explicit qos= wins.

🤖 Generated with Claude Code

https://claude.ai/code/session_01VUQ6apRySRNW8y3ppJMdJC

dcj and others added 2 commits November 11, 2026 15:27
… QoS (#93)

Only the five $state values create or update a device; non-UTF-8
$state, value and $target payloads are dropped instead of raising.
$alert and $log topics are not stored as properties. A zero-length
value or $target removes the stored entry (callback gets None). /set
goes at QoS 0 to a property whose $description says retained: false.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VUQ6apRySRNW8y3ppJMdJC
@dcj
dcj merged commit 216b784 into main Nov 11, 2026
5 checks passed
@dcj
dcj deleted the gh-93-controller-robustness branch November 11, 2026 23:47
@dcj dcj mentioned this pull request Nov 11, 2026
3 of 10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant