Entering discovery mode for 'upnp:rootdevice', Ctl+C to stop...
Error updating command completer structure; some command completion features might not work...
****************************************************************
SSDP reply message from 10.0.1.7:49153
XML file is located at http://10.0.1.7:49153/setup.xml
Device is running Unspecified, UPnP/1.0, Unspecified
****************************************************************
Error updating command completer structure; some command completion features might not work...
****************************************************************
SSDP reply message from 10.0.1.7:49153
XML file is located at http://10.0.1.7:49153/setup.xml
Device is running Unspecified, UPnP/1.0, Unspecified
****************************************************************
Discover mode halted...
Failed to get argument name for OpenInstaAP
Failed to get argument name for CloseInstaAP
Failed to get argument name for OpenInstaAP
Failed to get argument name for CloseInstaAP
>>>
I tried, then, calling on() and the other functions but all of them returned many errors, such as
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "wemo.py", line 59, in on resp = _send('SetBinaryState', {'BinaryState': (1, 'Boolean')}) File "wemo.py", line 27, in _send host_info = conn.ENUM_HOSTS[SWITCHES[0]] IndexError: list index out of range
I have no idea. I haven't used this code in a long time, you should probably check out ouiemax, which really ran with this code, mine is mostly just a proof of concept:
I cd'd into the folder, opened up python and ran
from wemo import on, off, get
and it responded
I tried, then, calling
on()
and the other functions but all of them returned many errors, such asTraceback (most recent call last): File "<stdin>", line 1, in <module> File "wemo.py", line 59, in on resp = _send('SetBinaryState', {'BinaryState': (1, 'Boolean')}) File "wemo.py", line 27, in _send host_info = conn.ENUM_HOSTS[SWITCHES[0]] IndexError: list index out of range
What's happening?