Living room motion light adjustments, close #149
This commit is contained in:
@ -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:
|
||||||
|
@ -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
|
||||||
|
Reference in New Issue
Block a user