Refactor bed occupancy sensors and related automations

- Updated nursery automation to use input booleans for bed occupancy instead of binary sensors.
- Changed conditions in nursery automation to improve readability and consistency.
- Modified binary sensor configurations for master bedroom and nursery to use input booleans.
- Removed unused input number configurations related to master bed load cells.
- Updated UI configurations to reflect changes in entity types from binary sensors to input booleans.
- Cleaned up camera view configurations and adjusted styles for better layout.
- Removed deprecated master bed YAML configuration and archived it for future reference.
- Enhanced ESPHome configurations for white and black beds, including improved logging and diagnostics.
This commit is contained in:
CeeWeasel
2025-07-19 13:37:45 -04:00
parent a533240fc3
commit 4e0e55ac3c
49 changed files with 605 additions and 890 deletions
@@ -13,7 +13,7 @@ trigger:
for: '00:00:30'
- platform: state
entity_id: binary_sensor.master_bed_right_occupied
entity_id: input_boolean.master_bed_occupied
to: 'on'
for: '00:00:05'
@@ -40,7 +40,7 @@ condition:
entity_id: sensor.pixel_7_charger_type
state: 'wireless'
- condition: state
entity_id: binary_sensor.master_bed_right_occupied
entity_id: input_boolean.master_bed_occupied
state: 'on'
@@ -3,7 +3,7 @@ id: automation_master_bedroom_awake
trigger:
- platform: state
entity_id: binary_sensor.master_bed_right_occupied
entity_id: input_boolean.master_bed_occupied
to: 'off'
for: '00:10:00'
@@ -25,7 +25,7 @@ condition:
- alias: "No one on master bed"
condition: state
entity_id: binary_sensor.master_bed_right_occupied
entity_id: input_boolean.master_bed_occupied
state: 'off'
- alias: "The boolean is currently on"
@@ -24,7 +24,7 @@ condition:
state: 'off'
- condition: state
entity_id:
- binary_sensor.master_bed_right_occupied
- input_boolean.master_bed_occupied
state:
- 'off'
- 'unavailable'
@@ -4,7 +4,7 @@ id: automation_master_bedroom_status
trigger:
- id: master_bed_not_occupied
platform: state
entity_id: binary_sensor.master_bed_right_occupied
entity_id: input_boolean.master_bed_occupied
to: 'off'
for: '00:10:00'
@@ -21,7 +21,7 @@ trigger:
- id: master_bed_right_occupied
platform: state
entity_id: binary_sensor.master_bed_right_occupied
entity_id: input_boolean.master_bed_occupied
to: 'on'
for: '00:00:05'
@@ -54,7 +54,7 @@ condition:
- alias: "No one on master bed"
condition: state
entity_id: binary_sensor.master_bed_right_occupied
entity_id: input_boolean.master_bed_occupied
state: 'off'
- alias: "Is the room asleep?"
@@ -82,7 +82,7 @@ condition:
- alias: "Someone on master bed"
condition: state
entity_id: binary_sensor.master_bed_right_occupied
entity_id: input_boolean.master_bed_occupied
state: 'on'
action:
@@ -110,7 +110,7 @@ action:
- alias: "No one on master bed"
condition: state
entity_id: binary_sensor.master_bed_right_occupied
entity_id: input_boolean.master_bed_occupied
state: 'off'
sequence:
- service: input_boolean.turn_off
@@ -139,7 +139,7 @@ action:
- alias: "Someone on master bed"
condition: state
entity_id: binary_sensor.master_bed_right_occupied
entity_id: input_boolean.master_bed_occupied
state: 'on'
sequence:
- choose:
@@ -13,7 +13,7 @@ action:
# option: 'Off'
- action: media_player.volume_set
data:
volume_level: 0.3
volume_level: 0.25
target:
device_id: d534ab473e271021b537397cbc6fe700
@@ -29,7 +29,7 @@ action:
- action: media_player.repeat_set
metadata: {}
data:
repeat: all
repeat: "off"
target:
device_id: d534ab473e271021b537397cbc6fe700
- action: music_assistant.play_media
@@ -40,4 +40,11 @@ action:
enqueue: replace
target:
device_id: d534ab473e271021b537397cbc6fe700
- action: music_assistant.play_media
target:
device_id: d534ab473e271021b537397cbc6fe700
data:
media_id: library://track/101
media_type: track
enqueue: add