Release WeMo Toggle - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27) +---- Forum: Service Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=152) +---- Thread: Release WeMo Toggle (/showthread.php?tid=215291) |
WeMo Toggle - curti - 2015-01-17 WeMo Toggle can be used to toggle a Belkin WeMo Switch. The IP address of the WeMo Switch is required and it is recommended to assign the WeMo Switch a static IP via DHCP reservation on your router. Download the add-on zip and install the add-on through Kodi settings. After the add-on has been installed, input the IP address of the WeMo Switch and enable desired settings. The add-on will determine the port being used by the WeMo Switch after the settings have been saved. Required: WeMo Switch, WeMo Insight Switch, or WeMo Light Switch Options:
Platforms: all Tested on: WeMo Light Switch using Kodi on Android, OSX, OpenELEC, and Windows changelog: Quote:Download: service.wemo.toggle.zip Old Download: service.wemo.toggle.zip Thanks to: cj2902, Sylv, yuvalt, sphere, and zag RE: WeMo Toggle - Verderer - 2015-01-22 Works like a charm. So now I'm one big step closer to "finishing" my htpc build. Thx! RE: WeMo Toggle - Verderer - 2015-01-24 Having 1 small problem with the addon though ... When I power up the HTPC the addon always says if can't find the Wemo switch and will jump straight into the config screen. Seams like it's always "detecting" the port for the Wemo, even though I've set that to what it should be in the config screen. So I end up with having the addon working, but with the config screen open when I power up my HTPC. Enabled log for the addon, where does this log place it self? Any idea how I can stop this config screen to pop up at power up, should the addon be delayed? RE: WeMo Toggle - curti - 2015-01-25 (2015-01-24, 15:57)Verderer Wrote: Having 1 small problem with the addon though ... According to some posts I have read online the port for the WeMo switches can change. If the add-on is unable to check the status of the switch it will reset the port and attempt to connect on a different port. If it is still unable to connect on a different port it is possible the IP address changed so it opens the config screen. If your WeMo Switch is assigned a static IP but the config screen appears when you power up the HTPC there might be a delay with your HTPC connecting to the network. If this is the case then I can add a delay before the add-on checks the status of the switch. It will print information to the kodi.log file. The add-on will print messages in this format: Code: WeMo Toggle - [MESSAGE] Snippet from kodi.log with the information the add-on will print with Log enabled: Code: 15:11:19 T:5660 NOTICE: -->Python Interpreter Initialized<-- RE: WeMo Toggle - Verderer - 2015-01-25 Ok, so here's the error log I'm getting. Code: 19:49:21 T:139840530278144 NOTICE: WeMo Toggle - ERROR - 192.168.0.15:49153 - <urlopen error [Errno 101] Network is unreachable> My Wemo Switch is running on a static ip, so maybe adding a delay would work. Eager to test it out RE: WeMo Toggle - curti - 2015-01-25 (2015-01-25, 02:53)Verderer Wrote: Ok, so here's the error log I'm getting. I have added a 10 second delay before it checks the status of the switch: service.wemo.toggle-sleep_test.zip Please let me know if this resolves your issue. RE: WeMo Toggle - Verderer - 2015-01-25 Yes, this does resolve my issue. Working perfectly now. And now I have 2 requests for the addon if possible. 1) Add a "set time delay field" in the config screen, so I can set it to f.eks. 5 sec, or 7 sec. 2) Is it possible to auto turn the switch on at startup, and turn off on shutdown? Cheers RE: WeMo Toggle - curti - 2015-01-25 (2015-01-25, 11:53)Verderer Wrote: Yes, this does resolve my issue. Excellent. I have added the requested settings. Please see below for changes and download. changelog: Quote:Added Misc category to settingsDownload: service.wemo.toggle.zip RE: WeMo Toggle - Verderer - 2015-01-26 Nice Though the "turn switch off at shutdown isn't working for me. And I can't find anything in the log files. Since I've got another addon that I run at shutdown ... I should probably have a little shutdown script to run both addons. RE: WeMo Toggle - curti - 2015-01-27 (2015-01-26, 23:40)Verderer Wrote: Nice I will look into it later today or sometime this week to see if I can replicate the issue. The only thing at the moment that should show up in the log if the add-on is set to turn the switch off at shutdown when Kodi exits is: WeMo Toggle - Switch: Off Example: Code: 14:50:49 T:4916 NOTICE: Storing total System Uptime RE: WeMo Toggle - Verderer - 2015-01-27 Ok, did some more logging and found the "WeMo Toggle - Switch: Off", but I see there is a error right after. Full log here: http://pastebin.com/n88EVNg3 RE: WeMo Toggle - curti - 2015-01-27 (2015-01-27, 01:39)Verderer Wrote: Ok, did some more logging and found the "WeMo Toggle - Switch: Off", but I see there is a error right after. Thank you for the log. It appears to be the same issue you were experiencing before we added the delay to the add-on. Code: <urlopen error [Errno 101] Network is unreachable> I just tested it on my Raspberry Pi with OpenELEC 5.0.0 and I am also experiencing the same issue with the shutdown option enabled. However, it is working as intended on Android, Linux (Ubuntu 14.04), OSX, and Windows. It seems to be an issue/feature with how OpenELEC handles network connection(s) when a shutdown is initiated. I do not know if there is anything else I can do to resolve this issue because the add-on sends the command when Kodi requests Abort. Another person seems to be experiencing a similar issue with their shutdown script. RE: WeMo Toggle - JonSnow88 - 2015-02-22 this is sweet and works perfectly, but can you update it to add more then one switch? I have 2 wemo switches in my media cabinet for the led lights and one for the celing light. I would love to be able to control multiple devices from kodi. RE: WeMo Toggle - curti - 2015-02-22 (2015-02-22, 06:21)jebise Wrote: this is sweet and works perfectly, but can you update it to add more then one switch? I have 2 wemo switches in my media cabinet for the led lights and one for the celing light. I would love to be able to control multiple devices from kodi. I have exams this week and next week; but I will consider looking into this request when I have some free time. If I am able to add this feature the switches would be controlled together by the add-on (i.e. both switches off or both switches on when toggled) and there might be a slight delay. RE: WeMo Toggle - JonSnow88 - 2015-02-23 I could care less about the delay, but it would be awesome to get both lights to turn on and off with one button/trigger. Also if your able to, release two version i.e one for single setups and one for duel setups. Give the services different names so they act as two separate addons. This way I can control my celing light as well with the single service as is now and the other addon for dual setups. I sure hope people don't need to control more than 3 devices :p But thanks for your hard work and good luck on the exams. |