mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
blue_room to boys_room
This commit is contained in:
@@ -5,16 +5,16 @@ mode: queued
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.front_door_contact
|
||||
to: 'on'
|
||||
to: "on"
|
||||
- platform: state
|
||||
entity_id: binary_sensor.garage_door
|
||||
to: 'on'
|
||||
to: "on"
|
||||
# - platform: state
|
||||
# entity_id: binary_sensor.outer_garage_door
|
||||
# to: 'on'
|
||||
- platform: state
|
||||
entity_id: binary_sensor.outer_garage_door_contact
|
||||
to: 'on'
|
||||
to: "on"
|
||||
# People just got home
|
||||
- platform: state
|
||||
entity_id:
|
||||
@@ -26,7 +26,7 @@ trigger:
|
||||
- input_select.tess_status_dropdown
|
||||
- input_select.ebin_status_dropdown
|
||||
- input_select.guest_status_dropdown
|
||||
to: 'Just Arrived'
|
||||
to: "Just Arrived"
|
||||
# Should also include some travel time magic here
|
||||
# Basically, travel time < 15 for 10 minutes, travelling towards home
|
||||
condition:
|
||||
@@ -35,7 +35,7 @@ condition:
|
||||
# Lighting automations are enabled
|
||||
- condition: state
|
||||
entity_id: input_boolean.lighting_automations
|
||||
state: 'on'
|
||||
state: "on"
|
||||
# It's getting dark
|
||||
- condition: numeric_state
|
||||
entity_id: sensor.bar_light_level
|
||||
@@ -43,40 +43,40 @@ condition:
|
||||
# Somebody is nearly home, or just arrived
|
||||
- condition: or
|
||||
conditions:
|
||||
# Front door is open, somebody is nearly home or just arrived
|
||||
- condition: state
|
||||
entity_id: binary_sensor.front_door_contact
|
||||
state: 'on'
|
||||
- condition: state
|
||||
entity_id: binary_sensor.garage_door
|
||||
state: 'on'
|
||||
# - condition: state
|
||||
# entity_id: binary_sensor.outer_garage_door
|
||||
# state: 'on'
|
||||
- condition: state
|
||||
entity_id: binary_sensor.outer_garage_door_contact
|
||||
state: 'on'
|
||||
# Or somebody has just arrived
|
||||
- condition: template
|
||||
value_template: "{{ is_state('input_select.clint_status_dropdown','Just Arrived') }}"
|
||||
- condition: template
|
||||
value_template: "{{ is_state('input_select.emmett_status_dropdown','Just Arrived') }}"
|
||||
- condition: template
|
||||
value_template: "{{ is_state('input_select.bridget_status_dropdown','Just Arrived') }}"
|
||||
- condition: template
|
||||
value_template: "{{ is_state('input_select.kristy_status_dropdown','Just Arrived') }}"
|
||||
- condition: template
|
||||
value_template: "{{ is_state('input_select.marshall_status_dropdown','Just Arrived') }}"
|
||||
- condition: template
|
||||
value_template: "{{ is_state('input_select.tess_status_dropdown','Just Arrived') }}"
|
||||
- condition: template
|
||||
value_template: "{{ is_state('input_select.ebin_status_dropdown','Just Arrived') }}"
|
||||
- condition: template
|
||||
value_template: "{{ is_state('input_select.guest_status_dropdown','Just Arrived') }}"
|
||||
# Front door is open, somebody is nearly home or just arrived
|
||||
- condition: state
|
||||
entity_id: binary_sensor.front_door_contact
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: binary_sensor.garage_door
|
||||
state: "on"
|
||||
# - condition: state
|
||||
# entity_id: binary_sensor.outer_garage_door
|
||||
# state: 'on'
|
||||
- condition: state
|
||||
entity_id: binary_sensor.outer_garage_door_contact
|
||||
state: "on"
|
||||
# Or somebody has just arrived
|
||||
- condition: template
|
||||
value_template: "{{ is_state('input_select.clint_status_dropdown','Just Arrived') }}"
|
||||
- condition: template
|
||||
value_template: "{{ is_state('input_select.emmett_status_dropdown','Just Arrived') }}"
|
||||
- condition: template
|
||||
value_template: "{{ is_state('input_select.bridget_status_dropdown','Just Arrived') }}"
|
||||
- condition: template
|
||||
value_template: "{{ is_state('input_select.kristy_status_dropdown','Just Arrived') }}"
|
||||
- condition: template
|
||||
value_template: "{{ is_state('input_select.marshall_status_dropdown','Just Arrived') }}"
|
||||
- condition: template
|
||||
value_template: "{{ is_state('input_select.tess_status_dropdown','Just Arrived') }}"
|
||||
- condition: template
|
||||
value_template: "{{ is_state('input_select.ebin_status_dropdown','Just Arrived') }}"
|
||||
- condition: template
|
||||
value_template: "{{ is_state('input_select.guest_status_dropdown','Just Arrived') }}"
|
||||
action:
|
||||
- service: logbook.log
|
||||
- action: logbook.log
|
||||
data_template:
|
||||
name: Returned Home
|
||||
entity_id: automation.returned_home
|
||||
message: >
|
||||
Returned Home ran
|
||||
Returned Home ran
|
||||
|
||||
Reference in New Issue
Block a user