Repository navigation
utility-meter: advertise the Homie keys on _ebus._tcp - #109
Merged
Merged
Conversation
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
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.
utility-meternow addshomie_domain,homie_versionandhomie_rolesto its_ebus._tcpadvertisement, from the domain its Homie device publishes under, matching what the ESP32 devices and cpp-sdk advertise. Themdnsextra requiresebus-service-discovery[zeroconf]>=0.5.1(electrification-bus/python-service-discovery#8).examples/README.mddescribes 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