Ich habe eine Steuerung der Ablufthaube in der Küche die auch funktioniert. Sobald der 2. Kamin an ist, schaltet die Steckdose der Abzugshaube aus.
Wenn ich jetzt aber das Fenster öffne, wird die Steckdose nicht wieder aktiviert. Wo habe ich da den Fehler drin?
alias: Temperaturbasierte Abluftsteuerung
triggers:
- entity_id: sensor.temperatur_ofenrohr_kamin
above: 40
trigger: numeric_state
- entity_id: sensor.temperatur_ofenrohr_kamin
below: 40
trigger: numeric_state
conditions:
- condition: state
entity_id: binary_sensor.fenstersensor_kuche_contact
state: "off"
actions:
- choose:
- conditions:
- condition: numeric_state
entity_id: sensor.temperatur_ofenrohr_kamin
above: 40
sequence:
- action: switch.turn_off
data: {}
target:
entity_id: switch.steckdose_dunstabzug_kuche
- conditions:
- condition: numeric_state
entity_id: sensor.temperatur_ofenrohr_kamin
below: 40
sequence:
- action: switch.turn_on
data: {}
target:
entity_id: switch.steckdose_dunstabzug_kuche
So klappt es jetzt. Ich hoffe da ist kein Fehler drin:
alias: Temperaturbasierte Abluftsteuerung
triggers:
- entity_id: sensor.temperatur_ofenrohr_kamin
above: 40
trigger: numeric_state
- entity_id: sensor.temperatur_ofenrohr_kamin
below: 40
trigger: numeric_state
- entity_id: binary_sensor.fenstersensor_kuche_contact
from: "off"
to: "on"
trigger: state
- entity_id: binary_sensor.fenstersensor_kuche_contact
from: "on"
to: "off"
trigger: state
conditions: []
action:
- choose:
- conditions:
- condition: numeric_state
entity_id: sensor.temperatur_ofenrohr_kamin
above: 40
- condition: state
entity_id: binary_sensor.fenstersensor_kuche_contact
state: "off"
sequence:
- service: switch.turn_off
target:
entity_id: switch.steckdose_dunstabzug_kuche
- conditions:
- condition: numeric_state
entity_id: sensor.temperatur_ofenrohr_kamin
below: 40
sequence:
- service: switch.turn_on
target:
entity_id: switch.steckdose_dunstabzug_kuche
- conditions:
- condition: state
entity_id: binary_sensor.fenstersensor_kuche_contact
state: "on"
sequence:
- service: switch.turn_on
target:
entity_id: switch.steckdose_dunstabzug_kuche
- conditions:
- condition: state
entity_id: binary_sensor.fenstersensor_kuche_contact
state: "off"
- condition: numeric_state
entity_id: sensor.temperatur_ofenrohr_kamin
above: 40
sequence:
- service: switch.turn_off
target:
entity_id: switch.steckdose_dunstabzug_kuche