I do not see any errors, also in my case notifications are not triggered every 15 minutes.
You can replace my condition by checking particular attributes if they are changed.
Example
condition: template
alias: Warnung änderungen prüfen
value_template: >-
{{ trigger.from_state.attributes["warning_" ~ repeat.index]["event"]
!= trigger.to_state.attributes["warning_" ~ repeat.index]["event"] }}
In this example, notification will be only be sent out, for example if “FROST” is changed into “GLÄTTE”.
Of course you can add ‘or’ condition and check multiple attributes.
Are you sure that notifications are sent to your mobile device every 15 minutes?
Just received another notification after turning the automation on:
this:
entity_id: automation.sicherung_notify_weather_warning
state: 'on'
attributes:
id: '1739637206930'
last_triggered: '2025-03-01T13:12:29.729219+00:00'
mode: queued
current: 0
max: 10
friendly_name: 'Backup Notify: Weather warning'
last_changed: '2025-03-01T12:59:10.956552+00:00'
last_reported: '2025-03-01T13:12:29.731175+00:00'
last_updated: '2025-03-01T13:12:29.731175+00:00'
context:
id: 01JN8XCF91RXY0CB84EYDG7AZK
parent_id: 01JN8XCF9024QRH1G52VP3W63G
user_id: null
trigger:
id: '0'
idx: '0'
alias: null
platform: state
entity_id: sensor.kreis_sudliche_weinstrasse_aktuelle_warnstufe
from_state:
entity_id: sensor.kreis_sudliche_weinstrasse_aktuelle_warnstufe
state: '1'
attributes:
region_name: Kreis Südliche Weinstraße
region_id: 107337000
last_update: '2025-03-01T12:59:08.842000+00:00'
warning_count: 2
warning_1_name: FROST
warning_1_type: 22
warning_1_level: 1
warning_1_headline: Amtliche WARNUNG vor FROST
warning_1_description: Es tritt leichter Frost zwischen 0 °C und -3 °C auf.
warning_1_instruction: "Hinweis auf \n\_·\_mögliche Frostschäden\n\nHandlungsempfehlungen: \n\_·\_ggf. Frostschutzmaßnahmen ergreifen"
warning_1_start: '2025-03-01T19:00:00+00:00'
warning_1_end: '2025-03-02T08:00:00+00:00'
warning_1_parameters:
Lufttemperatur: 0 - -3 [°C]
warning_1_color: '#ffeb3b'
warning_1:
start_time: '2025-03-01T19:00:00+00:00'
end_time: '2025-03-02T08:00:00+00:00'
event: FROST
event_code: 22
headline: Amtliche WARNUNG vor FROST
description: Es tritt leichter Frost zwischen 0 °C und -3 °C auf.
instruction: "Hinweis auf \n\_·\_mögliche Frostschäden\n\nHandlungsempfehlungen: \n\_·\_ggf. Frostschutzmaßnahmen ergreifen"
urgency: immediate
level: 1
parameters:
Lufttemperatur: 0 - -3 [°C]
color: '#ffeb3b'
warning_2_name: GLÄTTE
warning_2_type: 84
warning_2_level: 1
warning_2_headline: Amtliche WARNUNG vor GLÄTTE
warning_2_description: Es besteht oberhalb 400 m Glättegefahr.
warning_2_instruction: "Hinweis auf \n\_·\_Rutschgefahr\n\nHandlungsempfehlungen: \n\_·\_Verhalten im Straßenverkehr anpassen"
warning_2_start: '2025-03-01T23:00:00+00:00'
warning_2_end: '2025-03-02T08:00:00+00:00'
warning_2_parameters: null
warning_2_color: '#ffeb3b'
warning_2:
start_time: '2025-03-01T23:00:00+00:00'
end_time: '2025-03-02T08:00:00+00:00'
event: GLÄTTE
event_code: 84
headline: Amtliche WARNUNG vor GLÄTTE
description: Es besteht oberhalb 400 m Glättegefahr.
instruction: "Hinweis auf \n\_·\_Rutschgefahr\n\nHandlungsempfehlungen: \n\_·\_Verhalten im Straßenverkehr anpassen"
urgency: immediate
level: 1
parameters: null
color: '#ffeb3b'
attribution: Data provided by DWD
friendly_name: Kreis Südliche Weinstraße Aktuelle Warnstufe
last_changed: '2025-03-01T12:59:09.774760+00:00'
last_reported: '2025-03-01T12:59:09.774760+00:00'
last_updated: '2025-03-01T12:59:09.774760+00:00'
context:
id: 01JN8WM22EXZV92X5ZH6KCMP2P
parent_id: null
user_id: null
to_state:
entity_id: sensor.kreis_sudliche_weinstrasse_aktuelle_warnstufe
state: '1'
attributes:
region_name: Kreis Südliche Weinstraße
region_id: 107337000
last_update: '2025-03-01T13:14:09.596000+00:00'
warning_count: 2
warning_1_name: FROST
warning_1_type: 22
warning_1_level: 1
warning_1_headline: Amtliche WARNUNG vor FROST
warning_1_description: Es tritt leichter Frost zwischen 0 °C und -3 °C auf.
warning_1_instruction: "Hinweis auf \n\_·\_mögliche Frostschäden\n\nHandlungsempfehlungen: \n\_·\_ggf. Frostschutzmaßnahmen ergreifen"
warning_1_start: '2025-03-01T19:00:00+00:00'
warning_1_end: '2025-03-02T08:00:00+00:00'
warning_1_parameters:
Lufttemperatur: 0 - -3 [°C]
warning_1_color: '#ffeb3b'
warning_1:
start_time: '2025-03-01T19:00:00+00:00'
end_time: '2025-03-02T08:00:00+00:00'
event: FROST
event_code: 22
headline: Amtliche WARNUNG vor FROST
description: Es tritt leichter Frost zwischen 0 °C und -3 °C auf.
instruction: "Hinweis auf \n\_·\_mögliche Frostschäden\n\nHandlungsempfehlungen: \n\_·\_ggf. Frostschutzmaßnahmen ergreifen"
urgency: immediate
level: 1
parameters:
Lufttemperatur: 0 - -3 [°C]
color: '#ffeb3b'
warning_2_name: GLÄTTE
warning_2_type: 84
warning_2_level: 1
warning_2_headline: Amtliche WARNUNG vor GLÄTTE
warning_2_description: Es besteht oberhalb 400 m Glättegefahr.
warning_2_instruction: "Hinweis auf \n\_·\_Rutschgefahr\n\nHandlungsempfehlungen: \n\_·\_Verhalten im Straßenverkehr anpassen"
warning_2_start: '2025-03-01T23:00:00+00:00'
warning_2_end: '2025-03-02T08:00:00+00:00'
warning_2_parameters: null
warning_2_color: '#ffeb3b'
warning_2:
start_time: '2025-03-01T23:00:00+00:00'
end_time: '2025-03-02T08:00:00+00:00'
event: GLÄTTE
event_code: 84
headline: Amtliche WARNUNG vor GLÄTTE
description: Es besteht oberhalb 400 m Glättegefahr.
instruction: "Hinweis auf \n\_·\_Rutschgefahr\n\nHandlungsempfehlungen: \n\_·\_Verhalten im Straßenverkehr anpassen"
urgency: immediate
level: 1
parameters: null
color: '#ffeb3b'
attribution: Data provided by DWD
friendly_name: Kreis Südliche Weinstraße Aktuelle Warnstufe
last_changed: '2025-03-01T12:59:09.774760+00:00'
last_reported: '2025-03-01T13:14:09.638052+00:00'
last_updated: '2025-03-01T13:14:09.638052+00:00'
context:
id: 01JN8XFGV67ZXEQSMV6920MP3H
parent_id: null
user_id: null
for: null
attribute: null
description: state of sensor.kreis_sudliche_weinstrasse_aktuelle_warnstufe
I will try to change the condition and compare it to the code @dominik4545 has used. I have completely lost track of where I have to look for errors in which section of the code…but thank you for your help so far!
Quick update: seems like the weather warning with conditions from @dominik4545 work best in my case. The code from @alanmilinovic certainly makes sense for many, but in my case it was perhaps too demanding to function. User errors on my part have certainly also played a greater role. Anyways, thx guys for helping out and having so much patience with me 
1 Like