Would this drain my devices?


#1

1) Give a description of the problem
This piston works great but im trying to figure out how webCore runs its code. Im guessing that smartthing sensors are able to have good battery life because they are able to basically be sleeping unless something changes. does webCore then wake of the device often? would this code be constantly checking the devices thus draining the battery?

2) What is the expected behaviour?
Check to make sure office is same temp as rest of the house. if its too high then turn on HVAC fan to circulate air.

3) What is happening/not happening?
working fine.

**4) Post a Green Snapshot of the piston![image|45x37]


#2

Your trigger:
pic
means that you are subscribed to “MotionSensor3’s temperature”.

Whenever MotionSensor3 reports a temperature change, it alerts the hub, and the piston will execute. If the temp is greater than X, the “THEN” block below will execute. Otherwise, it checks the “ELSEcondition.

In other words, webCoRE does not ask the device “What is the temperature?” It waits for the device to report in. So I would expect MotionSensor3 to use the exact same amount of battery, whether or not you have a piston subscribed to it. (unless you are actively polling it elsewhere)


Taking that concept to the next level:

If your “Thermostat1” was battery powered, (unlikely, but as an example)… then “Thermostat1” would go thru batteries very quickly with all the extra commands being sent to it.


#3

One small observation about your piston though, if I may…

The way it is currently worded, your “Set on/Set Auto” options are “bumper to bumper”. Meaning you will have many occasions where the temperature is “straddling” that precise threshold. (IE: 73.99 thru 74.01) Whenever this happens, you may find this piston flipping it back and forth a half dozen times (or more) in the same hour.

I would highly recommend leaving (at least) one degree separating between the two conditions. That would really help to keep it from toggling so often.