(i.e.: Track power level. If the power level of the washing machine has been above 50W for a few minutes, it’s probably running. if it’s below 20W, it’s probably idle. Notify that it is running, but only if it hasn’t been notified before).
If there were an action input_boolean.turn_on_if_off and input_boolean.turn_off_if_on (or something less of a monstrosity ), it would make creating the first automation easier (no need to check if boolean is off before turning it on). The first automation can be called a few times in quick succession, because of varying power levels used by the washing machine.
No, because the trigger gets called again at every power level change, killing the for. Perhaps I could use the parallel automation mode, but then the action gets called a lot.
I can’t use input_boolean.toggle every time the power level is reported, I think… I mean, when it is ‘high’ the boolean needs to turn on, and when it is low, it needs to be turned off. Powel level reports come every few seconds.
Ok. That might be true.
But I still don’t see this as a wth topic and the proposed solution (to slow down the booleans) I not something I like.
Most probably want booleans to be instantaneous and slowing it down will affect other automations.
What about the thresholds? Can’t you set it higher than 50? Say 100 when the washing machine is really on?
Or the below lower?
Another option is to condition that it can’t turn off if it has been turned on within the last hour (assuming the washing machine runs for about or more than an hour).
As I see it there are other solutions to the problem that is better and more accurate than slowing the booleans.