I have worked with other software that handles notification and in doing so, there was always a way to add variables into the notification message to indicate what triggered the message. I got to assume this function is built into HA.
How would I craft that message body or title with the device that triggered the automation along with the state of the device. For example, if the kitchen window triggered my automation, I would like to know my kitchen window did it because the window was opened.
A variable for “time” and “date” would be awesome but I would think the time I received the notification should be close. But, it would be nice to have it in the message in case it was a while before I got to it.
In the other software I have messed with, it was always something like %devicename% or %trigger% or %time%, etc.
I am guessing I should ignore the “isual editor is not supported for this configuration” error. Here is what it gave me. Step 1 was add the title and then step 2 your code. It looks like it created the title entry in there once I added the message text. Based on Taras’s reply, I may have to wait for one to trigger. Thank you all, until I can confirm…and then I am sure it is still Thank you, all.
Thank you, all. I set my “Alarm:ON” and “Alarm:OFF” automations that place my home into those modes based on whether or not I am home to use the notification you gave me and both indicated that my cell phone left the area at the date and time it did so I can safely assume that should I get an intrusion or smoke/CO trips, I will be getting those notices.
I am an engineer…not a programmer. But, I am learning.