|
@@ -18,6 +18,7 @@ input_boolean:
|
|
|
ext_light_on_done:
|
|
|
name: Bool switch, Ext light turned ON
|
|
|
icon: mdi:car
|
|
|
+
|
|
|
ext_light_off_done:
|
|
|
name: Bool switch, Ext light turned OFF
|
|
|
icon: mdi:car
|
|
@@ -28,11 +29,16 @@ automation:
|
|
|
trigger:
|
|
|
- platform: numeric_state
|
|
|
entity_id: sensor.lux_outside_the_garage
|
|
|
- below: '100'
|
|
|
+ below: 100
|
|
|
condition:
|
|
|
- - condition: state
|
|
|
- entity_id: input_boolean.ext_light_on_done
|
|
|
- state: 'off'
|
|
|
+ condition: and
|
|
|
+ conditions:
|
|
|
+ - condition: state
|
|
|
+ entity_id: input_boolean.ext_light_on_done
|
|
|
+ state: 'off'
|
|
|
+ - condition: state
|
|
|
+ entity_id: light.exterior_lights
|
|
|
+ state: 'off'
|
|
|
action:
|
|
|
- service: light.turn_on
|
|
|
data: {}
|
|
@@ -51,11 +57,16 @@ automation:
|
|
|
trigger:
|
|
|
- platform: numeric_state
|
|
|
entity_id: sensor.lux_outside_the_garage
|
|
|
- above: '50'
|
|
|
+ above: 50
|
|
|
condition:
|
|
|
- - condition: state
|
|
|
- entity_id: input_boolean.ext_light_off_done
|
|
|
- state: 'off'
|
|
|
+ condition: and
|
|
|
+ conditions:
|
|
|
+ - condition: state
|
|
|
+ entity_id: input_boolean.ext_light_off_done
|
|
|
+ state: 'off'
|
|
|
+ - condition: state
|
|
|
+ entity_id: light.exterior_lights
|
|
|
+ state: 'on'
|
|
|
action:
|
|
|
- service: light.turn_off
|
|
|
data: {}
|