If you want a trigger on an increase but not decrease you could do this:
- trigger:
- platform: state
entity_id: sensor.dwd_current_active_warnings
to:
condition:
condition: template
value_template: "{{ trigger.to_state.state|int(0) - trigger.from_state.state|int(0) > 0 }}"
action:
- ...