If temperature drops below X *OR* hasn’t reported in Y time?

Just got my first thermometer, a tuya from aliexpress. It seems to report regularly, but also not consistently at the same interval.

I imagine I could set up a trigger when the temperature drops below a value, but what about also checking if the last report was, say, more than an hour ago?

Do I need to I.e. set up a rule machine to run every hour, or is there another way to accomplish this? Haven’t really run into setting up an automation in this way before

Create a rule that triggers every time there is a change

Then have an action that is wait for event elapsed time.

If the temp changes again the rule will re-trigger, starting the wait over again. If it does not, then you can have something happen after the wait to let you know.

3 Likes

I would do something similar to @terminal3’s suggestion but use a hub variable to track it.

Trigger:
Temperature change

Actions:
Set Variable to 1
Wait for Event: Time elapsed 1 hour
Set variable to 2

This way your hub variable will always have the information in a simple way to run other rules.

Not sure I entirely follow this could you elaborate? And the why/usefulness?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.