WEMO LED light questions about testing state

65 views
Skip to first unread message

Dale Drechsler

unread,
Apr 3, 2015, 9:50:11 AM4/3/15
to wireless-s...@googlegroups.com
Hi All,

Is it possible to tell the state of a WEMO LED lightbulbs? I'd like to know a) if its even powered one, as it could be off at the light switch b) if it is powered on, it the LED on or off. 

I can set them fine, but not sure how I go about checking their state. Trying to make them auto turn off after a while to save power, seeing as the native Wemo ios app doesn't support that feature yet for the LED's (it does for the switches)

Thanks for any thoughts, loving my wireless tags so far!

Cheers
Dale

Zhiheng Cao

unread,
Apr 3, 2015, 3:19:39 PM4/3/15
to Dale Drechsler, wireless-s...@googlegroups.com
Just click the "Update" button on the web interface or the refresh icon under individual tag (wemo) on iOS app. If the tag name background becomes green the LED is lit, white it is off.

--
You received this message because you are subscribed to the Google Groups "Wireless Sensor Tags" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wireless-sensor-...@googlegroups.com.
To post to this group, send email to wireless-s...@googlegroups.com.
Visit this group at http://groups.google.com/group/wireless-sensor-tags.
To view this discussion on the web visit https://groups.google.com/d/msgid/wireless-sensor-tags/0dd0c12a-f4a4-4fc7-a2a1-149e7fc3e46c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dale Drechsler

unread,
Apr 3, 2015, 7:54:41 PM4/3/15
to wireless-s...@googlegroups.com
Sorry, i should have been more specific there. My question was meant for can I check the state using a kumo app.

Thanks for the reply though.

Zhiheng Cao

unread,
Apr 5, 2015, 2:31:10 AM4/5/15
to Dale Drechsler, wireless-s...@googlegroups.com
OK this can now be done by using the .update() method (http://mytaglist.com/kumoapp/71/update)
This method used to only work for real tags, now works exactly the same way as the "update" button in the web/android app, i.e. refresh state of the wemo switch. The tag object returned by this update() method will have the lit property (http://mytaglist.com/kumoapp/4089/lit) updated. 

On Fri, Apr 3, 2015 at 4:54 PM, Dale Drechsler <dale.dr...@gmail.com> wrote:
Sorry, i should have been more specific there. My question was meant for can I check the state using a kumo app.

Thanks for the reply though.
--
You received this message because you are subscribed to the Google Groups "Wireless Sensor Tags" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wireless-sensor-...@googlegroups.com.
To post to this group, send email to wireless-s...@googlegroups.com.
Visit this group at http://groups.google.com/group/wireless-sensor-tags.

Dale Drechsler

unread,
Apr 5, 2015, 11:05:36 PM4/5/15
to wireless-s...@googlegroups.com
Thanks I'll give that a try!

Dale Drechsler

unread,
Apr 5, 2015, 11:49:14 PM4/5/15
to wireless-s...@googlegroups.com, dale.dr...@gmail.com
Struggling to get it to work, here's my code:
**********
var sensors = <#Front door_[12|13|52]_N#>;
var wemo = <#WeMo LED bulbs or switches_[82]_1#>;
sensors
.forEach(
   
function (sensor) {
        sensor
.closed = function(){
           
KumoApp.setTimeout(function(){
               wemo
.update();
               
if (wemo.lit){
               wemo
.lightOff();}
           
}, <%Number of seconds to wait_N%>*1000);
       
};
        sensor
.opened =function () {
            wemo
.lightOn();
           
KumoApp.setTimeout(function(){
                wemo
.lightOff();
           
}, <%Number of minutes to auto off_N%>*1000*60);
       
};
   
}
);

Which returns an error on sensor closed, something todo with the update() expecting some parametrised.So I;ve obviously done something wrong. Also, when I do get it working, what does update return if the  LED light is off?
Appreciate your help!

Dale Drechsler

unread,
Apr 6, 2015, 12:11:22 AM4/6/15
to wireless-s...@googlegroups.com
my other problem is that the following code (essentially minus the update call):
var sensors = <#Front door_[12|13|52]_N#>;
var wemo = <#WeMo LED bulbs or switches_[82]_1#>;
sensors.forEach(
    function (sensor) {
        sensor.closed = function(){
            KumoApp.setTimeout(function(){
               
               if (wemo.lit){
               wemo.lightOff();}
            }, <%Number of seconds to wait_N%>*1000);
        };
        sensor.opened =function () {
            if (wemo.lit==false){
            wemo.lightOn();}
            KumoApp.setTimeout(function(){
                if (wemo.lit){
                wemo.lightOff();}
            }, <%Number of minutes to auto off_N%>*1000*60);
        };
    }
);

Generates a "The remote server returned an error: (400) Bad Request." occasionallyno idea why, any thoughts on that error anyone?
Reply all
Reply to author
Forward
0 new messages