mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
Too much stuff at once, but who cares
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
alias: Bridget Awake
|
||||
id: automation_bridget_awake
|
||||
mode: restart
|
||||
#description:
|
||||
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: input_boolean.bridget_in_bed
|
||||
to: "off"
|
||||
for: "00:05:00"
|
||||
action:
|
||||
- action: input_boolean.turn_on
|
||||
entity_id: input_boolean.bridget_is_awake
|
||||
|
||||
- action: script.turn_on
|
||||
entity_id: script.bridget_travel_sensor
|
||||
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.girls_room_asleep
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: binary_sensor.nursery_occupied
|
||||
state: "off"
|
||||
sequence:
|
||||
- action: input_boolean.turn_on
|
||||
entity_id:
|
||||
- input_boolean.bridget_in_bed
|
||||
|
||||
- action: input_boolean.turn_on
|
||||
entity_id:
|
||||
- input_boolean.bridget_is_awake
|
||||
@@ -18,7 +18,5 @@ condition:
|
||||
entity_id: binary_sensor.bridget_home
|
||||
state: "on"
|
||||
action:
|
||||
- action: input_boolean.turn_off
|
||||
entity_id: input_boolean.bridget_travelling
|
||||
- action: input_boolean.turn_on
|
||||
entity_id: input_boolean.bridget_home
|
||||
|
||||
@@ -6,6 +6,7 @@ mode: restart
|
||||
trigger:
|
||||
- trigger: homeassistant
|
||||
event: start
|
||||
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: input_boolean.bridget_home
|
||||
|
||||
@@ -48,8 +48,6 @@ action:
|
||||
- condition: trigger
|
||||
id: "car_home"
|
||||
sequence:
|
||||
- action: input_boolean.turn_off
|
||||
entity_id: input_boolean.clint_travelling
|
||||
- action: input_boolean.turn_on
|
||||
entity_id: input_boolean.clint_home
|
||||
- action: automation.turn_on
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
initial_state: "off"
|
||||
alias: "clint home after work"
|
||||
id: automation_home_after_work
|
||||
#description:
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: device_tracker.pixel_7
|
||||
to: "home"
|
||||
for:
|
||||
minutes: 10
|
||||
condition:
|
||||
condition: and
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.notify_clint_work
|
||||
state: "on"
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: time
|
||||
after: "15:00:00"
|
||||
weekday:
|
||||
- mon
|
||||
- tue
|
||||
- wed
|
||||
- thu
|
||||
- fri
|
||||
action:
|
||||
- action: homeassistant.turn_off
|
||||
entity_id: automation.clint_home_after_work
|
||||
@@ -32,8 +32,8 @@ trigger:
|
||||
entity_id: sensor.pixel_7_charger_type
|
||||
to: "wireless"
|
||||
- platform: state
|
||||
entity_id: input_boolean.clint_tablet_charging
|
||||
to: "on"
|
||||
entity_id: sensor.dreamsurface_dreamsurface_battery_powerline_status
|
||||
to: "Online"
|
||||
condition:
|
||||
- alias: "An adult is home and not in bed"
|
||||
condition: or
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
alias: Clint Travelling
|
||||
id: automation_clint_travelling
|
||||
initial_state: "on"
|
||||
#description:
|
||||
trigger:
|
||||
- platform: homeassistant
|
||||
event: start
|
||||
- platform: time
|
||||
at: "21:00:00"
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: input_boolean.clint_home
|
||||
state: "off"
|
||||
action:
|
||||
- action: input_boolean.turn_on
|
||||
entity_id: input_boolean.clint_travelling
|
||||
@@ -21,7 +21,7 @@ action:
|
||||
|
||||
- action: media_player.volume_set
|
||||
data:
|
||||
entity_id: media_player.master_bedroom_clock
|
||||
entity_id: media_player.home_assistant_voice_097b44_media_player
|
||||
volume_level: 0.50
|
||||
|
||||
- choose:
|
||||
|
||||
@@ -19,7 +19,5 @@ condition:
|
||||
entity_id: person.kristy
|
||||
state: "home"
|
||||
action:
|
||||
- action: input_boolean.turn_off
|
||||
entity_id: input_boolean.ebin_travelling
|
||||
- action: input_boolean.turn_on
|
||||
entity_id: input_boolean.ebin_home
|
||||
|
||||
@@ -2,16 +2,16 @@ alias: Emmett Asleep
|
||||
id: automation_emmett_asleep
|
||||
mode: restart
|
||||
|
||||
trigger:
|
||||
- platform: state
|
||||
triggers:
|
||||
- trigger: state
|
||||
id: in_bed
|
||||
entity_id: input_boolean.emmett_in_bed
|
||||
to: "on"
|
||||
for: "00:20:00"
|
||||
- platform: homeassistant
|
||||
- trigger: homeassistant
|
||||
event: start
|
||||
|
||||
condition:
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id:
|
||||
- input_boolean.emmett_home
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
alias: Emmett Awake
|
||||
id: automation_emmett_awake
|
||||
mode: restart
|
||||
#description:
|
||||
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: input_boolean.emmett_in_bed
|
||||
to: "off"
|
||||
for: "00:00:30"
|
||||
|
||||
action:
|
||||
- action: input_boolean.turn_on
|
||||
entity_id: input_boolean.emmett_is_awake
|
||||
|
||||
- action: script.turn_on
|
||||
entity_id: script.emmett_travel_sensor
|
||||
@@ -16,7 +16,5 @@ condition:
|
||||
entity_id: binary_sensor.emmett_home
|
||||
state: "on"
|
||||
action:
|
||||
- action: input_boolean.turn_off
|
||||
entity_id: input_boolean.emmett_travelling
|
||||
- action: input_boolean.turn_on
|
||||
entity_id: input_boolean.emmett_home
|
||||
|
||||
@@ -28,9 +28,6 @@ condition:
|
||||
value_template: "{{ dict((states|selectattr('entity_id', 'in', state_attr('group.person_kristy', 'entity_id'))|list)|groupby('state'))['home']|count }}"
|
||||
|
||||
action:
|
||||
- action: input_boolean.turn_off
|
||||
entity_id: input_boolean.kristy_travelling
|
||||
|
||||
- action: input_boolean.turn_on
|
||||
entity_id: input_boolean.kristy_home
|
||||
|
||||
|
||||
@@ -28,7 +28,5 @@ condition:
|
||||
value_template: "{{ dict((states|selectattr('entity_id', 'in', state_attr('group.person_marshall', 'entity_id'))|list)|groupby('state'))['home']|count }}"
|
||||
|
||||
action:
|
||||
- action: input_boolean.turn_off
|
||||
entity_id: input_boolean.marshall_travelling
|
||||
- action: input_boolean.turn_on
|
||||
entity_id: input_boolean.marshall_home
|
||||
|
||||
@@ -18,7 +18,5 @@ condition:
|
||||
above: 0
|
||||
value_template: "{{ dict((states|selectattr('entity_id', 'in', state_attr('group.person_tess', 'entity_id'))|list)|groupby('state'))['home']|count }}"
|
||||
action:
|
||||
- action: input_boolean.turn_off
|
||||
entity_id: input_boolean.tess_travelling
|
||||
- action: input_boolean.turn_on
|
||||
entity_id: input_boolean.tess_home
|
||||
|
||||
@@ -53,15 +53,15 @@ action:
|
||||
entity_id: input_select.master_bedroom_mode
|
||||
data:
|
||||
option: Nightlight
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.patio_door_contact
|
||||
state: "off"
|
||||
sequence:
|
||||
- action: lock.lock
|
||||
target:
|
||||
entity_id: lock.patio_door
|
||||
# - choose:
|
||||
# - conditions:
|
||||
# - condition: state
|
||||
# entity_id: binary_sensor.patio_door_contact
|
||||
# state: "off"
|
||||
# sequence:
|
||||
# - action: lock.lock
|
||||
# target:
|
||||
# entity_id: lock.patio_door
|
||||
|
||||
default:
|
||||
- action: input_boolean.turn_off
|
||||
|
||||
@@ -21,22 +21,16 @@ condition:
|
||||
state: "on"
|
||||
|
||||
action:
|
||||
- action: media_player.turn_on
|
||||
data_template:
|
||||
entity_id: media_player.master_bedroom_clock
|
||||
- action: media_player.volume_set
|
||||
data_template:
|
||||
volume_level: 0.30
|
||||
entity_id: media_player.master_bedroom_clock
|
||||
entity_id: media_player.home_assistant_voice_097b44_media_player
|
||||
- action: tts.speak
|
||||
target:
|
||||
entity_id: tts.google_translate_en_com
|
||||
data:
|
||||
media_player_entity_id: media_player.master_bedroom_clock
|
||||
media_player_entity_id: media_player.home_assistant_voice_097b44_media_player
|
||||
message: >-
|
||||
The following are open:
|
||||
{{ dict((states|selectattr('entity_id', 'in', state_attr('group.my_exterior_windows', 'entity_id') + state_attr('group.my_exterior_doors', 'entity_id'))|list)|groupby('state'))['on']|map(attribute='name')|list|join(', ') }}
|
||||
- delay: "00:01:00"
|
||||
- action: media_player.turn_off
|
||||
data:
|
||||
entity_id: media_player.master_bedroom_clock
|
||||
|
||||
|
||||
@@ -10,14 +10,6 @@ condition:
|
||||
state: "on"
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: and
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.emmett_in_bed
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: input_boolean.emmett_home
|
||||
state: "on"
|
||||
- condition: and
|
||||
conditions:
|
||||
- condition: state
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
alias: "Vacation"
|
||||
id: automation_vacation
|
||||
initial_state: "on"
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id:
|
||||
- input_boolean.clint_travelling
|
||||
- input_boolean.emmett_travelling
|
||||
- input_boolean.bridget_travelling
|
||||
to: "on"
|
||||
condition:
|
||||
condition: and
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.clint_travelling
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: input_boolean.emmett_travelling
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: input_boolean.bridget_travelling
|
||||
state: "on"
|
||||
action:
|
||||
- action: input_boolean.turn_on
|
||||
entity_id: input_boolean.vacation_mode
|
||||
@@ -1,25 +0,0 @@
|
||||
alias: "Vacation over"
|
||||
id: automation_vacation_over
|
||||
initial_state: "on"
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id:
|
||||
- input_boolean.clint_travelling
|
||||
- input_boolean.emmett_travelling
|
||||
- input_boolean.bridget_travelling
|
||||
to: "off"
|
||||
condition:
|
||||
condition: and
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.clint_travelling
|
||||
state: "off"
|
||||
- condition: state
|
||||
entity_id: input_boolean.emmett_travelling
|
||||
state: "off"
|
||||
- condition: state
|
||||
entity_id: input_boolean.bridget_travelling
|
||||
state: "off"
|
||||
action:
|
||||
- action: input_boolean.turn_off
|
||||
entity_id: input_boolean.vacation_mode
|
||||
Reference in New Issue
Block a user