Hopefully fixing master bed presence and cleaning up a lot of junk

This commit is contained in:
CeeWeasel
2025-07-24 16:39:36 -04:00
parent ca1082899b
commit c80842714f
48 changed files with 1740 additions and 2042 deletions
@@ -4,30 +4,30 @@ mode: single
# Hide warnings when triggered while in delay.
max_exceeded: silent
trigger:
- platform: state
triggers:
- trigger: state
id: "mode_change"
entity_id:
- input_select.entryway_mode
- input_select.automatic_light_profile
- platform: state
- trigger: state
id: light_level
entity_id: binary_sensor.entryway_naturally_lit
from: 'on'
to: 'off'
- platform: state
- trigger: state
id: occupied
entity_id:
- binary_sensor.entryway_occupied
- input_boolean.entryway_occupied
to: "on"
- platform: state
- trigger: state
id: door
entity_id:
- binary_sensor.inner_garage_door
# - binary_sensor.inner_garage_door
- binary_sensor.inner_garage_door_contact
- binary_sensor.front_door_contact
to: "on"
@@ -87,9 +87,9 @@ variables:
light_name: entryway_hue
mode_name: input_select.entryway_mode
action:
actions:
- alias: "Make sure Z-Wave switch is turned on"
service: homeassistant.turn_on
action: homeassistant.turn_on
target:
entity_id: "{{ switch_name }}"
- choose:
@@ -100,7 +100,7 @@ action:
entity_id: input_select.entryway_mode
state: Manual
sequence:
- service: light.turn_on
- action: light.turn_on
target:
entity_id: light.entryway_hue
@@ -115,7 +115,7 @@ action:
entity_id: light.entryway_hue
state: 'on'
sequence:
- service: scene.turn_on
- action: scene.turn_on
data:
transition: "{{ states('input_number.light_scene_transition') }}"
target:
@@ -132,7 +132,7 @@ action:
entity_id: light.entryway_hue
state: 'off'
sequence:
- service: scene.turn_on
- action: scene.turn_on
target:
entity_id: "scene.{{light_name}}_{{states('input_select.automatic_light_profile').lower().replace(' ','_')}}"
@@ -143,7 +143,7 @@ action:
entity_id: light.entryway_hue
state: 'on'
sequence:
- service: scene.turn_on
- action: scene.turn_on
data:
transition: "{{ states('input_number.light_scene_transition') }}"
target:
@@ -156,7 +156,7 @@ action:
entity_id: light.entryway_hue
state: 'off'
sequence:
- service: scene.turn_on
- action: scene.turn_on
target:
entity_id: "scene.{{light_name}}_{{states(mode_name).lower().replace(' ','_')}}"
+2 -2
View File
@@ -19,12 +19,12 @@ trigger:
- platform: state
id: door_open
entity_id: binary_sensor.outer_garage_door, binary_sensor.garage_door, binary_sensor.outer_garage_door_contact
entity_id: binary_sensor.garage_door, binary_sensor.outer_garage_door_contact #, binary_sensor.outer_garage_door
to: "on"
- platform: state
id: door_shut
entity_id: binary_sensor.outer_garage_door, binary_sensor.outer_garage_door_contact
entity_id: binary_sensor.outer_garage_door_contact #, binary_sensor.outer_garage_door
to: "off"
for:
minutes: 1
@@ -30,7 +30,7 @@ condition:
entity_id: input_boolean.computer_area_occupied
state: "off"
- condition: state
entity_id: input_boolean.master_bed_occupied
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_either
state: "off"
- condition: state
entity_id: binary_sensor.master_bedroom_occupied
@@ -9,8 +9,8 @@ trigger:
- platform: state
entity_id:
- binary_sensor.inner_garage_door
- binary_sensor.outer_garage_door
# - binary_sensor.inner_garage_door
# - binary_sensor.outer_garage_door
- binary_sensor.garage_door
- binary_sensor.outer_garage_door_contact
- binary_sensor.inner_garage_door_contact
@@ -37,9 +37,9 @@ trigger:
- platform: state
id: "doors_open"
entity_id:
- binary_sensor.inner_garage_door
# - binary_sensor.inner_garage_door
- binary_sensor.inner_garage_door_contact
- binary_sensor.outer_garage_door
# - binary_sensor.outer_garage_door
- binary_sensor.outer_garage_door_contact
from: "off"
to: "on"
@@ -47,9 +47,9 @@ trigger:
- platform: state
id: "doors_closed"
entity_id:
- binary_sensor.inner_garage_door
# - binary_sensor.inner_garage_door
- binary_sensor.inner_garage_door_contact
- binary_sensor.outer_garage_door
# - binary_sensor.outer_garage_door
- binary_sensor.outer_garage_door_contact
from: "on"
to: "off"
@@ -13,7 +13,7 @@ trigger:
for: '00:00:30'
- platform: state
entity_id: input_boolean.master_bed_occupied
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_either
to: 'on'
for: '00:00:05'
@@ -40,7 +40,7 @@ condition:
entity_id: sensor.pixel_7_charger_type
state: 'wireless'
- condition: state
entity_id: input_boolean.master_bed_occupied
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_either
state: 'on'
@@ -3,7 +3,7 @@ id: automation_master_bedroom_awake
trigger:
- platform: state
entity_id: input_boolean.master_bed_occupied
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_either
to: 'off'
for: '00:10:00'
@@ -25,7 +25,7 @@ condition:
- alias: "No one on master bed"
condition: state
entity_id: input_boolean.master_bed_occupied
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_either
state: 'off'
- alias: "The boolean is currently on"
@@ -24,7 +24,7 @@ condition:
state: 'off'
- condition: state
entity_id:
- input_boolean.master_bed_occupied
- binary_sensor.bed_presence_c175a4_bed_occupied_either
state:
- 'off'
- 'unavailable'
@@ -4,7 +4,7 @@ id: automation_master_bedroom_status
trigger:
- id: master_bed_not_occupied
platform: state
entity_id: input_boolean.master_bed_occupied
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_either
to: 'off'
for: '00:10:00'
@@ -13,15 +13,9 @@ trigger:
entity_id: sensor.pixel_7_charger_type
to: "wireless"
- id: master_bed_person_occupancy
platform: state
entity_id: binary_sensor.master_bedroom_person_occupancy
to: 'on'
for: '00:00:30'
- id: master_bed_right_occupied
platform: state
entity_id: input_boolean.master_bed_occupied
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_right
to: 'on'
for: '00:00:05'
@@ -54,7 +48,7 @@ condition:
- alias: "No one on master bed"
condition: state
entity_id: input_boolean.master_bed_occupied
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_either
state: 'off'
- alias: "Is the room asleep?"
@@ -82,7 +76,7 @@ condition:
- alias: "Someone on master bed"
condition: state
entity_id: input_boolean.master_bed_occupied
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_either
state: 'on'
action:
@@ -110,7 +104,7 @@ action:
- alias: "No one on master bed"
condition: state
entity_id: input_boolean.master_bed_occupied
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_either
state: 'off'
sequence:
- service: input_boolean.turn_off
@@ -139,7 +133,7 @@ action:
- alias: "Someone on master bed"
condition: state
entity_id: input_boolean.master_bed_occupied
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_either
state: 'on'
sequence:
- choose: