Witam niby banalne robiłem w/g szablonu ale nie gasi światła po zamknięciu drzwi.
O czym zapomniałem ?
alias: włącz światło zewnętrzne po otwarciu drzwi
description: ''
trigger:
- type: opened
platform: device
device_id: 588df9684d80b759f85835d2afc5232b
entity_id: binary_sensor.czujnik_otwarcia_drzwi_contact
domain: binary_sensor
condition:
- condition: sun
after: sunset
action:
- type: turn_on
device_id: 4e4699b396948b12be819827243a57be
entity_id: light.2320034624a160122f54
domain: light
brightness_pct: 100
- wait_for_trigger:
- type: not_opened
platform: device
device_id: 588df9684d80b759f85835d2afc5232b
entity_id: binary_sensor.czujnik_otwarcia_drzwi_contact
domain: binary_sensor
- platform: device
type: turned_off
device_id: 4e4699b396948b12be819827243a57be
entity_id: light.2320034624a160122f54
domain: light
mode: single