mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
Changing all kinds of shit
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
substitutions:
|
||||
devicename: white-bed
|
||||
entity_name: white_bed
|
||||
friendly_name: White Bed
|
||||
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
|
||||
|
||||
# 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
|
||||
@@ -1,9 +1,9 @@
|
||||
api:
|
||||
on_client_connected:
|
||||
- esp32_ble_tracker.start_scan:
|
||||
continuous: true
|
||||
on_client_disconnected:
|
||||
- esp32_ble_tracker.stop_scan:
|
||||
# api:
|
||||
# on_client_connected:
|
||||
# - esp32_ble_tracker.start_scan:
|
||||
# continuous: true
|
||||
# on_client_disconnected:
|
||||
# - esp32_ble_tracker.stop_scan:
|
||||
|
||||
bluetooth_proxy:
|
||||
active: true
|
||||
|
||||
+67
-16
@@ -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
|
||||
Reference in New Issue
Block a user