Edit esp-officeduallights.yaml

This commit is contained in:
ESPHome Device Builder
2026-09-13 11:19:34 +12:00
parent 2c22e6c07f
commit 3ead85ef29
+20 -4
View File
@@ -241,13 +241,21 @@ mqtt:
payload: "On"
then:
- script.stop: relay_1_timer_script
- light.turn_on: light_1
- if:
condition:
lambda: "return !id(relay_1).state;"
then:
- light.turn_on: light_1
- topic: "${mqtt_local_command1_topic}"
payload: "Off"
then:
- script.stop: relay_1_timer_script
- light.turn_off: light_1
- if:
condition:
lambda: "return id(relay_1).state;"
then:
- light.turn_off: light_1
- topic: "${mqtt_local_command1_topic}"
then:
@@ -279,13 +287,21 @@ mqtt:
payload: "On"
then:
- script.stop: relay_2_timer_script
- light.turn_on: light_2
- if:
condition:
lambda: "return !id(relay_2).state;"
then:
- light.turn_on: light_2
- topic: "${mqtt_local_command2_topic}"
payload: "Off"
then:
- script.stop: relay_2_timer_script
- light.turn_off: light_2
- if:
condition:
lambda: "return id(relay_2).state;"
then:
- light.turn_off: light_2
- topic: "${mqtt_local_command2_topic}"
then: