Aqara Water sensor automation

Please format your pasted config correctly for the forum. See https://community.home-assistant.io/t/how-to-help-us-help-you-or-how-to-ask-a-good-question/114371#oneone-format-it-properly-16

However your problem is that single line templates need to be enclosed in quotes.

message: "Water leak for {{ trigger.to_state.name }}"
1 Like