thegroove / esphome-zeroconf Goto Github PK
View Code? Open in Web Editor NEWESPHome component to advertise Zeroconf services over mDNS
ESPHome component to advertise Zeroconf services over mDNS
Suggest maybe add template for passing settings parameters via DNS TXT record to Home Assistant's ZHA integration component.
@thegroove Follow up to the Zeroconf request in thegroove/esphome-zbbridge#1 and discussed with @tube0013 and yourself.
It would be great if this Zeroconf custom component for ESPHome could be used to pass along parameters to the ZHA integration.
Would especially be nice to pass along recommended device setting "config flow" needed for initial installation for ZHA integration.
As mention in thegroove/esphome-zbbridge#1 the information that the users need for ZHA config flow really needs provided at a minimum is; IP, tcp port serial gateway, radio type, baud rate, and type of data flow control to be used for the serial communication.
Example:
Second part would be to extend the ZHA integration to make use of those parameter values and set them as defaults in config flow.
FYI, Home Assistant's zeroconf maintainer/dev bdraco referred to this example for using TXT record to pass values to integrations:
By the way, have also seen related requests to get more information about the ESPHome device and the service that it is is providing.
That is, it would also be nice if also pass along additional information about the service that might not be used by ZHA config flow.
Such additional information could be displayed on the ESPHom,e device and include data on the hardware device, like example:
PS: There is also a general Home Assistant community forum thread about Zeroconf support by the ZHA integration here:
Request ESPHome to send out unique device ID on its Zeroconf broadcast like example project name + the MAC address of device.
Copy of old request esphome/feature-requests#575
Just wanted to drop a note here, I am looking at using this code and working with the ZHA devs to update discovery. no time table yet. But wanted to say thank you! Also letting you know the zeroconf code (and modified serial server) work with the new external components feature in esphome 1.18. For zeroconf I just had to rename the folder to zeroconf instead of esphome-zeroconf.
If you re-arrange your repo, the code can be pulled dynamically from the yaml.
I have not reading how its working but have seen tube0013 was added in HA and is triggering on some name parameters getting from the device / network.
I think it can being god putting in one "working name" for the serial ZBGW so HA can finding it and knowing how to using it.
Perhaps "ESPHomeZBGW-XXXX" then XXXX is the last part of the device MAC or some thing that is unique and also always being identified by HA and with the last part for adding more then one devices (or HA is doing that part in its side).
Perhaps also adding coordinator type EZSP/TI/Zigate and so on and baud rate and flow control to HA so it can using it hen adding ZHA.
If all is going well it can being possible triggering installation of ZHA with only clicking OK from the user and all is sett and done.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.