Files
fresh-home/esphome/archive/white-bed.yaml
T
CeeWeasel 4e0e55ac3c 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.
2025-07-19 13:37:45 -04:00

78 lines
1.5 KiB
YAML

substitutions:
devicename: white-bed
entity_name: white_bed
friendly_name: White Bed
platform: ESP32
board: nodemcu-32s
static_ip: !secret white-bed-ip
center_sensor_gpio: GPIO34
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