Hi everyone.
I need your help to understand how I should express my automation trigger to ignore false positive values.
See this graphic
That comes from a power plug attached to an electric teapot.
As you can see, the power plugs cuts the power for ~5s midway the utilization.
I’d like to express a logic where I can ignore that drop and receive a notification as soon as the teapot completely cuts off the consumption (not displayed in the graphic.
I have that single drop, but it’s constant, everytime.
How can I express a logic to ignore that?
Currently I have a test that checks if the power consumption is 0 for more than 5s, but that delays the notification and that’s exactly the problem I’m trying to solve.
Any suggestion? Maybe with Filter - Home Assistant ?
Wow I thought the Brits were the only folks this serious about their tea kettles!
I don’t think a filter will help you here. How would it filter out the first drop but not the final cutoff if not testing for time period, which is exactly what you do with your test (I’m assuming you have a for: parameter on your trigger?)
This is a bit hacky but should work.
- Let your automation trigger on the first drop to zero
- Put a wait in first action step for it to go back above zero
- Put a wait as your second step to go back to zero again
- Then do the remainder of your original automation
Thank you!
It’s not even that clunky!
I didn’t know at all the wait
function!
Thanks again for helping with this, and yes, it might be a little overkill for the tea kettle, but it was was particularly curious to check if there was any kind of standard way to solve such problems, and your suggestion seem pretty reasonable!
1 Like