Baldhor / Homey-ESPhome-Enhanced

This is an Homey app which adds support for ESPHome devices. ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems. More information on their homepage: https://www.esphome.io/
GNU General Public License v3.0
4 stars 3 forks source link

Implement mDNS service discovery #37

Closed RoadXY closed 9 months ago

RoadXY commented 9 months ago

Describe the solution you'd like In theory it should be possible to discover ESPHome devices using mDNS https://apps.developer.homey.app/wireless/wi-fi/discovery#mdns-sd and https://esphome.io/components/mdns.html

When adding a new device Homey could try and discover a ESPHome device. If that fails or times out a manual ip/mDNS/DNS name should used to connect to the device. mDNS, for example, could fail when using VLAN's in the internal network.

Baldhor commented 9 months ago

I was thinking about it, the new wizard with improved UI should be able to provide a "pick me from a discovery list" view. Hardest work will be to implement the double connection mode, this will impact a lot of code.

And still need to provide a fallback for the user in case his network change ...

RoadXY commented 9 months ago

Please see here: https://github.com/Baldhor/Homey-ESPhome-Enhanced/issues/38

RoadXY commented 9 months ago

I was thinking about it, the new wizard with improved UI should be able to provide a "pick me from a discovery list" view. Hardest work will be to implement the double connection mode, this will impact a lot of code.

And still need to provide a fallback for the user in case his network change ...

When his network changes, mDNS should be able to connect to the device if mDNS was previously used to connect to the device. If the network changes and IP was used, users are able to go to the settings of that specific device and change the IP address there.

Baldhor commented 9 months ago

Let's close this one and use only #38 for now