Hi!
Ich habe mir eine Automation erstellt, die mir, sollte ein Rauchmelder auslösen, eine Benachrichtigung schicken soll und alle Lichter einschalten soll. Nachdem wieder alle Rauchmelder auf normal zurückspringen, soll das Licht wieder so hergestellt werden, wie es vorm Brandalarm war.
Meine Automation führt alles aus, nur die Lichter werden nicht wieder zurückgestellt. Wo liegt hier der Fehler?
alias: Brandalarm
description: ""
triggers:
- type: smoke
device_id: 67ddabcf7acf58c5bdf956f4ec94d406
entity_id: a3e399da910c33ad2cf9c0f09a014c73
domain: binary_sensor
trigger: device
id: Schlafzimmer
- type: smoke
device_id: 2a3431f2f1e2b237736ffead0da0588c
entity_id: 47135182e83d33767dec7a651a2c9d4f
domain: binary_sensor
trigger: device
id: Kinderzimmer
- type: smoke
device_id: 80848d82f33421493c06872d912db3f7
entity_id: 502387a109c30d282875146064e678a2
domain: binary_sensor
trigger: device
id: Wohnzimmer
conditions: []
actions:
- choose:
- conditions:
- condition: trigger
id:
- Kinderzimmer
- Schlafzimmer
- Wohnzimmer
sequence:
- action: input_text.set_value
metadata: {}
data:
value: "{{ trigger.id }}"
target:
entity_id: input_text.helfer_rm_ausgeloest
- action: notify.mobile_app_iphone_17
metadata: {}
data:
title: BRANDALARM
message: >-
Rauchmelder im {{ states("input_text.helfer_rm_ausgeloest") }}
meldet FEUER!
- action: notify.mobile_app_iphone_von_sandra
metadata: {}
data:
title: BRANDALARM
message: >-
Rauchmelder im {{ states("input_text.helfer_rm_ausgeloest") }}
meldet FEUER!
- action: notify.mobile_app_xiaomi_14t_pro
metadata: {}
data:
title: BRANDALARM
message: >-
Rauchmelder im {{ states("input_text.helfer_rm_ausgeloest") }}
meldet FEUER!
data:
ttl: 0
priority: high
- action: notify.mobile_app_f8ultra
metadata: {}
data:
title: BRANDALARM
message: >-
Rauchmelder im {{ states("input_text.helfer_rm_ausgeloest") }}
meldet FEUER!
data:
ttl: 0
priority: high
- action: scene.create
metadata: {}
data:
scene_id: temp_rm_szene
snapshot_entities:
- switch.sonoff_100185959c
- light.tv_wz_licht
- switch.zb_plug_schreibtischlampe
- switch.sonoff_1001852159
- switch.sonoff_1001f6689c_1
- switch.sonoff_1001ebd643_1
- switch.sonoff_1001ebd643_2
- switch.sonoff_100104b760
- switch.sonoff_10017355e6
- switch.sonoff_100172c718
- switch.sonoff_100173199a
- switch.sonoff_100172b9e9
- switch.sonoff_100172c5d1
- switch.sonoff_100172e7bf
- switch.sonoff_100172d41b
- switch.sonoff_1001733c24
- light.zb_dim_panel
- light.bilderwand
- light.286dcd5c7572
- light.balkon
- light.wickellicht
- light.spot
- switch.zb_plug_vitrine
- switch.zb_plug_zb_plug_spiegel
- light.bad_licht
- light.babylicht_lightbulb
- switch.nachtlicht_steckdose_1
- switch.tischlampe_steckdose_1
- action: homeassistant.turn_on
metadata: {}
data: {}
target:
entity_id: group.lichter
- wait_for_trigger:
- trigger: state
entity_id:
- binary_sensor.zb_rm_kizi_smoke
- binary_sensor.zb_rm_sz_smoke
- binary_sensor.zb_rm_wz_smoke
to:
- "off"
- action: scene.turn_on
metadata: {}
data: {}
target:
entity_id: scene.temp_rm_szene
- action: scene.delete
metadata: {}
data: {}
target:
entity_id: scene.temp_rm_szene
mode: single
Danke für die Hilfe!