Fix conditional errors

This commit is contained in:
2025-10-10 16:52:49 -04:00
parent a259542870
commit d75325198f

View File

@@ -174,25 +174,24 @@ script:
then:
- if:
condition:
lambda: 'return id(light_is_holding);'
lambda: 'return !id(light_is_holding);'
then:
- stop:
- if:
condition:
- binary_sensor.is_on: supersensor_occupancy
- switch.is_on: enable_presence_led
then:
- light.turn_on:
id: output_led
brightness: 25%
red: 1
green: 1
blue: 1
transition_length: 1s
else:
- light.turn_off:
id: output_led
transition_length: 1s
- if:
condition:
- binary_sensor.is_on: supersensor_occupancy
- switch.is_on: enable_presence_led
then:
- light.turn_on:
id: output_led
brightness: 25%
red: 1
green: 1
blue: 1
transition_length: 1s
else:
- light.turn_off:
id: output_led
transition_length: 1s
- id: pir_handler
then: