Custom messages for automations using device name?

I created an automation to monitor all my door sensors. Problem is, I have a generic message that says a door is open for more than 10 minutes but I don’t know what door is open. Is there any way to put a variable name for the device in the custom message so I know what door is open without having to create the same automation for each and every sensor with a custom message for that sensor?

1 Like