Shelly Plug S - switch off when power is xx minutes below xx watt

  • We have installed a bunch of Shelly S plugs to switch on / off pc's at the office for those working from home. Since covid a lot of my colleagues, including me, work from home using Remote Desktop. In order to do so, the pc's at the office have of course to be switched on some way. So I had them set in the BIOS to automatically switch on at 7:30 in the morning. Works fine, but this means all machines switch on at that time, even if you're not going to use it. The Shelly plug to the help. Everyone now has a Shelly plug to switch on / off their pc from wherever they are, whenever they like. Works fine!

    As a convenience, I created a 'scene' for each plug to switch off as soon as the power consumption drops below 10 watts. Which is the case if you shut down your pc. Also works fine. But. Some pc's behave a bit weird. When powered on, you hear the power supply come to live for a couple of seconds and then it switches off, only to switch back on after another couple of seconds and the pc will start. And you guessed what happens - as soon as the pc's power supply switches off after the first couple of seconds, so does the Shelly plug. Causing an infinite start / stop loop. I had hopes adding a switch-off delay to the scene would remedy this, but it doesn't - it only postpones switching off the plug.

    So I wonder if there's any way to create a script or custom scene where the plug only switches off if the power consumption drops below a certain value for a certain amount of time. In other words, I would like the Shelly plug to switch off if the power consumption drops below 10 watts for a duration of 5 minutes. Any ideas on how to do this?

  • Turns out - it's already there.

    Create a Scene.

    Condition: Power Consumption. Check When power meter is less than xx W and fill in a value. In our case 15 watts.

    Condition Type: Once. Condition is valid: 5 minutes.

    And that's it. As soon as the power consumption drops below 15 watts for at least 5 minutes, it will execute the chosen action. In our case Turn off the device.