automation: - id: poollight_sync_tasmo_on alias: "Sync TASMO → Pool Light (turn ON)" trigger: - platform: state entity_id: switch.tasmo_ks811t_0707_downstloun_2c to: "on" condition: - condition: state entity_id: switch.esp_poollightpower_power_output state: "off" action: - service: switch.turn_on target: entity_id: switch.esp_poollightpower_power_output - id: poollight_sync_tasmo_off alias: "Sync TASMO → Pool Light (turn OFF)" trigger: - platform: state entity_id: switch.tasmo_ks811t_0707_downstloun_2c to: "off" condition: - condition: state entity_id: switch.esp_poollightpower_power_output state: "on" action: - service: switch.turn_off target: entity_id: switch.esp_poollightpower_power_output - id: poollight_sync_athplug_on alias: "Sync Pool Light → TASMO (turn ON)" trigger: - platform: state entity_id: switch.esp_poollightpower_power_output to: "on" condition: - condition: state entity_id: switch.tasmo_ks811t_0707_downstloun_2c state: "off" action: - service: switch.turn_on target: entity_id: switch.tasmo_ks811t_0707_downstloun_2c - id: poollight_sync_athplug_off alias: "Sync Pool Light → TASMO (turn OFF)" trigger: - platform: state entity_id: switch.esp_poollightpower_power_output to: "off" condition: - condition: state entity_id: switch.tasmo_ks811t_0707_downstloun_2c state: "on" action: - service: switch.turn_off target: entity_id: switch.tasmo_ks811t_0707_downstloun_2c