Edit esp-spare1-athomv1.yaml
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
#
|
#
|
||||||
# V1.1 2025-06-12 package added for energy entities
|
# V1.1 2025-06-12 package added for energy entities
|
||||||
# V1.0 2025-06-10 YAML Tidyups
|
# V1.0 2025-06-10 YAML Tidyups
|
||||||
#
|
#
|
||||||
##########################################################################################
|
##########################################################################################
|
||||||
##########################################################################################
|
##########################################################################################
|
||||||
|
|
||||||
@@ -21,11 +21,11 @@ substitutions:
|
|||||||
#friendly_name: "Main Dishwashers Power"
|
#friendly_name: "Main Dishwashers Power"
|
||||||
friendly_name: "Spare1 Athomv1"
|
friendly_name: "Spare1 Athomv1"
|
||||||
description_comment: "Main Dishwashers Power Monitor :: Athom Smart Plug Power Monitor V1"
|
description_comment: "Main Dishwashers Power Monitor :: Athom Smart Plug Power Monitor V1"
|
||||||
device_area: "Kitchen" # Allows ESP device to be automatically linked to an 'Area' in Home Assistant.
|
device_area: "Kitchen" # Allows ESP device to be automatically linked to an 'Area' in Home Assistant.
|
||||||
|
|
||||||
# Project Naming
|
# Project Naming
|
||||||
project_name: "Athom Technology.Smart Plug V1" # Project Details
|
project_name: "Athom Technology.Smart Plug V1" # Project Details
|
||||||
project_version: "v1.1" # Project V denotes release of yaml file, allowing checking of deployed vs latest version
|
project_version: "v1.1" # Project V denotes release of yaml file, allowing checking of deployed vs latest version
|
||||||
|
|
||||||
# Passwords
|
# Passwords
|
||||||
api_key: !secret esp-api_key # unfortunately you can't use substitutions inside secrets names
|
api_key: !secret esp-api_key # unfortunately you can't use substitutions inside secrets names
|
||||||
@@ -38,8 +38,8 @@ substitutions:
|
|||||||
|
|
||||||
# Device Settings
|
# Device Settings
|
||||||
relay_icon: "mdi:dishwasher"
|
relay_icon: "mdi:dishwasher"
|
||||||
current_limit : "10" # Current Limit in Amps. AU Plug = 10. IL, BR, EU, UK, US Plug = 16.
|
current_limit: "10" # Current Limit in Amps. AU Plug = 10. IL, BR, EU, UK, US Plug = 16.
|
||||||
|
|
||||||
##########################################################################################
|
##########################################################################################
|
||||||
# PACKAGES: Included Common Packages
|
# PACKAGES: Included Common Packages
|
||||||
# https://esphome.io/components/packages.html
|
# https://esphome.io/components/packages.html
|
||||||
@@ -84,40 +84,35 @@ esphome:
|
|||||||
name: "${device_name}"
|
name: "${device_name}"
|
||||||
friendly_name: "${friendly_name}"
|
friendly_name: "${friendly_name}"
|
||||||
comment: "${description_comment}" # Appears on the esphome page in HA
|
comment: "${description_comment}" # Appears on the esphome page in HA
|
||||||
area: "${device_area}"
|
area: "${device_area}"
|
||||||
name_add_mac_suffix: False
|
name_add_mac_suffix: False
|
||||||
min_version: 2024.6.0
|
min_version: 2024.6.0
|
||||||
project:
|
project:
|
||||||
name: "${project_name}"
|
name: "${project_name}"
|
||||||
version: "${project_version}"
|
version: "${project_version}"
|
||||||
on_boot:
|
|
||||||
priority: 200
|
|
||||||
then:
|
|
||||||
- switch.turn_on: "relay"
|
|
||||||
|
|
||||||
##########################################################################################
|
##########################################################################################
|
||||||
# ESP Platform and Framework
|
# ESP Platform and Framework
|
||||||
# https://esphome.io/components/esp32.html
|
# https://esphome.io/components/esp32.html
|
||||||
##########################################################################################
|
##########################################################################################
|
||||||
esp8266:
|
esp8266:
|
||||||
board: esp8285
|
board: esp8285
|
||||||
restore_from_flash: True # mainly for calculating cumulative energy, but not that important here
|
restore_from_flash: True # mainly for calculating cumulative energy, but not that important here
|
||||||
|
|
||||||
preferences:
|
preferences:
|
||||||
flash_write_interval: 5min
|
flash_write_interval: 5min
|
||||||
|
|
||||||
mdns:
|
mdns:
|
||||||
disabled: false
|
disabled: false
|
||||||
|
|
||||||
#dashboard_import:
|
#dashboard_import:
|
||||||
# package_import_url: github://athom-tech/esp32-configs/athom-smart-plug.yaml
|
# package_import_url: github://athom-tech/esp32-configs/athom-smart-plug.yaml
|
||||||
|
|
||||||
##########################################################################################
|
##########################################################################################
|
||||||
# ESPHome LOGGING
|
# ESPHome LOGGING
|
||||||
# https://esphome.io/components/logger.html
|
# https://esphome.io/components/logger.html
|
||||||
##########################################################################################
|
##########################################################################################
|
||||||
logger:
|
logger:
|
||||||
level: "${log_level}" #INFO Level suggested, or DEBUG for testing
|
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)
|
#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
|
#esp8266_store_log_strings_in_flash: false
|
||||||
#tx_buffer_size: 64
|
#tx_buffer_size: 64
|
||||||
@@ -149,9 +144,9 @@ binary_sensor:
|
|||||||
- min_length: 20ms
|
- min_length: 20ms
|
||||||
max_length: 500ms
|
max_length: 500ms
|
||||||
then:
|
then:
|
||||||
- switch.toggle:
|
- switch.toggle:
|
||||||
id: relay
|
id: relay
|
||||||
|
|
||||||
- platform: template
|
- platform: template
|
||||||
name: "Relay Status"
|
name: "Relay Status"
|
||||||
lambda: |-
|
lambda: |-
|
||||||
@@ -166,7 +161,6 @@ switch:
|
|||||||
name: "Power Output"
|
name: "Power Output"
|
||||||
pin: GPIO14
|
pin: GPIO14
|
||||||
id: relay
|
id: relay
|
||||||
restore_mode: RESTORE_DEFAULT_ON # Ensures the relay is restored (or off) at boot
|
restore_mode: RESTORE_DEFAULT_OFF # Restore previous state, default off
|
||||||
#internal: true # Hides the switch from Home Assistant
|
#internal: true # Hides the switch from Home Assistant
|
||||||
icon: "${relay_icon}"
|
icon: "${relay_icon}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user