ESPresence, OBK, and other updates
This commit is contained in:
65
automations/two_way_light_switching.yaml
Normal file
65
automations/two_way_light_switching.yaml
Normal file
@@ -0,0 +1,65 @@
|
||||
- alias: "Two Way Lights - Garage Corridor - 1"
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: switch.obk_garageswitch_1_e6f7_1
|
||||
action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: switch.obk_garageswitch_1_e6f7_1
|
||||
state: "on"
|
||||
sequence:
|
||||
- service: switch.turn_on
|
||||
entity_id: switch.tasmo_ks811d_5613_lounge_4b
|
||||
default:
|
||||
- service: switch.turn_off
|
||||
entity_id: switch.tasmo_ks811d_5613_lounge_4b
|
||||
- alias: "Two Way Lights - Garage Corridor - 2"
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: switch.tasmo_ks811d_5613_lounge_4b
|
||||
action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: switch.tasmo_ks811d_5613_lounge_4b
|
||||
state: "on"
|
||||
sequence:
|
||||
- service: switch.turn_on
|
||||
entity_id: switch.obk_garageswitch_1_e6f7_1
|
||||
default:
|
||||
- service: switch.turn_off
|
||||
entity_id: switch.obk_garageswitch_1_e6f7_1
|
||||
|
||||
- alias: "Two Way Lights - Garage Main - 1"
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: switch.obk_garageswitch_1_e6f7_2
|
||||
action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: switch.obk_garageswitch_1_e6f7_2
|
||||
state: "on"
|
||||
sequence:
|
||||
- service: switch.turn_on
|
||||
entity_id: switch.tasmo_sbas_0407_garagelight
|
||||
default:
|
||||
- service: switch.turn_off
|
||||
entity_id: switch.tasmo_sbas_0407_garagelight
|
||||
- alias: "Two Way Lights - Garage Main - 2"
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: switch.tasmo_sbas_0407_garagelight
|
||||
action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: switch.tasmo_sbas_0407_garagelight
|
||||
state: "on"
|
||||
sequence:
|
||||
- service: switch.turn_on
|
||||
entity_id: switch.obk_garageswitch_1_e6f7_2
|
||||
default:
|
||||
- service: switch.turn_off
|
||||
entity_id: switch.obk_garageswitch_1_e6f7_2
|
Reference in New Issue
Block a user