2014-07-19, 06:20
Hi,
I managed to build this add-on for XBMC/Kodi to control my Belkin WeMo Light Switch. (Thanks to ouimeaux)
It will automatically turn the lights off when a video starts playing, and turn them back on when playback is paused or completed. Also you can map a keyboard key to toggle the lights on/off.
Only the name of your WeMo device is required.
This is my first XBMC/Kodi add-on, and it may have imperfections, but it works for me.
Download:
v0.1.4
Gotham: service.wemo.lightswitch.0.1.4.Gotham.zip
Frodo: service.wemo.lightswitch.0.1.4.Frodo.zip
Known Issues:
Alternative Choices:
Installation:
Release notes:
I managed to build this add-on for XBMC/Kodi to control my Belkin WeMo Light Switch. (Thanks to ouimeaux)
It will automatically turn the lights off when a video starts playing, and turn them back on when playback is paused or completed. Also you can map a keyboard key to toggle the lights on/off.
Only the name of your WeMo device is required.
This is my first XBMC/Kodi add-on, and it may have imperfections, but it works for me.
Download:
v0.1.4
Gotham: service.wemo.lightswitch.0.1.4.Gotham.zip
Frodo: service.wemo.lightswitch.0.1.4.Frodo.zip
Known Issues:
- Only works on Windows
It might be able to work on OS X and Linux, but you have to solve some dependencies problems.
- WeMo Smart LED Bulbs / WeMo Link are not yet supported
Currently, this add-on can work with WeMo Switch, WeMo Insight Switch and WeMo Light Switch.
Alternative Choices:
- Treads6465 and his friend MidnightLightning developed another version of this add-on, which can work on Android and other platforms.
Kodi-Wemo-controller: https://github.com/MidnightLightning/Kod...controller
- curti also built another WeMo Switch add-on for all platforms.
WeMo Toggle: http://forum.kodi.tv/showthread.php?tid=215291
Installation:
- You need to have a Belkin WeMo device (WeMo Switch, Light Switch, Insight Switch). And make sure it can control your lights remotely.
- In order to use your keyboard (or other remotes) to control the WeMo Switch, you need to edit the keyboard.xml file in the XBMC/Kodi userdata/keymaps folder.
Add one line "<l>Skin.SetString(wemo, True)</l>" to the keyboard.xml file like below. You can change the trigger key from "L" to whatever you want.
Code:<keymap>
<global>
<keyboard>
<l>Skin.SetString(wemo, True)</l>
<p>Play</p>
<q>Queue</q>
...
...
</keyboard>
</global>
...
</keymap> - Download the add-on as a ZIP file. Open XBMC/Kodi and go to: System -> Settings -> Add-ons -> Install from zip file.
- Wait for the settings dialog to pop up. Enter the name of your WeMo Switch device (you can find it from the WeMo app).
- If it can successfully find your WeMo device on the local network, then it should work.
Release notes:
Code:
Version 0.1.4
- Added: an option to disable turning on the lights during a period of time
Version 0.1.3
- Fixed: XBMC hangs on exit
Version 0.1.2
- Added: the ability to turn the lights on when playback pauses and turn them off when playback resumes
- Added: options to enable/disable switchings
Version 0.1.1
- Added: Gotham support
- Fixed: missing dependency "Requests"
Version 0.1.0
- Initial version