banksy-git / lidl-gateway-freedom

Freeing the Silvercrest (Lidl/Tuya) Smart Home Gateway from the cloud.
https://paulbanks.org/projects/lidl-zigbee/
GNU General Public License v3.0
211 stars 66 forks source link

Add mDNS server to advertise the device to ZHA #39

Open sarg opened 10 months ago

sarg commented 10 months ago

Implements #9. I've compiled it if you want to try: mdns.gz

By default it advertises tuya-local hostname and the service name is _zigbee-ezsp._tcp. These could be changed as /tuya/mdns --service _my-service._tcp._local --hostname my-hostname Upload to /tuya/mdns and add to the startup script:

echo "/tuya/mdns &" >> /tuya/tuya_start.sh