Edit esp-downstkitchlights.yaml
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
# https://home.fox.co.nz/gitea/zorruno/zorruno-homeassistant/src/branch/master/esphome/esp-downstkitchlights.yaml
|
||||
#:########################################################################################:#
|
||||
# VERSIONS:
|
||||
# v2.2 2026-07-20 Restored direct MQTT control of pantry LEDs using the flattened topic
|
||||
# v2.1 2026-02-25 Updated yaml to zorruno layout V1.1
|
||||
# v2.0 2025-06-05 YAML tidyups
|
||||
# v1.0 2025-03-28 Initial Version
|
||||
@@ -21,6 +22,13 @@
|
||||
# - Relay 1: Dining Light
|
||||
# - Relay 2: Kitchen Light
|
||||
# - Relay 3: Extract Fan (virtual only, no power connected to 3rd relay)
|
||||
# - Relay 2 publishes ON/OFF commands directly to the downstairs kitchen pantry LEDs.
|
||||
#:########################################################################################:#
|
||||
# MQTT COMMANDS:
|
||||
# - Remote command topic:
|
||||
# ${mqtt_remote_device_command_topic}
|
||||
# Payload "${mqtt_remote_device_command_on}" -> pantry LEDs ON
|
||||
# Payload "${mqtt_remote_device_command_off}" -> pantry LEDs OFF
|
||||
#:########################################################################################:#
|
||||
# OFFLINE NOTES:
|
||||
# a) Home Assistant OFFLINE, but Network and MQTT ONLINE
|
||||
@@ -36,7 +44,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)
|
||||
@@ -50,7 +57,7 @@ substitutions:
|
||||
|
||||
# Project Naming
|
||||
project_name: "Zemismart Technologies.KS-811 Triple"
|
||||
project_version: "v2.1"
|
||||
project_version: "v2.2"
|
||||
|
||||
# Passwords & Secrets
|
||||
api_key: !secret esp-api_key # unfortunately you can't use substitutions inside secrets names
|
||||
@@ -61,6 +68,13 @@ substitutions:
|
||||
# Don't forget to switch it back when changed.
|
||||
current_ip_address: ${static_ip_address}
|
||||
|
||||
# MQTT REMOTE Controls
|
||||
mqtt_command_main_topic: !secret mqtt_command_main_topic
|
||||
mqtt_remote_device_name: "downstairskitchen-pantryleds"
|
||||
mqtt_remote_device_command_topic: "${mqtt_command_main_topic}/${mqtt_remote_device_name}"
|
||||
mqtt_remote_device_command_on: "ON"
|
||||
mqtt_remote_device_command_off: "OFF"
|
||||
|
||||
# Device Settings
|
||||
log_level: "INFO" # NONE, ERROR, WARN, INFO, DEBUG (Default), VERBOSE, VERY_VERBOSE
|
||||
update_interval: "60s" # update time for general sensors etc
|
||||
@@ -195,8 +209,16 @@ switch:
|
||||
name: "Relay 2: ${switch_2_name}"
|
||||
pin: GPIO12
|
||||
id: Relay_2
|
||||
on_turn_on:
|
||||
- mqtt.publish:
|
||||
topic: "${mqtt_remote_device_command_topic}"
|
||||
payload: "${mqtt_remote_device_command_on}"
|
||||
on_turn_off:
|
||||
- mqtt.publish:
|
||||
topic: "${mqtt_remote_device_command_topic}"
|
||||
payload: "${mqtt_remote_device_command_off}"
|
||||
|
||||
- platform: gpio
|
||||
name: "Relay 3: ${switch_3_name}"
|
||||
pin: GPIO14
|
||||
id: Relay_3
|
||||
id: Relay_3
|
||||
|
||||
Reference in New Issue
Block a user