Hi, I’m trying to get the correct way to indicate which sensors in a list are on. This is my current config, which works to notify me via text and email. However, it states now that water has been detected but not which sensor name. How do I get the sensor(s) name(s) listed on the message portion?
- id: '1593798226108'
alias: WaterNotify
description: Notifies via text and email of water detection
trigger:
- entity_id: sensor.1_MasterBedToilet
from: 'off'
platform: state
to: 'on'
- entity_id: sensor.2_MasterBedSink
from: 'off'
platform: state
to: 'on'
condition: []
action:
- data:
message: water detected!
service: notify.floodalert
wow, i knew it would be something easy. Very sorry, pretty newbie. However, I did manage to make my own water sensor (with the help of the internet) using an ESP8266 and MQTT so not so bad. THANK YOU SO MUCH.
Here’s a little hint for setting up these things and experimenting with the templates: Output a persistent notification until you’re satisfied, then change it to a real notification.
The benefit is you’ll only have to reload your automations and see the message immediately pop up within your HA’s “Notification” area!