Hello everyone,
I would like to set the output of my "Shelly Plus 1 PM Mini" ON when the input is ON depending on the previous Output-OFF-duration. To make it clearer:
I have a circulation pump: if it has been running, let's say, 2 minutes ago it should only run for 10 seconds, because everything is stationary already.
If it has been running, let's say, 10 hours ago, it should run for 5 minutes, and so on...
So I have the following newbie questions:
1) How can I measure time?
2) Can I handle output seperately if triggered by input and triggered by Web Interface (it should always run for 5 Minutes via App interface).
I am happy for any help - this will be my first script, so please be patient with me