I've been writing new automations using the HA Automation interface for notifications when Aqara water sensors (with an M2 hub integrated with HA using Matter) switch from "Dry" to "Wet". The automations seem to work, with the following problems:
- After I save them, they work, but do not appear in the list of automations when I go to "Settings" - "Automations". I have verified that the list filters are off and the listings are expanded. They appear in the YAML in the Automations section. Unrelated automations I composed a few days ago, saved and appeared in the list normally.
- I originally duplicated a previous notification automation (Dishwasher finished) and rewrote it. When I had the saving problems, I deleted it from the YAML file and started fresh. But now, when I run the new automation, I get the water sensor notifications, but I also get the dishwasher notifications.
- I changed the name of the entity from "binary_sensor.aqara_water_leak_sensor_water_leak_2" to "Water leak - guest bath upstairs" prior to making the automations, but the old name still appears in them.
Here is the YAML:
- id: '1754340057433'
alias: Leak Guest Bath Upstairs Notification
description: ''
triggers:
- trigger: state
entity_id:
- binary_sensor.aqara_water_leak_sensor_water_leak_2
from: 'off'
to: 'on'
for:
hours: 0
minutes: 0
seconds: 30
conditions: []
actions:
- action: notify.mobile_app_louiss_iphone
metadata: {}
data:
message: A leak has been detected in the guest bathroom upstairs. Please take
action!
title: HA Urgent Notification - Leak Guest Bath
- action: notify.alexa_media
metadata: {}
data:
message: 'Home Assistant Urgent Notice: A leak has been detected in the guest
bath upstairs. Please take action!'
target:
- media_player.louis_s_office_echo_dot
mode: single```