Does Webcore know how long a switch has been on in SmartThings?


#1

Quick question really - i’ve always wondered. If you use an if like “switch has been on for 9 hours” does that only work if that switch has been turned on within the same piston previously or, with SmartThings can a WebCore piston know how long a switch has been on globally, no matter if it’s been turned on manually, by a different app, another piston etc?


#2

The way it is supposed to work is that webCoRE looks back through the ST device event history. However this seems to have been playing up a bit for some users since ST made some changes to event history handling.