Python Plugin Framework: UDP/IP Discovery Added

Python and python framework
Post Reply
User avatar
Dnpwwo
Posts: 588
Joined: Sunday 23 March 2014 10:00
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Python Plugin Framework: UDP/IP Discovery Added

Post by Dnpwwo » Saturday 12 August 2017 9:52

UDP/IP listening has been added to the framework to allow plugins find and configure remote hardware instances on the network during start up.

A sample showing how to capture and log Dynamic Device Discovery messages has been added to the examples on Github here: https://github.com/domoticz/domoticz/bl ... scovery.py.

Tested successfully on Linux. Works on Windows for messages generated on the machine where Domoticz is running, Windows 10 appears to filter broadcast UDP from network devices even if a firewall rule exists permitting (anyone who knows how to stop that please post here).

Useful IP Address and Port combinations that can be set via the Hardware page:
  • 239.255.250.250:9161-Dynamic Device Discovery (DDD) (default, shows Global Cache, Denon Amps and more)
  • 239.255.255.250:1900 -Simple Service Discovery Protocol (SSDP), (shows Windows, Kodi, Denon, Chromebooks, Gateways, ...)
listening is as easy as:

Code: Select all

self.BeaconConn = Domoticz.Connection(Name="Beacon", Transport="UDP/IP", Address=Parameters["Address"], Port=str(Parameters["Port"]))
self.BeaconConn.Listen()
messages are returned to the plugin via the 'onMessage' call back.

Available in next beta or now if building from source.
The reasonable man adapts himself to the world; the unreasonable one persists to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw

Boredcat
Posts: 15
Joined: Friday 17 March 2017 10:31
Target OS: Windows
Domoticz version: -
Location: Netherlands
Contact:

Re: Python Plugin Framework: UDP/IP Discovery Added

Post by Boredcat » Monday 18 September 2017 19:43

This could be this issue :

https://www.tenforums.com/tutorials/496 ... -10-a.html

Look at option 2. Sharing.
RFXCom(E) - Yeelight Lights - KaKu / Alexa HA Bridge
Windows 2012 / Windows 2012R2 / Xpenology

Post Reply

Who is online

Users browsing this forum: emme and 5 guests