I have an action that triggers after my washing machine finishes (wattage is lower than 5 for 2 minutes). But this also triggers every time I start up Home Assistant. How do I avoid that?
add a condition to ensure HA hasn’t started in the last [say] 5 min?
I have an automation that runs at startup and check that this automation hasn’t ran in the last 5 min:
set an input_boolean to track when you turn the machine on and use it as a condition for your notification.
Obviously make sure that the default state for the boolean is off
That doesn’t make sense to me, unless sensor.vaskemaskin_power_3 is changing to values above and below 5 constantly or often. If it is below 5 at startup, and stays that way for 2 minutes, then yes, you’ll get an undesired notification (which should be eliminated with an uptime condition.) After that, it has to go to 5 or above, and then back below 5, and stay that way for 2 minutes, before the automation will trigger again.
If you add a condition like the following to your original automation, I don’t see how you’ll still get a notification after startup (again, unless the sensor’s value is changing.)
Ahhh, I figured it out. My telldus zwave mini switch only sends updates every 600 seconds when idle. So setting the idleness to 12 minutes fixed the issue. I could also configure the switch to send updates more often. Thanks for all the feedback! For reference, this is all that I had to do.