12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- input_boolean:
- exterior_lights_wanted_state:
- name: Exterior lights, wanted state
- icon: mdi:lightbulb
- 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
- automation:
- - alias: Exterior lights ON in evening
- description: In the evening, turn the lights ON
- trigger:
- - platform: numeric_state
- entity_id: sensor.lux_outside_the_garage
- below: 100
- condition:
- condition: and
- conditions:
- - condition: state
- entity_id: input_boolean.ext_light_on_done
- state: 'off'
- - condition: state
- entity_id: input_boolean.exterior_lights_wanted_state
- state: 'off'
- action:
- - service: input_boolean.turn_on
- data: {}
- entity_id: input_boolean.exterior_lights_wanted_state
- - service: input_boolean.turn_on
- data: {}
- entity_id: input_boolean.ext_light_on_done
- mode: single
- - alias: Exterior lights OFF in morning
- description: ''
- trigger:
- - platform: numeric_state
- entity_id: sensor.lux_outside_the_garage
- above: 50
- condition:
- 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: input_boolean.turn_off
- data: {}
- entity_id: input_boolean.exterior_lights_wanted_state
- - service: input_boolean.turn_on
- data: {}
- entity_id: input_boolean.ext_light_off_done
- mode: single
- - alias: Turn boolean switches off at midnight
- description: ''
- trigger:
- - platform: time
- at: 00:05:00
- condition: []
- action:
- - service: input_boolean.turn_off
- data: {}
- entity_id: input_boolean.ext_light_off_done
- - service: input_boolean.turn_off
- data: {}
- entity_id: input_boolean.ext_light_on_done
- mode: single
|