-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[REQUEST] Zeroconf DNS TXT parameters in firmware to support Home Assistant ZHA network discovery #3
Comments
Please consider adding Zeroconf DNS TXT Reconds parameters in firmware for automatic ZHA network discovery but only enable it when running in "Zigbee Home Automation Mode". Home Assistant OS (formerly HASSIO) support automatic network scanning and “Service Discovery” via Zeroconf and when a whitelisted Zigbee serial gateway is discovered it can pass along that to a domain like the ZHA integration component in Home Assistant. For more context about this Zigbee gateway “Service Discovery” via Zeroconf for the ZHA integration in Home Assistant, pease see: and https://developers.home-assistant.io/docs/creating_integration_manifest/#zeroconf FYI, there is already a working proof-of-concept this is now supported by Tube's Zigbee gateways (based on ESPHome firmware): https://www.home-assistant.io/integrations/zha#discovery-via-usb-or-zeroconf https://github.com/tube0013/tube_gateways Once support for Zeroconf has been added to the firmware you also need the firmware to provide DNS TXT records for passing along setting parameters to integration config flows. You first need to add Zeroconf service and give it name and as well as adding information about protocol (tcp) and port (????), etc. Then DNS TXT records is used to pass along recommended settings parameters config flow to Home Assistant's ZHA integration:
As can see, you will need one DNS TXT Record for each attribute and value that is to be passed along to HA's ZHA integration. Zeroconf DNS TXT records could also be used to pass along info about hostname, versions, location, MAC address, and more, etc.. http://www.zeroconf.org/Rendezvous/txtrecords.html https://en.wikipedia.org/wiki/Zero-configuration_networking#DNS-based_service_discovery https://en.wikipedia.org/wiki/TXT_record More information about idea of using DNS TXT records for passing along setting parameters in https://github.com/thegroove/esphome-zbbridge#1 and https://github.com/thegroove/esphome-zha-ezsp-zeroconf In the end it is probably best to see actual example config for ESPHome as in Tube's Zigbee Gateway as that is the reference:
Again, support for Tube's Zigbee Gateway was initially added to Home Aassistant core for ZHA support in home-assistant/core#48420 As I believe to then whitelist Zeroconf for more gateways and/or radio types in HA's zeroconf as well as for ZHA need to do PR for: https://github.com/home-assistant/core/blob/dev/homeassistant/generated/zeroconf.py
and https://github.com/home-assistant/core/blob/dev/homeassistant/components/zha/manifest.json
and https://github.com/home-assistant/core/blob/dev/homeassistant/components/zha/config_flow.py
|
Please also see the discussion here https://community.home-assistant.io/t/zha-automatic-discovery-of-zigbee-coordinator-bridges-gateways-ethernet-wifi-network-devices-that-support-zeroconf-or-ssdp/293300
Summary for interested ZiGate developers below:
@fairecasoimeme Please consider helping zigpy developers to brainstorm mDNS concepts for zigpy probe method + initialization routine that can be used by the ZHA integration component in Home Assistant (via zigpy).
FYI, the zigpy-zigate Zigbee radio library for the https://github.com/zigpy/zigpy/ project enables native support for ZiGate Zigbee radio hardware in the ZHA integration component that is built-into Home Assistant
Today configuration of connection to the networked ZiGate Pack WiFi adapter has to be done manually in ZHA integration component for Home Assistant and that process is not as a user-friendly experience as it could be, especially not now that ZiGate WiFi firmware 2.0 has mDNS support.
mDNS zeroconf support in ZiGate WiFi firmware 2.x should, in theory, allow developers to add automatic network discovery and configuration of any ZiGate WiFi adapters that have on their local network.
Please try to contribute to the discussion https://github.com/zigpy/zigpy/issues/405 and also consider sponsor willing zigpy and ZHA developers with ZiGate Pack WiFi and ZiGate TTL USB adapters.
PS: Again please note that this is just a placeholder, please post all replies to -> https://github.com/zigpy/zigpy/issues/405
The text was updated successfully, but these errors were encountered: