I have my dishwasher on a Kasa KP115 power monitoring plug. I only just installed it a couple of days ago. I want to be notified if the power stays below 3W for more than a minute, but only if the power had previously been over 5W.
My first thought was this is perfect for the new predicate conditions since they are for tracking when something moves from one state to another state, but in this case as soon as the power drops below 5W, the predicate condition becomes false and so the trigger would never happen.
So now I'm thinking I need two hub variables to track the state; dishIdle and dishRunning. I started to look into that, but it seems like you can't use a hub variable as any type of trigger. I see that the private boolean can be used as a trigger, but I was hoping to not need that because I've had issues with PB in the past and I don't like how you can't initialize them.
It seems like this should be easy to do... so maybe I'm just overthinking things.