Hallo zusammen,
ich möchte hier meine 2. Automation machen.
-Tasmona Lesekopf am Zähler (tasmota_lesekopf_sml_curr_w)
-Tasmona Steckdose mit Verbaucher (stecker_3)
Ich schaffe es nicht das der Stecker 3 eingeschalten wird, wenn länger 5min mehr als 6000W am Zähler anliegen.
Hat einer ne Lösung für mich?
alias: Stecker 3 intelligente Steuerung basierend auf Leistung
description: ""
triggers:
- entity_id: sensor.tasmota_lesekopf_sml_curr_w
trigger: state
conditions: []
actions:
- variables:
sensor_wert: "{{ states('sensor.tasmota_lesekopf_sml_curr_w') | float }}"
stecker_status: "{{ states('switch.stecker_3') }}"
- choose:
- conditions:
- condition: template
value_template: "{{ sensor_wert > 6000 }}"
sequence:
- wait_template: "{{ states('sensor.tasmota_lesekopf_sml_curr_w') | float > 6000 }}"
timeout: "00:05:00"
continue_on_timeout: false
- condition: template
value_template: "{{ states('switch.stecker_3') != 'on' }}"
- target:
entity_id: switch.stecker_3
action: switch.turn_on
data: {}
- conditions:
- condition: template
value_template: "{{ sensor_wert < 4000 }}"
sequence:
- wait_template: "{{ states('sensor.tasmota_lesekopf_sml_curr_w') | float < 4000 }}"
timeout: "00:05:00"
continue_on_timeout: false
- condition: template
value_template: "{{ states('switch.stecker_3') != 'off' }}"
- action: switch.turn_off
data: {}
target:
entity_id: switch.stecker_3
mode: single
Tobi
by HarryP: Code-/Logzeilen formatiert (bitte immer in </> einbinden)