Hallo,
ich habe eine Automatisierung erstellt, die eine Steckdose abschaltet, wenn in einem bestimmten Zeitraum die Leitung an der Dose unter 8W liegt.
Die Automatisierung funktioniert aber nur sporadisch, obwohl die Leistung an der Dose unter 8W liegt:
Code: Alles auswählen
alias: "Energiesparen: Schreibtisch aus"
description: Schreibtisch aus wenn Verbrauch unter 8 Watt nach 20:00 Uhr
trigger:
- below: 8
entity_id: sensor.shellyplugs_3_power
for:
hours: 0
minutes: 30
seconds: 0
platform: numeric_state
- platform: time
id: 600Uhr
at: "06:00:00"
- platform: state
entity_id:
- input_boolean.urlaub
to: "off"
id: Urlaub aus
condition: []
action:
- choose:
- conditions:
- condition: time
after: "20:00:00"
before: "03:00:00"
weekday:
- mon
- tue
- wed
- thu
- fri
- sat
- sun
- condition: numeric_state
entity_id: sensor.shellyplugs_3_power
below: 8
- condition: state
entity_id: switch.shellyplugs_3
state: "on"
sequence:
- type: turn_off
device_id: 047c93d9b6168f3257b340308c0ede00
entity_id: switch.shellyplugs_3
domain: switch
- conditions:
- condition: trigger
id: 600Uhr
- condition: device
type: is_off
device_id: 047c93d9b6168f3257b340308c0ede00
entity_id: switch.shellyplugs_3
domain: switch
- condition: state
entity_id: input_boolean.urlaub
state: "off"
sequence:
- type: turn_on
device_id: 047c93d9b6168f3257b340308c0ede00
entity_id: switch.shellyplugs_3
domain: switch
- conditions:
- condition: trigger
id: Urlaub aus
sequence:
- type: turn_on
device_id: 047c93d9b6168f3257b340308c0ede00
entity_id: switch.shellyplugs_3
domain: switch
mode: single
Ich denke, es liegt daran, dass manchmal schon weit vor 20:00 die Leistung für 30 min. unter 8 Watt lag und die Automatisierung daher nicht mehr ausgeführt wird - der Trigger ist halt schon "vorbei". Korrekt?
Wie kann ich so etwas abfangen?
Viele Grüße
Jens