Want piston to check temp of room every X minutes


#1

1) Give a description of the problem
My temperature sensor will only report its temp every hour. I want something to manually check it every 20-30 minutes and then do something with the info.

2) What is the expected behavior?
I would like it to check the temp of the sensor then execute the rest of the piston

3) What is happening/not happening?
I actually don’t understand how to get it to repeat. So I haven’t put that in yet. This is what I need help with. Thanks so much!!

4) Post a Green Snapshot of the pistonimage

5) Attach any logs (From ST IDE and by turning logging level to Full)
N/A


#2

You can use a TIMER for every X minutes.

The timer is the trigger of your piston so it executes every X (30 lets say) minutes.


#3

Ahh. I put that in originally, but it gave me a big warning bar that said it should be top level only and shouldn’t be used within. Maybe the warning doesn’t matter?

Thanks


#4

The warning does matter.
That command should not be inside other blocks.
(keep it at the far left)

Every 20 minutes
do
    IF Motion's temp is blah blah blah
    Then
        Do stuff
    END IF
END EVERY

#5

Thank you! This is exactly what I needed. I’ve just never used this before. Know I will have it in my toolkit! :grin: