Open Jan200101 opened 2 years ago
just this one: https://docs.pycom.io/firmwareapi/pycom/network/mdns/ ?
That seems to only be relevant to MicroPython, for mDNS discovery https://pypi.python.org/pypi/zeroconf seems to be the widely used implementation.
That seems to only be relevant to MicroPython, for mDNS discovery https://pypi.python.org/pypi/zeroconf seems to be the widely used implementation.
lets go for it. would you like to implement it or should i do a push with a draft version?
I think it might be useful to do this as part of #11
Honestly I think that ShellyPy is nice as it is. Mixing in zeroconf adds unnecessary complexity.
For initial setup you can use any zeroconf/Avahi browser.
Later on the application knows that e.g. the heater can be controlled by the Shelly "ShellyPro1-123456789012.local" so that you easily can use
device = ShellyPy.Shelly("ShellyPro1-123456789012.local")
ShellyPy does what it is supposed to solve. I'm happy you have made it. Adding zeroconf to it doesn`t look like a good idea to me.
The mDNS/zeroconf/Avahi stuff would be optional, something you can opt into when installing ShellyPy.
Personally I would find it quite useful to be able to find all Shelly devices that advertise themselves on the current network.
Shelly devices advertise themselves over mDNS.
providing, at least, some kind of helper for finding shelly devices on the network might be useful.