I currently have 3 aqara flood sensors. At the moment, I’ve only set 2 of them up (one at either end of my basement). I created a group for these sensors (which I’ll add any new flood sensors to in the future) and setup an automation to alert me if one of them detects water for longer than 15 seconds (See below for the yaml on existing).
I would like to pass the friendly name of the device which triggered to the notification. For example, if I place the third sensor beneath my kitchen sink and it detects water, the device friendly name would tell me precisely where to look for a leak. However I can’t wrap my head around the format/syntax for this to work.
Ideally, a notification would read along the lines of “water detected at: Basement Flood North”
yaml of existing notification:
alias: Flood Detected Notification description: "" trigger: - platform: state entity_id: - binary_sensor.flood_sensor to: "on" for: hours: 0 minutes: 0 seconds: 15 condition:  action: - service: notify.mobile_app_kb2005 data: message: Flood Detected mode: single