Actionable notification with camera stream from doorbell

I have installed an ESP8266 with ESPHome on my front door. I have two relays to open the door and control the lights. Also I have built a circuit that gets signal from my doorbell and sends it to the ESP8266.
I want an automation that get triggered when the doorbell is pressed and send me an actionable notification to see who is on the door, and press a button to open the door and/or turn on the lights.
I came up with this automation.

I duplicated it to send the same notification on two devices and be able to disable each device I don’t want to receive that (for example if one person is not at home and doesn’t need to see who is on the door). Is there any way to achieve that with a single automation? (maybe with input booleans to enable the notifications on each device and create another automation that sets the state of these booleans based on zones)

I have created the binary sensor on esphome for my doorbell to turn off after 10” and the automation is in restart mode with 60” timeout in wait_for_trigger. This way if someone pushes the doorbell repeatedly I will receive a new notification at most every 10” and I have 60” to take action. Otherwise the notification is dismissed. Would you change anything on my automation?

If I turn on the lights the notification is disappearing and I can no longer open the door through the notification’s action. Is there a way to select an action and keep the notification still visible to select the second action later(open door)? If not could the notification and its actions remain active for a time period and perform the actions as many times as I need? I’m thinking a simpler solution to add a delay after the actionable notification and before clearing it but I don’t know how to call services to turn on switches without wait_for_trigger.

Also I get these warnings

	•	Error in 'choose' evaluation: In 'template' condition: UndefinedError: 'dict object' has no attribute 'event'
	•	Error in 'choose' evaluation: In 'template' condition: UndefinedError: 'None' has no attribute 'event'

What do they mean? The actions seem to work fine.