Fix conditional errors
This commit is contained in:
@@ -174,25 +174,24 @@ script:
|
|||||||
then:
|
then:
|
||||||
- if:
|
- if:
|
||||||
condition:
|
condition:
|
||||||
lambda: 'return id(light_is_holding);'
|
lambda: 'return !id(light_is_holding);'
|
||||||
then:
|
then:
|
||||||
- stop:
|
- if:
|
||||||
- if:
|
condition:
|
||||||
condition:
|
- binary_sensor.is_on: supersensor_occupancy
|
||||||
- binary_sensor.is_on: supersensor_occupancy
|
- switch.is_on: enable_presence_led
|
||||||
- switch.is_on: enable_presence_led
|
then:
|
||||||
then:
|
- light.turn_on:
|
||||||
- light.turn_on:
|
id: output_led
|
||||||
id: output_led
|
brightness: 25%
|
||||||
brightness: 25%
|
red: 1
|
||||||
red: 1
|
green: 1
|
||||||
green: 1
|
blue: 1
|
||||||
blue: 1
|
transition_length: 1s
|
||||||
transition_length: 1s
|
else:
|
||||||
else:
|
- light.turn_off:
|
||||||
- light.turn_off:
|
id: output_led
|
||||||
id: output_led
|
transition_length: 1s
|
||||||
transition_length: 1s
|
|
||||||
|
|
||||||
- id: pir_handler
|
- id: pir_handler
|
||||||
then:
|
then:
|
||||||
|
Reference in New Issue
Block a user