yaml layout updates to v1.1 and minor fixes
This commit is contained in:
@@ -1,13 +1,17 @@
|
||||
#:########################################################################################:#
|
||||
# TITLE: BEDROOM 2 FAN SWITCH (WALL SWITCH)
|
||||
# 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-bedrm2fanswitch.yaml
|
||||
#:########################################################################################:#
|
||||
# VERSIONS:
|
||||
# V1.1 2026-03-04 Updated yaml to zorruno layout V1.1
|
||||
# V1.0 2025-07-23 First Setup (and replacement of Tasmota)
|
||||
#:########################################################################################:#
|
||||
# HARDWARE:
|
||||
# Controlled by a Zemismart KS-811 Triple push button (KS-811-3)
|
||||
# pinout/schematic: https://community.home-assistant.io/t/zemismart-ks-811-working-with-esphome/
|
||||
# - Zemismart KS-811 Triple push button (KS-811-3)
|
||||
# pinout/schematic: https://community.home-assistant.io/t/zemismart-ks-811-working-with-esphome/
|
||||
#:########################################################################################:#
|
||||
# OPERATION NOTES:
|
||||
# - Wall switch for Bedroom 2 ceiling fan
|
||||
@@ -40,8 +44,10 @@
|
||||
# - No MQTT publish/subscribe and no HA API connectivity
|
||||
# - Buttons will do nothing to the fan (no transport)
|
||||
# - Relay indicators will remain in their last state until connectivity returns (or reboot)
|
||||
# - Accurate time is NOT needed (SNTP not required) for core operation (no time-of-day schedules)
|
||||
#:########################################################################################:#
|
||||
|
||||
|
||||
#:########################################################################################:#
|
||||
# SUBSTITUTIONS: Specific device variable substitutions
|
||||
# If NOT using a secrets file, just replace these with the passwords etc (in quotes)
|
||||
@@ -50,12 +56,12 @@ substitutions:
|
||||
# Device Naming
|
||||
device_name: "esp-bedrm2fanswitch"
|
||||
friendly_name: "Bedroom 2 Fan Wall Switch (3)"
|
||||
description_comment: "Switch for Bedroom 2 Ceiling Fan using Zemismart KS-811 Triple Push Button. Speed Up (1), Speed Down (2), Fan Off (3) (Layout V1.0)"
|
||||
description_comment: "Switch for Bedroom 2 Ceiling Fan using Zemismart KS-811 Triple Push Button. Speed Up (1), Speed Down (2), Fan Off (3) (Layout V1.1)"
|
||||
device_area: "Bedroom 2" # Allows ESP device to be automatically linked to an 'Area' in Home Assistant.
|
||||
|
||||
# Project Naming
|
||||
project_name: "Zemismart Technologies.KS-811-3 (Triple)" # Project Details
|
||||
project_version: "v1" # 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
|
||||
api_key: !secret esp-api_key # unfortunately you can't use substitutions inside secrets names
|
||||
@@ -87,6 +93,7 @@ substitutions:
|
||||
switch_2_name: "Fan Speed Down" # Virtual intent only, no load connected to relay 2
|
||||
switch_3_name: "Fan Off" # Virtual intent only, no load connected to relay 3
|
||||
|
||||
|
||||
#:########################################################################################:#
|
||||
# PACKAGES: Included Common Packages
|
||||
# https://esphome.io/components/packages.html
|
||||
@@ -126,6 +133,7 @@ packages:
|
||||
diag_debug: !include common/include_debug_diag_sensors.yaml
|
||||
#diag_resetcount: !include common/include_resetcount_diag_sensors.yaml
|
||||
|
||||
|
||||
#:########################################################################################:#
|
||||
# ESPHOME:
|
||||
# https://esphome.io/components/esphome.html
|
||||
@@ -145,6 +153,7 @@ esphome:
|
||||
# - "-fno-exceptions" # strip C++ exceptions
|
||||
# - "-fno-rtti" # strip C++ RTTI
|
||||
|
||||
|
||||
#:########################################################################################:#
|
||||
# ESP PLATFORM AND FRAMEWORK:
|
||||
# https://esphome.io/components/esp8266/
|
||||
@@ -155,6 +164,7 @@ esp8266:
|
||||
early_pin_init: false # Recommended false where switches are involved. Defaults to true.
|
||||
board_flash_mode: dout # Default is dout
|
||||
|
||||
|
||||
#:########################################################################################:#
|
||||
# LOGGING: ESPHome Logging Enable
|
||||
# https://esphome.io/components/logger.html
|
||||
@@ -165,6 +175,7 @@ logger:
|
||||
#esp8266_store_log_strings_in_flash: false
|
||||
#tx_buffer_size: 64
|
||||
|
||||
|
||||
#:########################################################################################:#
|
||||
# STATUS LED:
|
||||
# https://esphome.io/components/status_led.html
|
||||
@@ -172,9 +183,10 @@ logger:
|
||||
#:########################################################################################:#
|
||||
status_led:
|
||||
pin:
|
||||
number: GPIO02
|
||||
number: GPIO2
|
||||
inverted: true
|
||||
|
||||
|
||||
#:########################################################################################:#
|
||||
# BINARY SENSORS:
|
||||
# https://esphome.io/components/binary_sensor/
|
||||
@@ -195,7 +207,7 @@ binary_sensor:
|
||||
|
||||
- platform: gpio
|
||||
pin:
|
||||
number: GPIO05
|
||||
number: GPIO5
|
||||
mode: INPUT
|
||||
inverted: true
|
||||
name: "Button 2: ${switch_2_name}"
|
||||
@@ -215,6 +227,7 @@ binary_sensor:
|
||||
topic: "${mqtt_remote_device_command_topic}"
|
||||
payload: "${mqtt_remote_device_command3}"
|
||||
|
||||
|
||||
#:########################################################################################:#
|
||||
# SWITCH COMPONENT:
|
||||
# https://esphome.io/components/switch/
|
||||
@@ -236,6 +249,7 @@ switch:
|
||||
pin: GPIO14
|
||||
id: Relay_3
|
||||
|
||||
|
||||
#:########################################################################################:#
|
||||
# MQTT:
|
||||
# Subscribe to fan speed state and mirror it to relay indicator pattern
|
||||
|
||||
Reference in New Issue
Block a user