Edit esp-downstloungemain.yaml
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
# https://home.fox.co.nz/gitea/zorruno/zorruno-homeassistant/src/branch/master/esphome/esp-downstloungemain.yaml
|
||||
#:########################################################################################:#
|
||||
# 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.5 2025-07-28 YAML tidyups
|
||||
#:########################################################################################:#
|
||||
@@ -23,12 +24,12 @@
|
||||
#:########################################################################################:#
|
||||
# MQTT COMMANDS:
|
||||
# - Local command topic (Main Lights):
|
||||
# ${mqtt_local_command_topic}/light1/set
|
||||
# ${mqtt_local_command_topic}
|
||||
# Payload "On" -> Relay 1 ON
|
||||
# Payload "Off" -> Relay 1 OFF
|
||||
#
|
||||
# - Local status topic (Main Lights):
|
||||
# ${mqtt_local_status_topic}/light1/state
|
||||
# ${mqtt_local_status_topic}
|
||||
# Payload "On" / "Off" published when Relay 1 changes state
|
||||
#:########################################################################################:#
|
||||
# OFFLINE NOTES:
|
||||
@@ -45,7 +46,6 @@
|
||||
# - Accurate time is NOT needed (SNTP not needed).
|
||||
#:########################################################################################:#
|
||||
|
||||
|
||||
#:########################################################################################:#
|
||||
# SUBSTITUTIONS: Specific device variable substitutions
|
||||
# If NOT using a secrets file, just replace these with the passwords etc (in quotes)
|
||||
@@ -59,7 +59,7 @@ substitutions:
|
||||
|
||||
# Project Naming
|
||||
project_name: "Zemismart Technologies.KS-811 Triple"
|
||||
project_version: "v3.6"
|
||||
project_version: "v3.7"
|
||||
|
||||
# Passwords & Secrets
|
||||
api_key: !secret esp-api_key
|
||||
@@ -156,11 +156,11 @@ logger:
|
||||
mqtt:
|
||||
on_message:
|
||||
# Main Lights control (Relay 1)
|
||||
- topic: "${mqtt_local_command_topic}/light1/set"
|
||||
- topic: "${mqtt_local_command_topic}"
|
||||
payload: "On"
|
||||
then:
|
||||
- switch.turn_on: relay_1
|
||||
- topic: "${mqtt_local_command_topic}/light1/set"
|
||||
- topic: "${mqtt_local_command_topic}"
|
||||
payload: "Off"
|
||||
then:
|
||||
- switch.turn_off: relay_1
|
||||
@@ -222,11 +222,11 @@ switch:
|
||||
id: relay_1
|
||||
on_turn_on:
|
||||
- mqtt.publish:
|
||||
topic: "${mqtt_local_status_topic}/light1/state"
|
||||
topic: "${mqtt_local_status_topic}"
|
||||
payload: "On"
|
||||
on_turn_off:
|
||||
- mqtt.publish:
|
||||
topic: "${mqtt_local_status_topic}/light1/state"
|
||||
topic: "${mqtt_local_status_topic}"
|
||||
payload: "Off"
|
||||
|
||||
# Relay 2 (GPIO12)
|
||||
|
||||
Reference in New Issue
Block a user