i have a smart plug and want to automatic turn it off, when two conditions reached one by one.
It only must turn off, when the Plug had a Power Consumption OVER 100 but only when it fells than under 8.
So it MUST be one time over 100 and when it drops than under 8, it must turn off.
The Problem is, that the two conditions cannot reached together.
Thats my try.
But i think the problem is, that the two conditions never can reached together, cause it cannot be over 100 and under 8 at the same time.
Is there a way, that he remember that the 100 was reached before or is there something like “from over 100 to under 8” in one trigger?
That is it… Its really the same.
But i dont know why it doesnt turn off. The turn off alone works if i dont have wait_for_trigger, but both together is not working
My printer is running on that plug right now, it triggers over 50 on power few times already. When printer its done, it drops under 8 Watt and the wait_for_trigger must be fired and than it must be turn off, right?
Sounds right, but if your printer is already above the threshold in the automation the automation should already be running and you should see that in the trace.
Yes, the idea is to turn the printer (smart plug) offline, when its done after a print.
But i cannot use just turn off under 8, cause than i never can start a print, cause it turns off everytime while i will start a print…
Sometimes i need 10 Mins to check something, sometimes more or not that much.
So my idea was, when it was over 50 Watt, than i know it was running before. And when it drops under 8 when it was over 50 before, than it must turn off.
That is what if tried first, but sometimes i need more than 5 or 10 or 15minutes… sometimes i going to get a drink while it doesnt need to turn off or something.
It just need to turn off when it has a print done (so when it was over 50 watt), cause every other case is that i just started it before. And if i started it, it doesnt need to turn off after 5 mins.
ok, so you want the printer to be idle for an unknown amount of time before executing the switch off ?
I’m not sure how having the extra above 50 helps with that.
The above would give you 5 minutes from turning the smart plug on to starting a print. Assuming the printer stays above 8 whilst its printing, it would then stay on until its done.