esphome pool light and downs dishwasher device swaps

This commit is contained in:
root
2025-06-15 17:37:27 +12:00
parent 4e0986a73f
commit 4cd88a44a7
21 changed files with 430 additions and 3738 deletions

View File

@@ -1,12 +1,12 @@
# packages/poollight_operation.yaml
# packages/pool_light_boost_switch.yaml
homeassistant:
customize:
input_boolean.poollight_mode_switch:
icon: mdi:spotlight
input_boolean.poollights_mode_switch:
icon: mdi:light-flood-up
input_boolean:
poollight_mode_switch:
poollights_mode_switch:
name: "Pool Light Operation"
initial: false
@@ -15,40 +15,40 @@ input_boolean:
initial: false
automation:
- alias: "Pool Light → send BOOST when user turns UI switch ON"
- alias: "Pool Lights → send BOOST when user turns UI switch ON"
trigger:
platform: state
entity_id: input_boolean.poollight_mode_switch
entity_id: input_boolean.poollights_mode_switch
to: "on"
condition:
condition: state
entity_id: switch.esp_poollightpower_power_output
entity_id: switch.esp_poollightspower_power_output
state: "off"
action:
- service: mqtt.publish
data:
topic: "viewroad-commands/poollight-timer/operation"
topic: "viewroad-commands/poollights-timer/operation"
payload: "BOOST"
- alias: "Pool Light → send OFF & schedule TIMER when user turns UI switch OFF"
- alias: "Pool Lights → send OFF & schedule TIMER when user turns UI switch OFF"
trigger:
platform: state
entity_id: input_boolean.poollight_mode_switch
entity_id: input_boolean.poollights_mode_switch
to: "off"
condition:
condition: state
entity_id: switch.esp_poollightpower_power_output
entity_id: switch.esp_poollightspower_power_output
state: "on"
action:
- service: mqtt.publish
data:
topic: "viewroad-commands/poollight-timer/operation"
topic: "viewroad-commands/poollights-timer/operation"
payload: "OFF"
- service: input_boolean.turn_on
data:
entity_id: input_boolean.timer_light_midnight_pending
- alias: "Pool Light → send TIMER at midnight"
- alias: "Pool Lights → send TIMER at midnight"
trigger:
platform: time
at: "00:00:00"
@@ -59,37 +59,37 @@ automation:
action:
- service: mqtt.publish
data:
topic: "viewroad-commands/poollight-timer/operation"
topic: "viewroad-commands/poollights-timer/operation"
payload: "TIMER"
- service: input_boolean.turn_off
data:
entity_id: input_boolean.timer_light_midnight_pending
- alias: "Pool Light → sync UI switch with real output (no MQTT)"
- 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_poollightspower_power_output
action:
- choose:
- conditions:
- condition: state
entity_id: switch.esp_poollightpower_power_output
entity_id: switch.esp_poollightspower_power_output
state: "on"
sequence:
- service: input_boolean.turn_on
data:
entity_id: input_boolean.poollight_mode_switch
entity_id: input_boolean.poollights_mode_switch
- service: input_boolean.turn_off
data:
entity_id: input_boolean.timer_light_midnight_pending
- conditions:
- condition: state
entity_id: switch.esp_poollightpower_power_output
entity_id: switch.esp_poollightspower_power_output
state: "off"
sequence:
- service: input_boolean.turn_off
data:
entity_id: input_boolean.poollight_mode_switch
entity_id: input_boolean.poollights_mode_switch
- service: input_boolean.turn_on
data:
entity_id: input_boolean.timer_light_midnight_pending