Edit esp-downstloungemain.yaml

This commit is contained in:
ESPHome Device Builder
2026-07-20 20:37:50 +12:00
parent c6e8d7721c
commit a2fb86aa93
+9 -9
View File
@@ -6,6 +6,7 @@
# https://home.fox.co.nz/gitea/zorruno/zorruno-homeassistant/src/branch/master/esphome/esp-downstloungemain.yaml # https://home.fox.co.nz/gitea/zorruno/zorruno-homeassistant/src/branch/master/esphome/esp-downstloungemain.yaml
#:########################################################################################:# #:########################################################################################:#
# VERSIONS: # VERSIONS:
# v3.7 2026-07-20 Simplified local MQTT command and status topics to the device root
# v3.6 2026-02-25 Updated yaml to zorruno layout V1.1 # v3.6 2026-02-25 Updated yaml to zorruno layout V1.1
# v3.5 2025-07-28 YAML tidyups # v3.5 2025-07-28 YAML tidyups
#:########################################################################################:# #:########################################################################################:#
@@ -23,12 +24,12 @@
#:########################################################################################:# #:########################################################################################:#
# MQTT COMMANDS: # MQTT COMMANDS:
# - Local command topic (Main Lights): # - Local command topic (Main Lights):
# ${mqtt_local_command_topic}/light1/set # ${mqtt_local_command_topic}
# Payload "On" -> Relay 1 ON # Payload "On" -> Relay 1 ON
# Payload "Off" -> Relay 1 OFF # Payload "Off" -> Relay 1 OFF
# #
# - Local status topic (Main Lights): # - Local status topic (Main Lights):
# ${mqtt_local_status_topic}/light1/state # ${mqtt_local_status_topic}
# Payload "On" / "Off" published when Relay 1 changes state # Payload "On" / "Off" published when Relay 1 changes state
#:########################################################################################:# #:########################################################################################:#
# OFFLINE NOTES: # OFFLINE NOTES:
@@ -45,7 +46,6 @@
# - Accurate time is NOT needed (SNTP not needed). # - Accurate time is NOT needed (SNTP not needed).
#:########################################################################################:# #:########################################################################################:#
#:########################################################################################:# #:########################################################################################:#
# SUBSTITUTIONS: Specific device variable substitutions # SUBSTITUTIONS: Specific device variable substitutions
# If NOT using a secrets file, just replace these with the passwords etc (in quotes) # If NOT using a secrets file, just replace these with the passwords etc (in quotes)
@@ -59,7 +59,7 @@ substitutions:
# Project Naming # Project Naming
project_name: "Zemismart Technologies.KS-811 Triple" project_name: "Zemismart Technologies.KS-811 Triple"
project_version: "v3.6" project_version: "v3.7"
# Passwords & Secrets # Passwords & Secrets
api_key: !secret esp-api_key api_key: !secret esp-api_key
@@ -156,11 +156,11 @@ logger:
mqtt: mqtt:
on_message: on_message:
# Main Lights control (Relay 1) # Main Lights control (Relay 1)
- topic: "${mqtt_local_command_topic}/light1/set" - topic: "${mqtt_local_command_topic}"
payload: "On" payload: "On"
then: then:
- switch.turn_on: relay_1 - switch.turn_on: relay_1
- topic: "${mqtt_local_command_topic}/light1/set" - topic: "${mqtt_local_command_topic}"
payload: "Off" payload: "Off"
then: then:
- switch.turn_off: relay_1 - switch.turn_off: relay_1
@@ -222,11 +222,11 @@ switch:
id: relay_1 id: relay_1
on_turn_on: on_turn_on:
- mqtt.publish: - mqtt.publish:
topic: "${mqtt_local_status_topic}/light1/state" topic: "${mqtt_local_status_topic}"
payload: "On" payload: "On"
on_turn_off: on_turn_off:
- mqtt.publish: - mqtt.publish:
topic: "${mqtt_local_status_topic}/light1/state" topic: "${mqtt_local_status_topic}"
payload: "Off" payload: "Off"
# Relay 2 (GPIO12) # Relay 2 (GPIO12)
@@ -239,4 +239,4 @@ switch:
- platform: gpio - platform: gpio
name: "Relay 3: ${switch_3_name}" name: "Relay 3: ${switch_3_name}"
pin: GPIO14 pin: GPIO14
id: relay_3 id: relay_3