Heya,
I've installed some power usage sockets on our washing machine and dryer to try and create an automation that sends a notification when either of them are done.
However I'm not quite sure how to proceed here now, I think my logic is not "logicing" quite as I think it should be... or maybe I'm just overthinking again :)
My idea is "check if power draw has been above X value for Y amount of time, if it falls back down below a certain threshold wait again and check if it goes back to X amount, if not send a notification".
However how would I properly implement this into a HA automation? I don't want to accidentally send out false notifications in case the washing machine is still, as example, tumbling for a few hours which would potentially always be above a certain threshold so it never sends out a notification then.
Has anyone by chance already automated something like this in a way I'm imagining it here and could share their experience or code?
Thanks already!