Skip to content

Instantly share code, notes, and snippets.

@Disane87
Created July 21, 2024 19:50
Show Gist options
  • Save Disane87/7cc904cd6680b0428483461cdf1f451e to your computer and use it in GitHub Desktop.
Save Disane87/7cc904cd6680b0428483461cdf1f451e to your computer and use it in GitHub Desktop.
DWD Weather warning HomeAssistant
alias: 🌊 Wetterwarnung DWD
description: ""
trigger:
- platform: numeric_state
entity_id: sensor.kreis_viersen_current_warning_level
above: 0
condition: []
action:
- service: notify.notify
data:
message: >-
{{ state_attr('sensor.kreis_viersen_current_warning_level',
'warning_1_description') }} Von: {{
as_timestamp(state_attr('sensor.kreis_viersen_current_warning_level',
'warning_1_start')) | timestamp_custom('%d.%m.%Y, %H:%M')}} Uhr Bis: {{
as_timestamp(state_attr('sensor.kreis_viersen_current_warning_level',
'warning_1_end')) | timestamp_custom('%d.%m.%Y, %H:%M')}} Uhr
title: >-
{{ state_attr('sensor.kreis_viersen_current_warning_level',
'warning_1_name') }} ⛈️
mode: single
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment