laundry esphome migration

This commit is contained in:
root
2025-05-30 23:45:16 +12:00
parent b09fb0625b
commit 8bb951dc8f
37 changed files with 3277 additions and 1630 deletions

View File

@@ -6,36 +6,69 @@
#############################################
#############################################
# Variable Substitutions
# Give the device a useful name & description here
# and change values accordingly.
# SPECIFIC DEVICE VARIABLE SUBSTITUTIONS
# If NOT using a secrets file, just replace these with the passwords etc (in quotes)
#############################################
substitutions:
devicename: "esp-entmulti"
friendly_name: "Outside Entrance Multisensor"
description_comment: "D1 Mini ESP32 outside entranceway with, mmWave presence, PIR and more"
#if NOT using a secrets file, just replace these with the passwords etc (in quotes)
api_key: !secret esp-entmulti_api_key #unfortunately you can't use substitutions in secrets names
ota_pass: !secret esp-entmulti_ota_pass #unfortunately you can't use substitutions in secrets names
wifi_ssid: !secret wifi_ssid
wifi_password: !secret wifi_password
fallback_ap_password: !secret fallback_ap_password
static_ip_address: !secret esp-entmulti_ip
log_level: "INFO" # Define logging level: NONE, ERROR, WARN, INFO, DEBUG (Default), VERBOSE, VERY_VERBOSE
update_time: 30s #update time for for general temp sensors etc
update_interval: "60s" # update time for for general sensors etc
room: "Entranceway" # Allows ESP device to be automatically linked to an 'Area' in Home Assistant.
#############################################
# SPECIFIC PROJECT VARIABLE SUBSTITUTIONS
#############################################
#
#
#if NOT using a secrets file, just replace these with the passwords etc (in quotes)
#wifi_ssid: !secret wifi_ssid
#wifi_password: !secret wifi_password
#fallback_ap_password: !secret fallback_ap_password
#Add these if we are giving it a static ip, or remove them in the Wifi section
#static_ip_address: !secret esp-entmulti_static_ip
#static_ip_gateway: !secret esp-entmulti_gateway
#static_ip_subnet: !secret esp-entmulti_subnet
mqtt_server: !secret mqtt_server
mqtt_username: !secret mqtt_username
mqtt_password: !secret mqtt_password
mqtt_topic: "esphome" #main topic for the mqtt server, call it what you like
#mqtt_server: !secret mqtt_server
#mqtt_username: !secret mqtt_username
#mqtt_password: !secret mqtt_password
#mqtt_topic: "esphome" #main topic for the mqtt server, call it what you like
#web_server_username: !secret web_server_username
#web_server_password: !secret web_server_password
update_time: 30s #update time for for general temp sensors etc
#############################################
# Included Common Packages
# https://esphome.io/components/esphome.html
#############################################
packages:
common_wifi: !include
file: common/network_common.yaml
vars:
local_static_ip_address: ${static_ip_address}
local_ota_pass: ${ota_pass}
common_api: !include
file: common/api_common.yaml
vars:
local_api_key: ${api_key}
common_webportal: !include
file: common/webportal_common.yaml
common_mqtt: !include
file: common/mqtt_common.yaml
# common_sntp: !include
# file: common/sntp_common.yaml
# common_general_sensors: !include
# file: common/sensors_common.yaml
# vars:
# local_friendly_name: ${friendly_name}
# local_update_interval: ${update_interval}
#############################################
# ESPHome
@@ -75,8 +108,8 @@ esp32:
# https://esphome.io/components/logger.html
#############################################
logger:
level: INFO #INFO Level suggested, or DEBUG for testing
#baud_rate: 0 #set to 0 for no logging via UART, needed if you are using it for other serial things (eg PZEM)
level: ${log_level} #INFO Level suggested, or DEBUG for testing
baud_rate: 0 #set to 0 for no logging via UART, needed if you are using it for other serial things (eg PZEM)
#esp8266_store_log_strings_in_flash: false
#tx_buffer_size: 64
@@ -84,9 +117,9 @@ logger:
# Enable the Home Assistant API
# https://esphome.io/components/api.html
#############################################
api:
encryption:
key: ${api_key}
#api:
# encryption:
# key: ${api_key}
# on_client_connected:
# - esp32_ble_tracker.start_scan:
# continuous: true
@@ -97,16 +130,16 @@ api:
# Enable Over the Air Update Capability
# https://esphome.io/components/ota.html?highlight=ota
#############################################
ota:
- platform: esphome
password: ${ota_pass}
#ota:
# - platform: esphome
# password: ${ota_pass}
#############################################
# Safe Mode
# Safe mode will detect boot loops
# https://esphome.io/components/safe_mode
#############################################
safe_mode:
#safe_mode:
#############################################
# Wifi Settings
@@ -117,18 +150,18 @@ safe_mode:
# LIGHT (Default for ESP32)
# HIGH (most power saving)
#############################################
wifi:
ssid: ${wifi_ssid}
password: ${wifi_password}
#wifi:
# ssid: ${wifi_ssid}
# password: ${wifi_password}
#power_save_mode: LIGHT #https://esphome.io/components/wifi.html#wifi-power-save-mode
#manual_ip: #optional static IP address
#static_ip: ${static_ip_address}
#gateway: ${static_ip_gateway}
#subnet: ${static_ip_subnet}
ap: #Details for fallback hotspot in case wifi connection fails https://esphome.io/components/wifi.html#access-point-mode
ssid: $devicename fallback AP
password: !secret fallback_ap_password
ap_timeout: 5min #Time until it brings up fallback AP. default is 1min
# ap: #Details for fallback hotspot in case wifi connection fails https://esphome.io/components/wifi.html#access-point-mode
# ssid: $devicename fallback AP
# password: !secret fallback_ap_password
# ap_timeout: 5min #Time until it brings up fallback AP. default is 1min
#############################################
# Web Portal for display and monitoring
@@ -146,13 +179,13 @@ wifi:
# https://esphome.io/components/mqtt.html?highlight=mqtt
# MUST also have api enabled if you enable MQTT
#############################################
mqtt:
broker: ${mqtt_server}
topic_prefix: ${mqtt_topic}/${devicename}
username: ${mqtt_username}
password: ${mqtt_password}
discovery: False # enable entity discovery (true is default)
#discover_ip: True # enable device discovery (true is default)
#mqtt:
# broker: ${mqtt_server}
# topic_prefix: ${mqtt_topic}/${devicename}
# username: ${mqtt_username}
# password: ${mqtt_password}
# discovery: False # enable entity discovery (true is default)
# discover_ip: False # enable device discovery (true is default)
#############################################
# i2c bus