Hey guys!
I have an automation that controls which doors/widows are left open when exiting the house. One of the actions sends a notification to the mobile with the list of these sensors.
service: notify.service_ng
data:
title: Angel Home PE
data:
subtitle: "Control de Salida:"
message: >-
The following doors or windows are open:
{{
expand('binary_sensor.exit_control_sensors')
| selectattr('attributes.device_class', 'defined')
| selectattr('attributes.device_class', 'in', '[door, window]')
| selectattr('state', 'eq', 'on')
| map(attribute='attributes.friendly_name')
| list
}}
The list of the notification looks a bit ugly:
[ ‘sensor1’, ‘sensor2’,…]
The aim is to make it look nicer in the notification as in the example below:
• Sensor 1
• Sensor 2
• …
What should I change in the code to make it look like in the example above?
Thanks for any help.