Moin,
ich habe mir eine kleine Automation erstellt die Anhand von Temperatur und Taupunkt einen Nebelwarnung aktiviert (Helfer wird von 0 auf 1 gesetzt)
Die Trigger hab ich im Entwicklungswerkzeug getestet - die Templates funktionieren. Aber die Aktion wird nicht ausgeführt. Kann da mal jemand draufschauen und mir helfen?
alias: Nebelwarnung
description: ""
triggers:
- value_template: >-
{% set temp = states('sensor.sonoff_snzb_02wd_garten_temperatur') | float
%}
{% set taupunkt = states('sensor.taupunkt') | float %}
{{ temp <= (taupunkt + 1) }}
trigger: template
id: nebel_on
- trigger: template
value_template: >-
{% set temp = states('sensor.sonoff_snzb_02wd_garten_temperatur') | float
%}
{% set taupunkt = states('sensor.taupunkt') | float %}
{{ temp >= (taupunkt + 1.5) }}
id: nebel_off
conditions: []
actions:
- choose:
- conditions:
- condition: trigger
id:
- nebel_on
sequence:
- action: number.set_value
target:
entity_id: input_number.nebel
data:
value: 1
- action: notify.mobile_app_sm_s926b
metadata: {}
data:
message: Achtung Nebel
importance: high
sticky: "true"
vibrationPattern: 100, 1000, 100, 1000, 100
persistent: true
timeout: 300
- conditions:
- condition: trigger
id:
- nebel_off
sequence:
- action: number.set_value
target:
entity_id: input_number.nebel
data:
value: "0"
mode: single
