Hi all, sorry if this has been previously covered. I couldn’t find anything on it. If it has, feel free to direct me.
I have the following automation:
My purpose is to send notifications to the companion app when my garage door is open. Some of the entities aren’t the final ones because I’m still testing it. Also, I’m really new to the native HA automation system, so this may not be the most elegant way of doing things.
I’ve got the automation working the way I want it for the most part, but I noticed that I can get context information from an event I’m watching that is triggered from a notification sent to the companion app. I’d like to add that information to my “Garage Door Notifications have been disabled by {{trigger.event.context}}” message. I’ve already taken a stab at that as you can see, but I’m only getting the user ID information, which obviously isn’t “human readable”. It just comes through as
"Garage Door Notifications have been disabled by Context(user_id='<long string of numbers/letters>........"
I would like to change this to show just the name of the user. For example:
"Garage Door Notifications have been disabled by <My name>."
I’m pretty sure this can be done using if then statements in a template at minimum, I’m just not very good with the templating system and I’m hoping there is a more elegant way. Any thoughts?