> It's apparently possible to track a washing machine's progress with a smart switch that monitors power draw;
Can confirm, it's what I do. I can even detect which part of the cycle it is in using plain Home Assistant template sensors.
It's crude but it works. Detecting washing vs not is trivial, but I went the extra mile, looking at the power history and analysed the thing visually to get the general profile of each part, taking into account peaks, throughs, noise to have some unambiguous rules. Some are wrong if taken in isolation but taking the order of priority into account, flattening the result with if/elif in a single state sensor it becomes correct. That strategy is also very easy to debug visually with a entity history list in the dashboard.
I could probably also detect error states (which I had a few, like filter clogged with lint preventing water drain) as in this case the panel stays lit with the error code basically forever VS a normal cycle has it lit but ultimately it shuts down to deeper sleep states once it's done.
I really enjoy making dumb devices smart, it's a nice decoupling too and means I can just change e.g washing machine if it dies, adjust a few values below, and be all the merrier.
(nixos config, but it's a 1:1 to YAML and you get the idea)
Sometimes I feel a little dumb here. I don't know what kind of master of evil would wake a day and think about hacking the vault that keeps their underwear safe and sound, but I love it.
Now is time to add "flamethrower_mode", lock online and send mail offering the regain_access_to_your_precious_cozy_pajamas code for a fair fee, and became the hidden kings of the undieworld with our "pay_per_brief" program. Muahahah!
I guess it might be quite fun to graph that and overlay the graph of the current cycle over an original benchmark - it might indicate when, for example, the heating element was no longer working as efficiently.
I imagine that would get complicated pretty quickly. Water takes significantly longer to heat up in the winter just because it's so much colder to begin with.
Can confirm, it's what I do. I can even detect which part of the cycle it is in using plain Home Assistant template sensors.
It's crude but it works. Detecting washing vs not is trivial, but I went the extra mile, looking at the power history and analysed the thing visually to get the general profile of each part, taking into account peaks, throughs, noise to have some unambiguous rules. Some are wrong if taken in isolation but taking the order of priority into account, flattening the result with if/elif in a single state sensor it becomes correct. That strategy is also very easy to debug visually with a entity history list in the dashboard.
I could probably also detect error states (which I had a few, like filter clogged with lint preventing water drain) as in this case the panel stays lit with the error code basically forever VS a normal cycle has it lit but ultimately it shuts down to deeper sleep states once it's done.
I really enjoy making dumb devices smart, it's a nice decoupling too and means I can just change e.g washing machine if it dies, adjust a few values below, and be all the merrier.
(nixos config, but it's a 1:1 to YAML and you get the idea)