--
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.
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/wireless-sensor-tags/68fd00b3-d2d7-4a77-80de-4cc9143c2f0a%40googlegroups.com.
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!