It work some times and mostly not.
The above code was for test only so I set short times to check settings. Here is my final configuration.
I want to get google home device announce that wash is done. For this I have set following as my understanding.
When machine starts, it takes 2- 5 watts while you set timer etc.
When machine start washing it takes around 190-230 watts until completed.
in between, it takes 6-5 watts again for water drain and refill.
So I have set that if machine take power more than 1 watt for atleast 10 minutes or more. It should trigger and added condition that power must be less than .3 for 30 seconds to run actions.
Because when machine is started, it takes more than 1 watt. and when it complete it takes 0 watts.
Now its not running and I don’t know why. Is there any way to troubleshoot? So I am making any mistake in my configuration?
It’s hard to tell.
Note that “above 1 for 10mn” means that the power must not drop under 1W for the whole 10mn to trigger.
Same for “below .3 for 30s”. So if there is only 1 instance of a 1.1W after 9:59, then it won’t trigger.
I’ve not chosen to go this way, but used a larger value (30W) no delay to detect beginning.
And then an higher value (3W) for a longer time (5mn) to detect end of cycle.
Hey @charliesoap4,
I am a big fan of starting with a state machine, then build actual automations on top of that. A lot cleaner and feasible to maintain and extend over time.
{% set p = states('sensor.blitzwolf_shp6_energy_power') %}
It’s based on the assumption that your switch.blitzwolf_shp6 has an associated entity called sensor.blitzwolf_shp6_energy_power. If it’s called something else then use that name.
This wouldn’t work for us, because we have different choices for the cycles.
I’d use something a lot simpler, like a pause for 5 minutes after a lot of power usage.