Thought I’d share the setup for my washing machine notification automation in Home Assistant which uses Aqara sensors.
The functionality
- Messages the person who started a wash once it’s finished if they are home
- If no one is home, it will message the person who started it when they get home
- If 10 minutes after finishing, the person who started it isn’t home but someone else is, it’ll message them
- If no one has emptied the washing 30 minutes after finishing, it will deliver one last reminder.
The setup:
- The washing machine is plugged in via an Aqara H2 smart plug
- There’s an Aqara window/door sensor on the utility cupboard door (but you could easily just use an Aqara multi-state P100 sensor on the washing machine door).
The automation
- HA monitors the power draw from the washing machine. Once it goes over a set threshold, it turns on a helper saying the machine is in use. Check who is currently at home and for anyone who is, turn on a helper for them.
- Once the power usage drops below a set threshold for 30 seconds, and the machine in use helper is turned on; Turn off machine in use helper, turn on Wash finished helper, and if anyone who was home when the machine was started is currently home, send them a notification saying the wash is finished. Set a helper saying the door is unused.
- When someone opens the utility cupboard, if the ‘door is unused’ helper is on, turn it off and turn off the ‘wash finished’ helper (which assumes the washing is now collected).
- If someone who was home when the wash was started arrives home and the wash hasn’t yet been collected, message then 5 minutes after arrival.
- If no one has collected the washing half an hour after finishing, message anyone at home.
I plan to add a BT strength grid to the house so I can determine who is in what room based on the signal strength with their phone, at which point I can more accurately determine who started the wash rather than just who was home at the time.
Let me know if you want copies of the YAML