Beiträge von shelldownmaster

    What do you mean by "local time is not really reliable"? If it is in the order of some seconds/minutes, I do not really mind.

    Simply letting the circulation pump run every few hours is not really efficient, since I have a demand-controlled activation.

    So this is my first approach - not the very best coding (magic numbers, many if/else cases, ...), but it seems to work as intended:

    You might review, if you like. I am happy for any comments, ...


    Moreover, I have one basic question:

    The Shelly is now configured as detached switch. I activated the script via the Slider on the "Scripts"-page. Does that mean, that the script automatically restarts after a power failure/firmware upgrade/... ?

    If no, how do I ensure this?

    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 :)