a bunch of esphome improvements
This commit is contained in:
@@ -1,17 +1,60 @@
|
||||
automation:
|
||||
- alias: Turn on pool light with downstairs lounge switch
|
||||
- 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"
|
||||
- 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: homeassistant.turn_on
|
||||
entity_id: switch.tasmo_athplug_5103_1
|
||||
- alias: Turn off pool light with downstairs lounge switch
|
||||
- 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"
|
||||
- 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: homeassistant.turn_off
|
||||
entity_id: switch.tasmo_athplug_5103_1
|
||||
- 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
|
||||
|
Reference in New Issue
Block a user