yaml layout updates to v1.1 and minor fixes
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
#:########################################################################################:#
|
||||
# TITLE: ARCADE CABINET 1 POWER (ATHOM SMART PLUG V1)
|
||||
# zorruno.com layout v1.0 2026
|
||||
# zorruno.com layout v1.1 2026
|
||||
#:########################################################################################:#
|
||||
# REPO:
|
||||
# https://home.fox.co.nz/gitea/zorruno/zorruno-homeassistant/src/branch/master/esphome/esp-arcademachine1.yaml
|
||||
#:########################################################################################:#
|
||||
# VERSIONS:
|
||||
# V1.0 Unknown date - Initial Version (date not present in source header)
|
||||
# v1.1 2026-03-04 Updated yaml to zorruno layout V1.1
|
||||
# v1.0 Unknown date - Initial Version (date not present in source header)
|
||||
#:########################################################################################:#
|
||||
# HARDWARE:
|
||||
# - Athom Smart Plug Power V1 (ESP8285 / ESP8266 family)
|
||||
@@ -15,10 +19,20 @@
|
||||
# - Local power button toggles relay state
|
||||
#:########################################################################################:#
|
||||
# MQTT COMMANDS:
|
||||
#
|
||||
# - None device-specific in this YAML (uses common MQTT package for base connectivity).
|
||||
#:########################################################################################:#
|
||||
# OFFLINE NOTES:
|
||||
# a) Home Assistant OFFLINE, WiFi OK
|
||||
# - Local button still toggles the relay.
|
||||
# - Power monitoring continues locally; HA updates resume when HA returns.
|
||||
#
|
||||
# b) MQTT OFFLINE (or broker unreachable)
|
||||
# - Local button and HA API (if HA reachable) still operate the relay.
|
||||
# - MQTT state/telemetry (from common packages) will not publish until MQTT returns.
|
||||
#
|
||||
# c) Entire WiFi/Network OFFLINE
|
||||
# - Local button still toggles the relay.
|
||||
# - Accurate time is NOT needed for operation (no schedules). SNTP not needed.
|
||||
#:########################################################################################:#
|
||||
|
||||
|
||||
@@ -30,12 +44,12 @@ substitutions:
|
||||
# Device Naming
|
||||
device_name: "esp-arcademachine1"
|
||||
friendly_name: "Arcade Cabinet 1"
|
||||
description_comment: "MAME Arcade 1 (Defender) machine power :: Athom Smart Plug Power V1 (Layout V1.0)"
|
||||
description_comment: "MAME Arcade 1 (Defender) machine power :: Athom Smart Plug Power V1 (Layout V1.1)"
|
||||
device_area: "Downstairs Flat" # Allows ESP device to be automatically linked to an 'Area' in Home Assistant.
|
||||
|
||||
# Project Naming
|
||||
project_name: "Athom Technology.Smart Plug V1" # Project Details
|
||||
project_version: "v1.0" # Project V denotes release of yaml file, allowing checking of deployed vs latest version
|
||||
project_name: "Athom Technology.Smart Plug V1"
|
||||
project_version: "v1.1"
|
||||
|
||||
# Passwords
|
||||
api_key: !secret esp-api_key # unfortunately you can't use substitutions inside secrets names
|
||||
@@ -47,10 +61,9 @@ substitutions:
|
||||
current_ip_address: ${static_ip_address}
|
||||
|
||||
# Device Settings
|
||||
log_level: "NONE" # Define logging level: NONE, ERROR, WARN, INFO, DEBUG (Default), VERBOSE, VERY_VERBOSE
|
||||
log_level: "NONE" # NONE, ERROR, WARN, INFO, DEBUG (Default), VERBOSE, VERY_VERBOSE
|
||||
update_interval: "10s" # update time for for general sensors etc
|
||||
|
||||
# Device Settings
|
||||
relay_icon: "mdi:power-socket-au"
|
||||
current_limit: "10" # Current Limit in Amps. AU Plug = 10. IL, BR, EU, UK, US Plug = 16.
|
||||
|
||||
@@ -106,11 +119,6 @@ packages:
|
||||
common_general_sensors: !include
|
||||
file: common/sensors_common.yaml
|
||||
|
||||
#### DEBUGGING Sensors ####
|
||||
# A count of various resets
|
||||
#common_resetcount_debugging: !include
|
||||
# file: common/resetcount_common.yaml
|
||||
|
||||
# Device Specific included packages
|
||||
common_athompowermonV1: !include
|
||||
file: common/athompowermonv1_common.yaml
|
||||
@@ -142,8 +150,6 @@ esphome:
|
||||
esp8266:
|
||||
board: esp8285
|
||||
restore_from_flash: true # mainly for calculating cumulative energy, but not that important here
|
||||
#framework:
|
||||
# version: 2.7.4
|
||||
|
||||
|
||||
#:########################################################################################:#
|
||||
@@ -167,10 +173,8 @@ mdns:
|
||||
# https://esphome.io/components/logger.html
|
||||
#:########################################################################################:#
|
||||
logger:
|
||||
level: "${log_level}" # INFO Level suggested, or DEBUG for testing
|
||||
level: "${log_level}"
|
||||
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
|
||||
|
||||
|
||||
#:########################################################################################:#
|
||||
@@ -193,10 +197,8 @@ binary_sensor:
|
||||
then:
|
||||
- lambda: |-
|
||||
if (id(relay).state) {
|
||||
// Relay is ON: turn it OFF
|
||||
id(relay).turn_off();
|
||||
} else {
|
||||
// Relay is OFF: turn it ON
|
||||
id(relay).turn_on();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user