issackelly / wemo

wemo Proof of Concept. Should be used as a starting point for your own UPnP WeMo hacking
http://www.issackelly.com/blog/2012/08/04/wemo-api-hacking/
Other
162 stars 36 forks source link

Failed to get argument name for OpenInstaAP and CloseInstaAP #9

Open lucasfeijo opened 10 years ago

lucasfeijo commented 10 years ago

I cd'd into the folder, opened up python and ran

from wemo import on, off, get

and it responded

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

What's happening?

issackelly commented 10 years ago

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:

https://github.com/iancmcc/ouimeaux

lucasfeijo commented 10 years ago

Thanks