Page 1 of 1

Controlling WEMO switch

PostPosted: Sat Feb 14, 2015 11:49 am
by captcurrent
In my attempts to libe in a non standard world found a guide to a terminal script to control; wemo switch http://moderntoil.com/?p=839&cpage=1


Executing this script from an applescript has allowed me to integrate this I'm my Indigo setup where I cab't use the electric lines to transmit and receive

Re: Controlling WEMO switch

PostPosted: Mon Aug 10, 2015 5:05 am
by Coolcaper
Thanks for the tip!

Re: Controlling WEMO switch

PostPosted: Wed Sep 23, 2015 2:21 pm
by protean
I had some difficulty with the script mentioned on this thread, it later turned out it was my mistake, as usual. However, in the meantime I dug around and found a Python script that does a much simpler job of controlling Wemo devices from Indigo. I am guessing a much more savvy user than myself can script it using the Indigo built in Python script editor but for me, I use the Do shell Script with Applescript.

Code: Select all
do shell script "wemo switch \"Kitchen Light\" on"
turns on the kitchen light.

The project website is here as well as a link to the complete documentation
https://pypi.python.org/pypi/ouimeaux

You will need command line developer tools (don't need Xcode, simply type git in the terminal and you will be prompted to download the command line tools). Once installed, Wemo devices can be used easily! No need for IFTTT.

Re: Controlling WEMO switch

PostPosted: Thu Nov 05, 2015 7:03 pm
by ehuck
I'm having trouble installing ouimeaux. I did sudo easy_install ouimeaux. When I try to run the command wemo server it fails. Did I have to do anything else beforehand?

Re: Controlling WEMO switch

PostPosted: Fri Nov 20, 2015 10:36 am
by protean
In Terminal, cd to the ouimeaux-n.n.n directory and try:

Code: Select all
sudo ./setup.py