i am writing a component for Sony Bravia TVs and it works fine.
I wrote a netdisco script for discovery and would like to use that but… i can’t seem to make sense of the other components which feature a discovery script. They all seem to work in a different way. How is it supposed to be? Tantalizingly close to a working integration
I used something like this sample below to get my MyStrom switches. Nothing more than the sample the netdisco README is providing.
from netdisco.discovery import NetworkDiscovery
print("Press Ctrl+c to stop the scanning ...")
nd = NetworkDiscovery()
nd.scan()
for dev in nd.discover():
if dev == 'mystrom':
print('myStrom device found:', nd.get_info(dev))