Edit esp-bedrm1arlecbulb.yaml
This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
# https://home.fox.co.nz/gitea/zorruno/zorruno-homeassistant/src/branch/master/esphome/esp-bedrm1arlecbulb.yaml
|
# https://home.fox.co.nz/gitea/zorruno/zorruno-homeassistant/src/branch/master/esphome/esp-bedrm1arlecbulb.yaml
|
||||||
#:########################################################################################:#
|
#:########################################################################################:#
|
||||||
# VERSIONS:
|
# VERSIONS:
|
||||||
|
# v1.5 2026-07-26 Republish retained MQTT status whenever the broker reconnects
|
||||||
# v1.4 2026-07-25 Standardized MQTT payloads: "ON"/"OFF" → "On"/"Off"
|
# v1.4 2026-07-25 Standardized MQTT payloads: "ON"/"OFF" → "On"/"Off"
|
||||||
# v1.3 2026-07-20 Simplified local MQTT command and status topics to the device root
|
# v1.3 2026-07-20 Simplified local MQTT command and status topics to the device root
|
||||||
# v1.2 2026-02-25 Updated yaml to zorruno layout V1.1
|
# v1.2 2026-02-25 Updated yaml to zorruno layout V1.1
|
||||||
@@ -57,7 +58,7 @@ substitutions:
|
|||||||
|
|
||||||
# Project Naming
|
# Project Naming
|
||||||
project_name: "Grid Connect GLD120HA RGBWW.Arlec"
|
project_name: "Grid Connect GLD120HA RGBWW.Arlec"
|
||||||
project_version: "v1.4"
|
project_version: "v1.5"
|
||||||
|
|
||||||
# Passwords & Secrets (Unfortunately, you can't use substitutions inside secret names)
|
# Passwords & Secrets (Unfortunately, you can't use substitutions inside secret names)
|
||||||
# Re-using your existing bulb flasher secrets (adjust if you prefer per-device secrets)
|
# Re-using your existing bulb flasher secrets (adjust if you prefer per-device secrets)
|
||||||
@@ -301,6 +302,16 @@ logger:
|
|||||||
# MQTT COMMANDS (adds device-specific triggers to common MQTT)
|
# MQTT COMMANDS (adds device-specific triggers to common MQTT)
|
||||||
#:########################################################################################:#
|
#:########################################################################################:#
|
||||||
mqtt:
|
mqtt:
|
||||||
|
on_connect:
|
||||||
|
then:
|
||||||
|
- mqtt.publish:
|
||||||
|
topic: "${mqtt_local_status_topic}"
|
||||||
|
payload: !lambda |-
|
||||||
|
return id(bulb_light).current_values.is_on()
|
||||||
|
? "${mqtt_local_device_command_ON}"
|
||||||
|
: "${mqtt_local_device_command_OFF}";
|
||||||
|
retain: true
|
||||||
|
|
||||||
on_message:
|
on_message:
|
||||||
- topic: "${mqtt_local_command_topic}"
|
- topic: "${mqtt_local_command_topic}"
|
||||||
payload: "${mqtt_local_device_command_ON}"
|
payload: "${mqtt_local_device_command_ON}"
|
||||||
|
|||||||
Reference in New Issue
Block a user