mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 10:30:14 -04:00
78 lines
1.5 KiB
YAML
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 |