Does anybody have this working with a Wemo wifi light switch? I can’t get the plugin to find my switch, even though the switch is connected and works fine through the iPhone app. I may have to remove it from the wall to get the MAC address to add it manually, but didn’t want to go through the effort if the app won’t work with it anyways.
i have tried this plugin in ui7
the first issue is that it would not create the child device on its own
so i did myself
with child device in place
it currently has the same lua startup loop that onky and dsc had
both have been resolved and were cause by declared variable not being exactly the same as the device type
this is not an issue in ui5 but in ui7 it seems to perform a consistency check
if there is a mismatch it deletes the child device
then the startup lua recreates it with a higher device number everytime, hence the loop
however, i have verified all your files and cant seem to find this
though i must admit i am having a hard time with following this one as you have many variables that reference each other
any help would be appreciated
Hi charettepa,
I doubt I can be much help. I sold all my WeMo equipment and don’t maintain this plugin any more. (Also I am not using UI7.) So unless you can get the exact error from the Vera log I’m not going to be very useful. (And maybe not even then, because device type checking is a new UI7 feature.) You’ve got the source code; if there’s a specific part of the code that you need me to explain, that I can do.
Arhh Futzle - sold all the WeMo stuff. If the plugin writer does same - what does that mean? !!
hi futzle
thanks for the reply
im probably going to get rid of mine as well
wemo is something i had before zwave
i only have 1 and can replace it with zwave appliance module for 40$
regardless, id like to work with you to try and help others
i now the real time log is here
http://192.168.0.12/cgi-bin/cmh/log.sh?Device=LuaUPnP
but it scrolls rather fast
is there a better place to look
also what am i looking for
is there a way to pull only wemo messages
[quote=“charettepa, post:105, topic:175071”]i now the real time log is here
…
but it scrolls rather fast
is there a better place to look[/quote]
There are other ways to get to the log (e.g. the Info Viewer plugin), but I doubt they’ll work on UI7 either. If you can get shell (SSH) access to Vera then there’s commands that you can run to filter the log for just the bits you care about.
Failing that, just “Save As…” from the web page and send me the huge file. I’m happy to dig through it. In truth I’m not sure what I’m looking for yet.
thanks for your offer
i decide it just wasn’t worth it
i gave my wemo’s away
(Only had 2)
and bought 2 replacement Z-Wave on/off modules
only 30$ each
50 09/08/14 20:18:44.928 luup_log:12: Searching complete <0x2b7a1680> 50 09/08/14 20:18:44.929 luup_log:12: UPnP location [url=http://192.168.2.243:8008/ssdp/device-desc.xml]http://192.168.2.243:8008/ssdp/device-desc.xml[/url] <0x2b7a1680> 50 09/08/14 20:18:44.929 luup_log:12: UPnP udn uuid:d00aefef-1e48-a3c6-76aa-a7d54fc25511 <0x2b7a1680> 50 09/08/14 20:18:44.930 luup_log:12: Unknown uuid uuid:d00aefef-1e48-a3c6-76aa-a7d54fc25511, identifying ... <0x2b7a1680> 50 09/08/14 20:18:44.947 luup_log:12: UPnP location [url=http://192.168.2.52:49153/setup.xml]http://192.168.2.52:49153/setup.xml[/url] <0x2b7a1680> 50 09/08/14 20:18:44.947 luup_log:12: UPnP udn uuid:Lightswitch-1_0-221344K1300C7B <0x2b7a1680> 50 09/08/14 20:18:44.947 luup_log:12: Unknown uuid uuid:Lightswitch-1_0-221344K1300C7B, identifying ... <0x2b7a1680> 50 09/08/14 20:18:44.987 luup_log:12: Device type is urn:Belkin:device:lightswitch:1 <0x2b7a1680> 50 09/08/14 20:18:44.987 luup_log:12: Device [url=http://192.168.2.52:49153/setup.xml]http://192.168.2.52:49153/setup.xml[/url] is a D_WeMo1_Controllee1.xml <0x2b7a1680> 50 09/08/14 20:18:44.987 luup_log:12: Device [url=http://192.168.2.52:49153/setup.xml]http://192.168.2.52:49153/setup.xml[/url] is called My Room and has serial Number 221344K1300C7B <0x2b7a1680> 50 09/08/14 20:18:44.988 luup_log:12: Noting details of unknown device uuid:Lightswitch-1_0-221344K1300C7B <0x2b7a1680> 50 09/08/14 20:18:44.989 luup_log:12: UPnP location [url=http://192.168.2.100:49153/nasdevice.xml]http://192.168.2.100:49153/nasdevice.xml[/url] <0x2b7a1680> 50 09/08/14 20:18:44.989 luup_log:12: UPnP udn uuid:73656761-7465-7375-636b-0090a9382dba <0x2b7a1680> 50 09/08/14 20:18:44.989 luup_log:12: Unknown uuid uuid:73656761-7465-7375-636b-0090a9382dba, identifying ... <0x2b7a1680> 50 09/08/14 20:18:45.002 luup_log:12: UPnP location [url=http://192.168.2.225:49152/description.xml]http://192.168.2.225:49152/description.xml[/url] <0x2b7a1680> 50 09/08/14 20:18:45.002 luup_log:12: UPnP udn uuid:bb66ac6e-4e59-58dc-bafa-ce6a78ae33ce <0x2b7a1680> 50 09/08/14 20:18:45.002 luup_log:12: Unknown uuid uuid:bb66ac6e-4e59-58dc-bafa-ce6a78ae33ce, identifying ... <0x2b7a1680> 01 09/08/14 20:18:45.009 LuaInterface::CallFunction_Startup-1 device 12 function initialize failed [string "--..."]:207: error closing parser: no element found <0x2b7a1680> 01 09/08/14 20:18:45.009 LuImplementation::StartLua running startup code for 12 I_WeMo1.xml failed <0x2b7a1680>
Hi guys, I am new to Vera.
When I installed WeMo app and reload lua, i get belkin wemo[12]: startup Lua Failed.
I strip the above code from lua log, can any one help me fix the no element found error?
This error indicates that there is a UPnP device on your LAN (uuid:bb66ac6e-4e59-58dc-bafa-ce6a78ae33ce) that is not conforming to UPnP standards: it’s producing an empty XML description.
Read back on this topic for how to enable verbose debugging, and capture another log. That can help you to identify which device on your LAN is misbehaving. You may then be able to temporarily disconnect it and see if you get further.
You can also disable discovery and add your devices manually if you know their IP address. If you haven’t read the plugin documentation, do so.
I tried manually add my switch but did not turn off auto discovery, so it didnt work.
now I turn off auto discovery, everything works perfectly.
Thanks.
I have UI7 and having the same issue with the device not saving. I can create it manually but it won’t stick. In advanced settings it shows device # and keeps incrementing every time I try to add device. I’m new to Vera so I am just learning. I’d love to get this working without downgrading.
@Futzle. I think you said you weren’t using your WeMo stuff of late but a minor bug to report. Everything normally works well. Power failed here the other day and the WeMo restarted but its WiFi Led is flashing a reddish color. As all the gear restarted, it probably missed out on making a LAN connection. It’s not showing up in the list of connected items on the router. So when Vera restarts it knows about the WeMo but doesn’t find it:
[code]50 10/02/14 10:34:25.525 luup_log:70: Starting WeMo plugin (device 70) <0x2c3b9680>
50 10/02/14 10:34:25.525 luup_log:70: Creating up to 1 children <0x2c3b9680>
50 10/02/14 10:34:25.525 luup_log:70: Creating child ABC.DE.EF.JK (WeMo Switch 1 (221249K11002EC)) as urn:Belkin:device:controllee:1 <0x2c3b9680>
50 10/02/14 10:34:25.527 luup_log:70: Reconnecting to device at fixed address ABC.DE.EF.JK <0x2c3b9680>
06 10/02/14 10:34:26.107 Device_Variable::m_szValue_set device: 69 service: urn:futzle-com:serviceId:UPnPProxy1 variable: Status was: 1 now: 1 #hooks: 0 upnp: 0 v:0xd79da8/NONE duplicate:1 <0x2e1b9680>
06 10/02/14 10:34:26.107 Device_Variable::m_szValue_set device: 69 service: urn:futzle-com:serviceId:UPnPProxy1 variable: StatusText was: Running now: Running #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2e1b9680>
06 10/02/14 10:34:26.108 Device_Variable::m_szValue_set device: 69 service: urn:futzle-com:serviceId:UPnPProxy1 variable: API was: 3 now: 3 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2e1b9680>
…
50 10/02/14 10:34:30.528 luup_log:70: No response from ABC.DE.EF.JK <0x2c3b9680>
50 10/02/14 10:34:30.528 luup_log:70: Searching for UPnP devices… <0x2c3b9680>
…
50 10/02/14 10:34:37.455 luup_log:70: Searching complete <0x2c3b9680>
06 10/02/14 10:34:38.146 Device_Variable::m_szValue_set device: 70 service: urn:futzle-com:serviceId:WeMo1 variable: UnknownDeviceCount was: 0 now: 0 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 LEAK this:339968 start:1785856 to 0x1630000 <0x2c3b9680>
06 10/02/14 10:34:38.147 Device_Variable::m_szValue_set device: 73 service: urn:micasaverde-com:serviceId:HaDevice1 variable: CommFailure was: 1 now: 1 #hooks: 0 upnp: 0 v:0xbf8a20/NONE duplicate:1 <0x2c3b9680>
06 10/02/14 10:34:38.155 Device_Variable::m_szValue_set device: 70 service: urn:futzle-com:serviceId:WeMo1 variable: ProxyApiVersion was: 3 now: 3 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2c3b9680>
01 10/02/14 10:34:38.156 LuaInterface::CallFunction_Startup-1 device 70 function initialize failed [string “–…”]:565: attempt to concatenate local ‘eventSubURL’ (a nil value) <0x2c3b9680>
01 10/02/14 10:34:38.156 LuImplementation::StartLua running startup code for 70 I_WeMo1.xml failed <0x2c3b9680>[/code]
I changed the ip address in the above to ABC.DE.EF.JK to protect the innocent. I can leave the WeMo in its current state, if you want me to test a new Lua file. Otherwise no big deal, if you are doing other things.
It’s hard to know what the plugin should do in this case. Crash probably isn’t the best option. But the plugin does need to make contact with each WeMo device at startup, to confirm that it has the same serial number and isn’t another device with the same IP address. Modifying the plugin so that it retries on connection failures (for how long?) is a major undertaking and something I don’t think I could do, particularly with no WeMo equipment any more in my home. Go ahead and restart your switch and reload Luup. It should come good.
Completely broken in UI7
I’ve got it mostly working in UI7. You have to update the J_WeMo1.js file to use the new api calls, and update the L_WeMo1.lua file to clear out the childType before appending the child - the type pulled from the UnknownDevicexType doesn’t match the type in the D_WeMo1_Controllee1.xml file so that breaks under UI7… so I just clear it right before the append so it can do whatever conditional stuff it needs to with it.
The js stuff on the configure tab on the WeMo parent device is funky now though and wont show back up…but I’ve got my two devices added and working.
Can you explain how to do this and what to change so we can all add these to get them working??
Hi all,
There is a new version already published on apps.mios.com that is working on UI7. I tested the plugin with an on/off switch and a motion sensor added static and everything was working as expected.
I updated the plugin for UI7 but I cannot guarantee that I will have the time to offer full support for it. For a while, I will do my best to fix potential issues that could appear after migrating to UI7.
Best Regards,
- Andrei -
Andrei
Thanks - was a slight bit confused as I was in the middle of making my own mods and your update pushed down on top of it. Any how Thanks!
I’ve got the part working to display the already added children and allow to remove them (basically all of the configuration function). Looks like you just left that part as it was and fixed the other parts to actually add the devices, I’ve added it as an attachment to this post if you want to incorporate it into the the plugin. Won’t let me attach .js so I just renamed it to .txt
edit 1: Actually removing doesn’t go so well…it will remove it but it only clears the childxtype parameter and funny things happen when you re-add them.
edit 2: Actually not really a fan of all that - I might come up with a different method. But I should probably actually do my job
-Doug
Hi. I tried updating app but doesn’t find device and when I enter static Ip I have no way to save?
Says press save to commit but I have no dialog box or save button
So it appears that Mr Coffee has made a WEMO enabled coffee maker. (My $12 coffee maker plus appliance switch solution from last year ended abruptly when the heating element in the coffee maker wouldn’t shut off. fire hazards have low WAF…)
I don’t own any WEMO devices to date so forgive my ignorance in this area, but I’m just trying to gauge how much complexity would be involved in getting this working with vera.
Do WEMO devices need some sort of central hub on the LAN or are they all standalone?
I assume the WEMO plugin would need to have coffee maker specific code added to it?