Witajcie,
jak zrobić warunek, aby automat nie był wykonywany jeśli przyczyną stanu off gniazdka jest restart lub uruchomienie HA. W obecnym stanie akcja ma miejsce kiedy po restarcie gniazdko jest w stanie Off
trigger:
- platform: device
type: turned_off
device_id: 225f90e08b925bacc
entity_id: switch.gniazdo
domain: switch
id: akcjaoff
for:
hours: 0
minutes: 0
seconds: 10
condition: []
action:
- choose:
- conditions:
- condition: trigger
id: akcjaoff
sequence:
- service: cover.open_cover
data: {}
target:
device_id:
mode: single