mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
Hopefully fixing master bed presence and cleaning up a lot of junk
This commit is contained in:
@@ -21,11 +21,6 @@ trigger:
|
||||
from: 'off'
|
||||
to: 'on'
|
||||
|
||||
- platform: state
|
||||
id: car_home
|
||||
entity_id:
|
||||
- device_tracker.chevrolet_traverse_location
|
||||
to: 'home'
|
||||
|
||||
- platform: homeassistant
|
||||
event: start
|
||||
|
||||
@@ -5,7 +5,7 @@ id: automation_clint_in_bed
|
||||
trigger:
|
||||
# Bed in master bedroom is occupied
|
||||
- platform: state
|
||||
entity_id: input_boolean.master_bed_occupied
|
||||
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_right
|
||||
to: 'on'
|
||||
# Radio playing
|
||||
- platform: state
|
||||
|
||||
@@ -10,7 +10,7 @@ trigger:
|
||||
entity_id: media_player.great_room
|
||||
to: 'idle'
|
||||
- platform: state
|
||||
entity_id: input_boolean.master_bed_occupied
|
||||
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_right
|
||||
to: 'off'
|
||||
for: '00:05:00'
|
||||
- platform: state
|
||||
@@ -36,7 +36,7 @@ condition:
|
||||
after: '04:00:00'
|
||||
before: '22:00:00'
|
||||
- condition: state
|
||||
entity_id: input_boolean.master_bed_occupied
|
||||
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_right
|
||||
state: 'off'
|
||||
for: '00:01:00'
|
||||
action:
|
||||
|
||||
@@ -8,7 +8,7 @@ trigger:
|
||||
entity_id: binary_sensor.morning
|
||||
to: 'on'
|
||||
- platform: state
|
||||
entity_id: input_boolean.master_bed_occupied
|
||||
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_right
|
||||
to: 'on'
|
||||
|
||||
condition:
|
||||
@@ -16,7 +16,7 @@ condition:
|
||||
entity_id: input_boolean.clint_home
|
||||
state: 'on'
|
||||
- condition: state
|
||||
entity_id: input_boolean.master_bed_occupied
|
||||
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_right
|
||||
state: 'on'
|
||||
- condition: state
|
||||
entity_id: binary_sensor.morning
|
||||
|
||||
@@ -4,7 +4,7 @@ id: automation_kristy_in_bed
|
||||
trigger:
|
||||
# Bed in master bedroom is occupied
|
||||
- platform: state
|
||||
entity_id: input_boolean.master_bed_occupied
|
||||
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_left
|
||||
to: 'on'
|
||||
# Radio playing
|
||||
- platform: state
|
||||
@@ -31,7 +31,7 @@ condition:
|
||||
|
||||
- alias: "The bed is occupied"
|
||||
condition: state
|
||||
entity_id: input_boolean.master_bed_occupied
|
||||
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_left
|
||||
state: 'on'
|
||||
action:
|
||||
- service: input_boolean.turn_on
|
||||
|
||||
@@ -11,7 +11,7 @@ trigger:
|
||||
- input_boolean.clint_is_awake
|
||||
- input_boolean.kristy_in_bed
|
||||
- input_boolean.kristy_is_awake
|
||||
- input_boolean.master_bed_occupied
|
||||
- binary_sensor.bed_presence_c175a4_bed_occupied_either
|
||||
|
||||
- platform: time
|
||||
id: wake_clint
|
||||
@@ -38,7 +38,7 @@ condition:
|
||||
- condition: trigger
|
||||
id: wake_clint
|
||||
- condition: state
|
||||
entity_id: input_boolean.master_bed_occupied
|
||||
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_either
|
||||
state: 'off'
|
||||
for: '00:10:00'
|
||||
- condition: and
|
||||
|
||||
@@ -2,8 +2,10 @@ alias: "Almost Bedtime"
|
||||
id: automation_almost_bedtime
|
||||
initial_state: on
|
||||
trigger:
|
||||
platform: time
|
||||
at: input_datetime.kids_five_minute_warning_time
|
||||
trigger: time
|
||||
at:
|
||||
entity_id: input_datetime.kids_bedtime_announcement_time
|
||||
offset: "-300"
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: input_boolean.announce_bedtime
|
||||
|
||||
@@ -9,9 +9,9 @@ trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.garage_door
|
||||
to: 'on'
|
||||
- platform: state
|
||||
entity_id: binary_sensor.outer_garage_door
|
||||
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'
|
||||
@@ -50,9 +50,9 @@ condition:
|
||||
- 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
|
||||
# state: 'on'
|
||||
- condition: state
|
||||
entity_id: binary_sensor.outer_garage_door_contact
|
||||
state: 'on'
|
||||
|
||||
Reference in New Issue
Block a user