Living room motion light adjustments, close #149
This commit is contained in:
@ -593,14 +593,7 @@ automation:
|
||||
state: 'off'
|
||||
action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: and
|
||||
conditions:
|
||||
- condition: trigger
|
||||
id: motion-on
|
||||
- condition: state
|
||||
entity_id: input_boolean.night_mode
|
||||
state: 'on'
|
||||
- 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')) }}"
|
||||
sequence:
|
||||
- service: timer.cancel
|
||||
target:
|
||||
@ -622,14 +615,7 @@ automation:
|
||||
- input_select.dining_room_lamp_scenes
|
||||
data:
|
||||
option: Adaptive
|
||||
- conditions:
|
||||
- condition: and
|
||||
conditions:
|
||||
- condition: trigger
|
||||
id: motion-off
|
||||
- condition: state
|
||||
entity_id: input_boolean.night_mode
|
||||
state: 'on'
|
||||
- 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')) }}"
|
||||
sequence:
|
||||
- service: timer.start
|
||||
target:
|
||||
|
@ -471,14 +471,13 @@ automation:
|
||||
title: "Kallen Location Alert"
|
||||
tag: kallen-dropoff
|
||||
- if:
|
||||
- condition: state
|
||||
entity_id: input_boolean.master_bedroom_sleeping
|
||||
state: 'on'
|
||||
- condition: template
|
||||
value_template: "{{ is_state('input_boolean.master_bedroom_sleeping','on') and is_state('input_boolean.kallen_overnight','off') }}"
|
||||
then:
|
||||
- service: light.turn_off
|
||||
target:
|
||||
entity_id: light.living_room_lights
|
||||
initial_state: true
|
||||
entity_id:
|
||||
- light.first_floor_lights
|
||||
|
||||
- id: kallen_left_school
|
||||
alias: Kallen left School
|
||||
|
Reference in New Issue
Block a user