Living room motion light adjustments, close #149

This commit is contained in:
2023-09-25 21:28:01 -04:00
parent 37733e526a
commit 837e016d1a
2 changed files with 6 additions and 21 deletions

View File

@ -593,14 +593,7 @@ automation:
state: 'off' state: 'off'
action: action:
- choose: - choose:
- conditions: - conditions: "{{ (trigger.id == 'motion-on' and is_state('input_boolean.night_mode','on')) and (is_state('input_boolean.kallen_sleeping','on') or is_state('input_boolean.kallen_overnight','on')) }}"
- condition: and
conditions:
- condition: trigger
id: motion-on
- condition: state
entity_id: input_boolean.night_mode
state: 'on'
sequence: sequence:
- service: timer.cancel - service: timer.cancel
target: target:
@ -622,14 +615,7 @@ automation:
- input_select.dining_room_lamp_scenes - input_select.dining_room_lamp_scenes
data: data:
option: Adaptive option: Adaptive
- conditions: - conditions: "{{ (trigger.id == 'motion-off' and is_state('input_boolean.night_mode','on')) and (is_state('input_boolean.kallen_sleeping','on') or is_state('input_boolean.kallen_overnight','on')) }}"
- condition: and
conditions:
- condition: trigger
id: motion-off
- condition: state
entity_id: input_boolean.night_mode
state: 'on'
sequence: sequence:
- service: timer.start - service: timer.start
target: target:

View File

@ -471,14 +471,13 @@ automation:
title: "Kallen Location Alert" title: "Kallen Location Alert"
tag: kallen-dropoff tag: kallen-dropoff
- if: - if:
- condition: state - condition: template
entity_id: input_boolean.master_bedroom_sleeping value_template: "{{ is_state('input_boolean.master_bedroom_sleeping','on') and is_state('input_boolean.kallen_overnight','off') }}"
state: 'on'
then: then:
- service: light.turn_off - service: light.turn_off
target: target:
entity_id: light.living_room_lights entity_id:
initial_state: true - light.first_floor_lights
- id: kallen_left_school - id: kallen_left_school
alias: Kallen left School alias: Kallen left School