Tweak kitchen light conditions

This commit is contained in:
2020-05-03 15:48:21 +03:00
parent cf611f6cc7
commit c0c0beafd0
2 changed files with 21 additions and 9 deletions

View File

@@ -8,13 +8,19 @@ automation:
condition: and
conditions:
- condition: state
entity_id: input_select.house_mode
# TODO: Look at outside visibility, not just sun state.
# Maybe turn on just the main lights during the day?
state: 'day'
entity_id: binary_sensor.georgi_home
state: "on"
- condition: state
entity_id: sun.sun
state: 'below_horizon'
entity_id: input_select.house_mode
state: 'day'
- condition: or
conditions:
- condition: sun
after: sunset
after_offset: "-01:00:00"
- condition: numeric_state
entity_id: sensor.dark_sky_cloud_coverage
above: 80
action:
- service: light.turn_on
entity_id:
@@ -46,8 +52,11 @@ automation:
entity_id: binary_sensor.motion_1_ias_zone
to: "on"
condition:
condition: template
value_template: "{{ not is_state('input_select.house_mode', 'day') }}"
- condition: template
value_template: "{{ not is_state('input_select.house_mode', 'day') }}"
- condition: state
entity_id: input_boolean.georgi_home
state: "on"
action:
- service: light.turn_on
entity_id: