This automation script monitors your Miele washing machine and sends notifications to various Alexa devices when the washing cycle finishes. Leveraging Home Assistant’s robust device triggers, you'll be alerted in your living room, bathroom, kitchen, and even on Philip's device. 🧺
The automation is activated by the washing machine’s program_ended
event. Once detected, notifications with the message “Die Waschmaschine ist fertig” (which means “The washing machine is finished”) are sent via the corresponding Alexa notify services – perfect when you need a heads-up that it’s time to unload the fresh laundry. 🧼
The script starts by defining a clear alias and description. It utilizes a device trigger that listens for the program_ended
event from your Miele washing machine sensor. As soon as this event occurs, the action sequence is executed immediately – no extra conditions are needed. 👕
In the action phase, notifications are dispatched to multiple Alexa devices, ensuring that the wash cycle completion message reaches all intended rooms. This multi-notification setup guarantees that you never miss the alert that the laundry is done. 🔔
Below is the YAML code for the automation. Simply copy this code into your Home Assistant configuration file (e.g. /config/automations.yaml
).
alias: "Alexa - Waschmaschine fertig"
description: "Notify multiple Alexa devices when the washing machine program has ended."
trigger:
- platform: device
device_id: "20fc689ccb8021ccb4375fc0ea782c8c"
domain: miele
entity_id: sensor.washing_machine_status_2
type: program_ended
condition: [] # No additional conditions.
action:
- service: notify.alexa_media_wohnzimmer
data:
message: "Die Waschmaschine ist fertig"
- service: notify.alexa_media_badezimmer
data:
message: "Die Waschmaschine ist fertig"
- service: notify.alexa_media_kuche
data:
message: "Die Waschmaschine ist fertig"
- service: notify.alexa_media_philip
data:
message: "Die Waschmaschine ist fertig"
mode: single
The code above defines the complete automation sequence. If you need to further customize it – for instance by adding conditions or additional notifications – you can modify the "condition" and "action" sections accordingly. 🔧
This detailed explanation and clean layout combine functionality with a laundry-themed design to help both beginners and experienced Home Assistant users easily understand the automation. 👍