i want the HA to turn of an shelly plug s at time x when the power ist under 15W. If the power ist over 15W the Plug should be powered off after the power falls under 15W. I try repeat until, but it wont work.
Here is the yaml:
alias: TV Arbeitszimmer - Nachts komplett ausschalten
description: “”
trigger:
But, to aid the learning process try and look at your automations logic as it does not make sense.
Your current automation shows:
At 0943h run automation
Is power below 15w if it’s not then cancel automation / don’t run the actions.
So your automation will never pass the condition unless the power is below 15 to start with. You need to remove it.
Also the action reads like this:
Until the power is below 15 keep turning the plug off.
This obviously makes no sense either. If you turn the plug off it’s going to be below 15 as you just turned it off.