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
@@ -6,7 +6,7 @@ prior: 0.25
probability_threshold: 0.75
observations:
- entity_id: binary_sensor.master_bed_right_occupied
- entity_id: input_boolean.master_bed_occupied
platform: state
prob_given_true: .83
prob_given_false: 0.0
@@ -5,10 +5,9 @@ device_class: occupancy
prior: 0.25
probability_threshold: 0.90
observations:
- platform: state
entity_id: group.nursery_motion
to_state: 'on'
to_state: "on"
prob_given_true: .33
prob_given_false: 0.0
@@ -16,17 +15,17 @@ observations:
prob_given_true: .33
prob_given_false: 0.0
platform: state
to_state: 'on'
to_state: "on"
- platform: state
entity_id: binary_sensor.black_bed_occupied
to_state: 'on'
to_state: "on"
prob_given_true: .67
prob_given_false: 0.0
- platform: state
entity_id: binary_sensor.white_bed_occupied
to_state: 'on'
entity_id: input_boolean.white_bed_occupied
to_state: "on"
prob_given_true: .67
prob_given_false: 0.0
@@ -34,4 +33,4 @@ observations:
platform: state
prob_given_true: .92
prob_given_false: 0.5
to_state: 'on'
to_state: "on"
+4 -4
View File
@@ -123,13 +123,13 @@ sensors:
unique_id: templatebinarysensor.master_bed_left_occupied
friendly_name: Master Bedroom Left Occupied
icon_template: mdi:bed-king
value_template: "{{ is_state('binary_sensor.master_bed_occupied','on') and states('sensor.master_bed_weight') | float(default=0) > 200 }}"
value_template: "{{ is_state('input_boolean.master_bed_occupied','on') and is_state('person.kristy','home') }}"
master_bed_right_occupied:
unique_id: templatebinarysensor.master_bed_right_occupied
friendly_name: Master Bedroom Right Occupied
icon_template: mdi:bed-king
value_template: "{{ is_state('binary_sensor.master_bed_occupied','on') or is_state('input_boolean.master_bed_occupied','on') }}"
value_template: "{{ is_state('input_boolean.master_bed_occupied','on') }}"
bathroom_getting_humid:
unique_id: templatebinarysensor.bathroom_getting_humid
@@ -721,8 +721,8 @@ sensors:
bridgets_bed:
unique_id: templatebinarysensor.bridgets_bed
friendly_name: Bridget's Bed
value_template: "{{ states('binary_sensor.white_bed_occupied') }}"
icon_template: "{{ iif(is_state('binary_sensor.white_bed_occupied','on'),'mdi:bed','mdi:bed-empty','mdi:bed-outline')}}"
value_template: "{{ states('input_boolean.white_bed_occupied') }}"
icon_template: "{{ iif(is_state('input_boolean.white_bed_occupied','on'),'mdi:bed','mdi:bed-empty','mdi:bed-outline')}}"
check_mail:
unique_id: templatebinarysensor.check_mail
@@ -1,5 +0,0 @@
name: Master Bed LoadCell Load
icon: mdi:weight
min: -8388000
max: 8388000
mode: box
@@ -1,5 +0,0 @@
name: Master Bed LoadCell Weight
icon: mdi:weight-pound
min: 0
max: 300
mode: box
@@ -1,5 +0,0 @@
name: Master Bed LoadCell Zero
icon: mdi:weight
min: -8388000
max: 8388000
mode: box
@@ -1,5 +0,0 @@
name: Master Bed Occupied
icon: mdi:weight-pound
min: 0
max: 300
mode: box