Skip to content

utility-meter: advertise the Homie keys on _ebus._tcp - #109

Merged
dcj merged 1 commit into
mainfrom
dcj/advertise-homie-domain
Oct 9, 2026
Merged

dcj merged 1 commit into
mainfrom
dcj/advertise-homie-domain

Conversation

@dcj

@dcj dcj commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

utility-meter now adds homie_domain, homie_version and homie_roles to its _ebus._tcp advertisement, from the domain its Homie device publishes under, matching what the ESP32 devices and cpp-sdk advertise. The mdns extra requires ebus-service-discovery[zeroconf]>=0.5.1 (electrification-bus/python-service-discovery#8). examples/README.md describes the keys and the 0.5.x interface behavior.

Live: the meter against a local mosquitto advertised txtvers=1 ebus_version=0.9 roles=device device_id=example-meter-001 ... homie_domain=ebus homie_version=5 homie_roles=device (dns-sd -L). 873 tests pass with ebus-mqtt-client 0.8.0 and ebus-service-discovery 0.5.1; ruff check and format pass, including the extension-less example.

🤖 Generated with Claude Code

https://claude.ai/code/session_01T32pvgqCzp1qCz7K5gS9Wm

ebus-service-discovery 0.5.1 adds homie_domain, homie_version and
homie_roles to the _ebus._tcp TXT when Identity.homie_domain is set
(electrification-bus/python-service-discovery#8). The meter passes the
domain its Homie device publishes under. The mdns extra requires 0.5.1.
The default instance name is the first device id since 0.5.0, so the
explicit instance_name is dropped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T32pvgqCzp1qCz7K5gS9Wm
@dcj
dcj merged commit 0168eb5 into main Oct 9, 2026
5 checks passed
@dcj
dcj deleted the dcj/advertise-homie-domain branch October 9, 2026 16:37
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