Hi
Chilling with my HA settings just made simple computer led strips lights. I encountered a problem, namely everything works correctly, but when I add a condition, e.g. activation by time or light intensity, the light does not turn on. Everything works perfectly when there is no condition, just ON OFF, please tell me what I’m doing wrong?
triggers:
- type: occupied
device_id: ce59fee26432cbc31283255cefca7748
entity_id: e4f279ec167a76d184ade9b35e1b2582
domain: binary_sensor
trigger: device
- type: not_occupied
device_id: ce59fee26432cbc31283255cefca7748
entity_id: e4f279ec167a76d184ade9b35e1b2582
domain: binary_sensor
trigger: device
conditions:
- condition: time
after: "16:00:00"
before: "10:00:00"
weekday:
- mon
- tue
- wed
- thu
- fri
- sat
- sun
actions:
- choose:
- conditions:
- condition: state
entity_id: binary_sensor.czujnik_obecnosci_patyk_occupancy
state: "on"
sequence:
- action: light.turn_on
metadata: {}
data:
kelvin: 3889
brightness_pct: 81
target:
entity_id: light.patyk
- conditions:
- condition: state
entity_id: binary_sensor.czujnik_obecnosci_patyk_occupancy
state: "off"
sequence:
- action: light.turn_off
metadata: {}
data: {}
target:
entity_id: light.patyk
mode: single