Automatic Discovery of IP devices (e.g. mDNS/Bonjour)
Posted: Monday 20 March 2017 1:58
Hi,
I'm still quite new to the Domoticz ecosystem, but I am looking to work on a plugin for devices for a particular service (in this case the synchronised audio distribution service Snapcast). Like many modern networked audio devices, these servers and clients make themselves known across a local TCPIP network using the mDNS protocol, also known as Bonjour zeroconfor Avahi.
Most of the device plugins I have seen so far either have hard-coded IP addresses in the script, or IP addresses manually entered in the Domoticz web interface by the user. However in an IoT (Internet of Things) Controller architecture (which Domoticz essentially IS), one might expect to see some kind of Service Discovery hooks that developers can make use of, to improve the user experience.
I checked the wiki and trawled a number of forum posts but could not turn anything up. Does anyone have any information or examples of Service Discovery protocols like mDNS being used in Domoticz code to identify the IP addresses of devices operating particular kinds of service?
Any pointers very much appreciated
Thanks
I'm still quite new to the Domoticz ecosystem, but I am looking to work on a plugin for devices for a particular service (in this case the synchronised audio distribution service Snapcast). Like many modern networked audio devices, these servers and clients make themselves known across a local TCPIP network using the mDNS protocol, also known as Bonjour zeroconfor Avahi.
Most of the device plugins I have seen so far either have hard-coded IP addresses in the script, or IP addresses manually entered in the Domoticz web interface by the user. However in an IoT (Internet of Things) Controller architecture (which Domoticz essentially IS), one might expect to see some kind of Service Discovery hooks that developers can make use of, to improve the user experience.
I checked the wiki and trawled a number of forum posts but could not turn anything up. Does anyone have any information or examples of Service Discovery protocols like mDNS being used in Domoticz code to identify the IP addresses of devices operating particular kinds of service?
Any pointers very much appreciated
Thanks