various tidyups
This commit is contained in:
@@ -22,7 +22,7 @@ automation:
|
||||
to: "on"
|
||||
condition:
|
||||
condition: state
|
||||
entity_id: switch.esp_poollightpower_power_output
|
||||
entity_id: switch.esp_poollightpower2_switch
|
||||
state: "off"
|
||||
action:
|
||||
- service: mqtt.publish
|
||||
@@ -37,7 +37,7 @@ automation:
|
||||
to: "off"
|
||||
condition:
|
||||
condition: state
|
||||
entity_id: switch.esp_poollightpower_power_output
|
||||
entity_id: switch.esp_poollightpower2_switch
|
||||
state: "on"
|
||||
action:
|
||||
- service: mqtt.publish
|
||||
@@ -68,12 +68,12 @@ automation:
|
||||
- alias: "Pool Lights → sync UI switch with real output (no MQTT)"
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: switch.esp_poollightpower_power_output
|
||||
entity_id: switch.esp_poollightpower2_switch
|
||||
action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: switch.esp_poollightpower_power_output
|
||||
entity_id: switch.esp_poollightpower2_switch
|
||||
state: "on"
|
||||
sequence:
|
||||
- service: input_boolean.turn_on
|
||||
@@ -84,7 +84,7 @@ automation:
|
||||
entity_id: input_boolean.timer_light_midnight_pending
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: switch.esp_poollightpower_power_output
|
||||
entity_id: switch.esp_poollightpower2_switch
|
||||
state: "off"
|
||||
sequence:
|
||||
- service: input_boolean.turn_off
|
||||
|
||||
Reference in New Issue
Block a user