Hi poeple.
Getting back to this. I’m currently working on version 2.0 of my python module.
Please check this out. For anyone having a revogi based smartplug or powerstrip, I think at least discovery is working for version 1.x, 2.x and 3.x.
please give it a try. Go to the maxsmart repository release-2.0.0-beta2 branch
The readme constains details about how to install the module locally for testing.
then go to example_scripts and give a try to test_discovery_async.py
There is also a ready me about running the scripts here
The readme has the instructions if you are using linux. If you are using windows, it should not be much different.
Please, post the result of discovery. If it works fine, you should get a raw result first, and a bunch of log entries with name, IP and SN.
You may adjust the discovery delay (default is 3 seconds, but if you have more then 5 devices, you might need more) by typing before executing the script:
export UDP_TIMEOUT=10 # for i.e. 10 seconds
Raw result: [{'sn': 'SWP60XXXXXXXXX523', 'name': 'Lit', 'pname': ['Boom', 'Resmed', 'Port 3', 'USB', 'Port 5', 'port6'], 'ip': '172.30.XX.XX', 'ver': '1.30'}, {'sn': 'SWP60XXXXXXXXX697', 'name': 'Salon', 'pname': ['Télévision', 'Amplificateur', 'Philips HUE Bridge', 'Logitech Transporter', 'HP OfficeJet Pro 8600', 'DECO X50 Master'], 'ip': '172.30.XX.XX', 'ver': '1.30'}, {'sn': 'SWP60XXXXXXXXX564', 'name': 'Véranda', 'pname': ['Radio', 'Lampe orange', 'Port 3', 'Port 4', 'Artémide', 'Wifi'], 'ip': '172.30.XX.XXX', 'ver': '1.30'}, {'sn': 'SWP60XXXXXXXXX359', 'name': 'Cuisine', 'pname': ['Frigo', 'Hotte', 'Port 3', 'Port 4', 'Port 5', 'Port 6'], 'ip': '172.30.XX.XX', 'ver': '1.30'}, {'sn': 'SWP60XXXXXXXXX463', 'name': 'Office', 'pname': ['NUC', 'Stargazer', 'Bureau', 'Lampe', 'Cochrane', 'Ecran'], 'ip': '172.30.XX.XX', 'ver': '1.30'}, {'sn': 'SWP10XXXXXXXXX936', 'name': 'SWITCH', 'pname': ['SWITCH'], 'ip': '172.30.XX.XX', 'ver': '2.11'}, {'sn': 'SWP60XXXXXXXXX468', 'name': 'Local Vélo', 'pname': ['Raspberry Pi', 'Congélateur Miele', 'PORT3', 'PORT4', 'PORT5', 'PORT6'], 'ip': '172.30.XX.XX', 'ver': '1.30'}]
INFO:root:Discovered MaxSmart Devices:
INFO:root:Device SN: SWP60XXXXXXXXX523, Name: Lit, IP: 172.30.XX.XX, Version: 1.30
INFO:root:Device SN: SWP60XXXXXXXXX697, Name: Salon, IP: 172.30.XX.XX, Version: 1.30
INFO:root:Device SN: SWP60XXXXXXXXX564, Name: Véranda, IP: 172.30.XX.XXX, Version: 1.30
INFO:root:Device SN: SWP60XXXXXXXXX359, Name: Cuisine, IP: 172.30.XX.XX, Version: 1.30
INFO:root:Device SN: SWP60XXXXXXXXX463, Name: Office, IP: 172.30.XX.XX, Version: 1.30
INFO:root:Device SN: SWP10XXXXXXXXX936, Name: SWITCH, IP: 172.30.XX.XX, Version: 2.11
INFO:root:Device SN: SWP60XXXXXXXXX468, Name: Local Vélo, IP: 172.30.XX.XX, Version: 1.30