Circulations pump with Motion Detection

Hello, I would like to optimize my control of the hot water circulation pump. I only want to run it when there is a real need. That’s why it should be switched on when movement is detected in front of the kitchen or in the bathroom and switched off again after 2 minutes. This is not a problem either.

However, it should only be switched on when, for example: has been turned off for 1 hour. So that it doesn’t turn on. I don’t know how to do this here. How can I add a condition that checks if a switch has been off for an hour

Hi there thorstenniemann.tn,

There may be a solution but there is a slight problem.

Sadly we’re not mind readers (any more anyway, not after the last time we tried). Please share the YAML and any errors so we can see what you’ve done.