HI,
using this automation:
- alias: Feest
id: 'Feest'
trigger:
platform: state
entity_id:
- sensor.birthday_f
- sensor.birthday_h
- sensor.birthday_louise
- sensor.birthday_marijn
- sensor.birthday_m
- sensor.birthday_w
- sensor.wedding_lovebirds
- sensor.met_lovebirds
condition:
condition: template
value_template: >
{{trigger.to_state.state|int in [0,1]}}
action:
- service: notify.notify
data_template:
title: >
{% set dag = trigger.to_state.state|int %}
{{'Morgen' if dag == 1 else 'Vandaag'}} is het Feest!
message: >
{% set dag = trigger.to_state.state|int %}
{{trigger.to_state.attributes.persoon}} {{'wordt morgen' if dag == 1 else 'is vandaag '}} {{trigger.to_state.attributes.years}} !
- condition: template
value_template: >
{{trigger.to_state.state|int == 0}}
- service: persistent_notification.create
data_template:
notification_id: celebration-notification
title: 'Vandaag is het Feest!'
message: >
{{trigger.to_state.attributes.persoon}} is vandaag {{trigger.to_state.attributes.years}} !
works perfectly fine, except for the 1 time more than 1 of the triggers trigger simultaneously. As it happens, there are 2 celebrations on the same day (today )ā¦ In that case it only creates a single persistent notification, while the regular notifications are effectively created for both events.
Why would this be, and, how can I change that for the persistent notification.