1) Give a description of the problem
I have 6 SmartThings leak detectors that return an incorrect battery level and stop responding even though the battery level shows it’s fine. What I’d like to do is monitor the temperature they’re reporting and have a piston react if the temperature doesn’t change over a 12-hour period, as that will tell me that one or more sensor is likely dead.
Can someone help me design a piston that will do this? I could cobble something together that monitors each sensor but I’d like something that’s more efficient and more concise than the pistons I usually cobble together.
2) What is the expected behaviour?
I need something like this:
If Sensor1 or Sensor2 or Sensor3’s temperature stays the same for 12 hours then
"alert Message = “{sensorThatsNotResponding} temperature has not changed in 12 hours”
Push “alertMessage”
End if
**3) What is happening/not happen
Nothing is happening as I haven’t written the piston yet. I’m hoping someone with strong Webcore chops can assist me in creating a much more concise and efficient piston than what I usually come up with. Teach a man to fish and all that…
4) Post a Green Snapshot of the piston
(UPLOAD YOUR IMAGE HERE)
5) Attach logs after turning logging level to Full
(PASTE YOUR LOGS HERE THEN HIGHLIGHT ALL OF THE LOGS AND CLICK ON THE </> ICON TO FORMAT THEM CORRECTLY)
REMOVE BELOW AFTER READING
If a solution is found for your question then please mark the post as the solution.