yaml layout updates to v1.x
This commit is contained in:
@@ -1,50 +1,71 @@
|
||||
|
||||
##########################################################################################
|
||||
##########################################################################################
|
||||
# DATA CUPBOARD POWER MONITOR - RIGHT
|
||||
#
|
||||
# Controlled by a Athom Smart Plug V2 No Relay
|
||||
# https://github.com/athom-tech/athom-configs/blob/main/athom-without-relay-plug.yaml
|
||||
#
|
||||
#:########################################################################################:#
|
||||
# TITLE: DATA CUPBOARD POWER MONITOR - RIGHT
|
||||
# zorruno.com layout v1.1 2026
|
||||
#:########################################################################################:#
|
||||
# REPO:
|
||||
# https://home.fox.co.nz/gitea/zorruno/zorruno-homeassistant/src/branch/master/esphome/esp-datacupboardpower-right.yaml
|
||||
#:########################################################################################:#
|
||||
# VERSIONS:
|
||||
# V1.1 2026-02-25 Updated yaml to zorruno layout V1.1
|
||||
# V1.0 2025-08-28 First Setup
|
||||
#
|
||||
##########################################################################################
|
||||
##########################################################################################
|
||||
#:########################################################################################:#
|
||||
# HARDWARE:
|
||||
# Athom Smart Plug V2 (No Relay) - Power Monitor
|
||||
# https://github.com/athom-tech/athom-configs/blob/main/athom-without-relay-plug.yaml
|
||||
#:########################################################################################:#
|
||||
# OPERATION NOTES:
|
||||
# - Power monitoring only (no relay)
|
||||
# - Uses Athom common package: common/athompowermonv2norelay_common.yaml
|
||||
# - Energy sensor can be hidden via hide_energy_sensor substitution
|
||||
#:########################################################################################:#
|
||||
# OFFLINE NOTES:
|
||||
# a) Home Assistant OFFLINE, but Network and MQTT ONLINE
|
||||
# - Device continues metering and publishing via MQTT (common_mqtt)
|
||||
# - HA entities are unavailable until HA returns
|
||||
# b) MQTT OFFLINE (but WiFi/Network and HA API ONLINE)
|
||||
# - Device continues metering and HA can read values via API
|
||||
# - MQTT publish/subscribe will not function while MQTT is down
|
||||
# c) Entire WiFi/Network OFFLINE
|
||||
# - Device continues metering locally but cannot report data to HA/MQTT
|
||||
# - SNTP not needed (no timeclocks; loss of network does not affect timing)
|
||||
#:########################################################################################:#
|
||||
|
||||
##########################################################################################
|
||||
# SPECIFIC DEVICE VARIABLE SUBSTITUTIONS
|
||||
#:########################################################################################:#
|
||||
# SUBSTITUTIONS: Specific device variable substitutions
|
||||
# If NOT using a secrets file, just replace these with the passwords etc (in quotes)
|
||||
##########################################################################################
|
||||
#:########################################################################################:#
|
||||
substitutions:
|
||||
# Device Naming
|
||||
device_name: "esp-datacupboardpower-right"
|
||||
friendly_name: "Data Cupboard Power Monitor - Right"
|
||||
description_comment: "Data Cupboard Right :: Athom Smart Plug Power V2 (No relay)"
|
||||
description_comment: "Data Cupboard Right :: Athom Smart Plug Power V2 (No relay) (Layout V1.1)"
|
||||
device_area: "Data Cupboard"
|
||||
|
||||
# Project Naming
|
||||
project_name: "Athom Technology.Smart Plug V2 NR"
|
||||
project_version: "v1.0"
|
||||
project_version: "v1.1"
|
||||
|
||||
# Passwords (unfortunately you cannot use substitutions inside secrets names)
|
||||
api_key: !secret esp-api_key
|
||||
ota_pass: !secret esp-ota_pass
|
||||
static_ip_address: !secret esp-datacupboardpower-right_ip
|
||||
|
||||
# If we are changing IP addresses, you must update the current IP address here, otherwise it remains
|
||||
# Don't forget to switch it back when changed.
|
||||
current_ip_address: ${static_ip_address}
|
||||
|
||||
# Device General Settings
|
||||
log_level: "NONE" # NONE, ERROR, WARN, INFO, DEBUG, VERBOSE, VERY_VERBOSE
|
||||
update_interval: "60s" # update time for general sensors etc
|
||||
log_level: "NONE" # NONE, ERROR, WARN, INFO, DEBUG, VERBOSE, VERY_VERBOSE
|
||||
update_interval: "60s" # update time for general sensors etc
|
||||
|
||||
# Device Specific Settings (Athom Power Monitor Plug V2)
|
||||
sensor_update_interval: "10s"
|
||||
hide_energy_sensor: "true" # boolean (used by "internal:")
|
||||
hide_energy_sensor: "true" # boolean (used by "internal:")
|
||||
|
||||
##########################################################################################
|
||||
#:########################################################################################:#
|
||||
# PACKAGES: Included Common Packages
|
||||
# https://esphome.io/components/packages.html
|
||||
##########################################################################################
|
||||
# Comment some of these out where not needed, eg MQTT, Web portal, SNTP, General Sensors
|
||||
##########################################################################################
|
||||
#:########################################################################################:#
|
||||
packages:
|
||||
#### WIFI, Network (Static/DHCP/IPV6 etc), Fallback AP, Safemode ####
|
||||
common_wifi: !include
|
||||
@@ -53,6 +74,7 @@ packages:
|
||||
local_device_name: "${device_name}"
|
||||
local_static_ip_address: "${static_ip_address}"
|
||||
local_ota_pass: "${ota_pass}"
|
||||
local_current_ip_address: "${current_ip_address}"
|
||||
|
||||
#### HOME ASSISTANT API (choose encryption or no encryption options) ####
|
||||
common_api: !include
|
||||
@@ -66,21 +88,20 @@ packages:
|
||||
file: common/mqtt_common.yaml
|
||||
vars:
|
||||
local_device_name: "${device_name}"
|
||||
|
||||
|
||||
#### WEB PORTAL ####
|
||||
#common_webportal: !include common/webportal_common.yaml
|
||||
|
||||
|
||||
#### SNTP (Only use if you want/need accurate timeclocks) ####
|
||||
common_sntp: !include common/sntp_common.yaml
|
||||
common_sntp: !include common/sntp_common.yaml
|
||||
|
||||
#### DIAGNOSTICS Sensors ####
|
||||
diag_basic: !include common/include_basic_diag_sensors.yaml
|
||||
diag_more: !include common/include_more_diag_sensors.yaml
|
||||
diag_debug: !include common/include_debug_diag_sensors.yaml
|
||||
#diag_resetcount: !include common/include_resetcount_diag_sensors.yaml
|
||||
diag_basic: !include common/include_basic_diag_sensors.yaml
|
||||
diag_more: !include common/include_more_diag_sensors.yaml
|
||||
diag_debug: !include common/include_debug_diag_sensors.yaml
|
||||
#diag_resetcount: !include common/include_resetcount_diag_sensors.yaml
|
||||
|
||||
# Device Specific included packages
|
||||
# Athom Power Monitor Plug V2 (No Relay)
|
||||
#### DEVICE SPECIFIC: Athom Power Monitor Plug V2 (No Relay) ####
|
||||
common_athompowermonV2: !include
|
||||
file: common/athompowermonv2norelay_common.yaml
|
||||
vars:
|
||||
@@ -88,10 +109,10 @@ packages:
|
||||
sensor_update_interval: "${sensor_update_interval}"
|
||||
hide_energy_sensor: "${hide_energy_sensor}"
|
||||
|
||||
##########################################################################################
|
||||
# ESPHome
|
||||
#:########################################################################################:#
|
||||
# ESPHOME:
|
||||
# https://esphome.io/components/esphome.html
|
||||
##########################################################################################
|
||||
#:########################################################################################:#
|
||||
esphome:
|
||||
name: "${device_name}"
|
||||
friendly_name: "${friendly_name}"
|
||||
@@ -103,10 +124,10 @@ esphome:
|
||||
name: "${project_name}"
|
||||
version: "${project_version}"
|
||||
|
||||
##########################################################################################
|
||||
# ESP Platform and Framework
|
||||
#:########################################################################################:#
|
||||
# ESP PLATFORM AND FRAMEWORK:
|
||||
# https://esphome.io/components/esp8266.html
|
||||
##########################################################################################
|
||||
#:########################################################################################:#
|
||||
esp8266:
|
||||
board: esp8285
|
||||
restore_from_flash: true
|
||||
@@ -118,10 +139,10 @@ preferences:
|
||||
mdns:
|
||||
disabled: false
|
||||
|
||||
##########################################################################################
|
||||
# ESPHome LOGGING
|
||||
#:########################################################################################:#
|
||||
# LOGGING: ESPHome Logging Enable
|
||||
# https://esphome.io/components/logger.html
|
||||
##########################################################################################
|
||||
#:########################################################################################:#
|
||||
logger:
|
||||
level: "${log_level}"
|
||||
baud_rate: 0 # free UART for CSE7766
|
||||
baud_rate: 0 # free UART for CSE7766
|
||||
Reference in New Issue
Block a user