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
+29
View File
@@ -0,0 +1,29 @@
substitutions:
devicename: master-bed
entity_name: master_bed
friendly_name: Master Bed
platform: ESP32
board: wemos_d1_mini32
static_ip: !secret master-bed-ip
dout_pin: !secret master-bed-dout
clk_pin: !secret master-bed-clk
loadcell_zero: !secret master-bed-zero
loadcell_load: !secret master-bed-load
loadcell_weight: !secret master-bed-weight
# Enable logging
logger:
level: DEBUG
logs:
sensor: INFO
hx711: DEBUG
packages:
wifi: !include common/ethernet.yaml
device_base: !include common/device_base.yaml
hx711: !include common/hx711_single_verbose.yaml
# Disabling this to see if it does a better job of staying online
# ble_proxy: !include common/ble_proxy.yaml
esp32:
board: wemos_d1_mini32
+67 -16
View File
@@ -5,23 +5,74 @@ substitutions:
platform: ESP32
board: nodemcu-32s
static_ip: !secret white-bed-ip
dout_pin: !secret white-bed-dout
clk_pin: !secret white-bed-clk
loadcell_zero: !secret white-bed-zero
loadcell_load: !secret white-bed-load
loadcell_weight: !secret white-bed-weight
center_sensor_gpio: GPIO34
# Enable logging
# logger:
# level: DEBUG
# logs:
# sensor: INFO
# hx711: DEBUG
packages:
wifi: !include common/wifi.yaml
device_base: !include common/device_base.yaml
# hx711: !include common/hx711_single_verbose.yaml
esp32:
board: nodemcu-32s
framework:
type: esp-idf
esphome:
name: ${devicename}
# platform: ${platform}
# board: ${board}
# Enable logging
logger:
# Sync time with Home Assistant.
time:
- platform: homeassistant
id: homeassistant_time
# Enable Home Assistant API
api:
reboot_timeout: 15min
ota:
- platform: esphome
packages:
#wifi: !include common/wifi.yaml
wifi: !include common/wifi_no_power_save.yaml
ble: !include bed-presence/bluetooth-proxy.yaml
diagnostics: !include
file: bed-presence/diagnostics.yaml
vars:
boot_gpio: GPIO9
uptime_id: bed_presence_uptime
restart_id: btn_restart
status_id: bed_presence_status
bed_sensor: !include
file: bed-presence/sensor.yaml
vars:
sensor_name: Center
sensor_id: center_occupied
sensor_gpio: ${center_sensor_gpio}
switch:
- platform: template
name: Full Range
id: full_range
optimistic: true
restore_mode: RESTORE_DEFAULT_OFF
entity_category: config
icon: mdi:arrow-expand
select:
- platform: template
name: "Response Speed"
id: response_speed
icon: mdi:speedometer
optimistic: true
restore_value: true
options:
- "Fast"
- "Normal"
- "Slow"
initial_option: "Normal"
entity_category: config