From 47c551694f56434b1025cad777c8c7c00ce4b267 Mon Sep 17 00:00:00 2001 From: ESPHome Device Builder Date: Sun, 16 Aug 2026 17:24:31 +1200 Subject: [PATCH] Edit esp-officeduallights.yaml --- esphome/esp-officeduallights.yaml | 35 ------------------------------- 1 file changed, 35 deletions(-) diff --git a/esphome/esp-officeduallights.yaml b/esphome/esp-officeduallights.yaml index 660311f..54c2ee7 100644 --- a/esphome/esp-officeduallights.yaml +++ b/esphome/esp-officeduallights.yaml @@ -233,11 +233,6 @@ mqtt: payload: !lambda |- return id(relay_2).state ? "${mqtt_command_on}" : "${mqtt_command_off}"; retain: true - - mqtt.publish: - topic: "${mqtt_shared_overhead_status_topic}" - payload: !lambda |- - return id(relay_2).state ? "${mqtt_command_on}" : "${mqtt_command_off}"; - retain: true on_message: - topic: "${mqtt_local_command1_topic}" @@ -361,28 +356,6 @@ mqtt: then: - light.turn_off: light_2 - # Mirror shared overhead status from esp-officelights onto light_2. This handles the - # case where the main lightswitch's overhead timer finishes and turns off the overhead. - # State guards prevent ping-pong with the command topic handlers above. - - topic: "${mqtt_shared_overhead_status_topic}" - payload: "${mqtt_command_on}" - then: - - if: - condition: - lambda: "return !id(relay_2).state;" - then: - - light.turn_on: light_2 - - - topic: "${mqtt_shared_overhead_status_topic}" - payload: "${mqtt_command_off}" - then: - - script.stop: relay_2_timer_script - - if: - condition: - lambda: "return id(relay_2).state;" - then: - - light.turn_off: light_2 - #:########################################################################################:# # SCRIPT COMPONENT: # Independent per-relay timer scripts @@ -494,10 +467,6 @@ switch: topic: "${mqtt_local_status2_topic}" payload: "On" retain: true - - mqtt.publish: - topic: "${mqtt_shared_overhead_status_topic}" - payload: "On" - retain: true - if: condition: switch.is_off: relay_1 @@ -510,10 +479,6 @@ switch: topic: "${mqtt_local_status2_topic}" payload: "Off" retain: true - - mqtt.publish: - topic: "${mqtt_shared_overhead_status_topic}" - payload: "Off" - retain: true - if: condition: switch.is_off: relay_1