From 5ed2c218621808d465bec65d9968d7eaa09146e1 Mon Sep 17 00:00:00 2001 From: Jeffrey Stone Date: Sat, 9 Nov 2019 19:15:00 -0500 Subject: [PATCH] Added script for toggling fans --- config/scripts/general.yaml | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/config/scripts/general.yaml b/config/scripts/general.yaml index 83c7e05..aad42d4 100755 --- a/config/scripts/general.yaml +++ b/config/scripts/general.yaml @@ -15,12 +15,10 @@ open_garage: - service: cover.open_cover entity_id: cover.cargo_bay - - sunset_garage_open: sequence: - condition: state - entity_id: binary_sensor.ecolink_garage_door_tilt_sensor_sensor + entity_id: group.garage_doors state: 'on' - service: script.driveway_all_on @@ -47,6 +45,7 @@ inside_all_on: - service: scene.turn_on data: entity_id: scene.livingroom_normal + inside_all_off: sequence: - data: @@ -70,14 +69,17 @@ inside_all_off: service: switch.turn_off - entity_id: light.jeff_lamp service: light.turn_off + all_fans_off: sequence: - - data: - entity_id: switch.upstairs_fan - service: switch.turn_off - - data: - entity_id: switch.living_room_fan - service: switch.turn_off + - service: group.turn_off + entity_id: group.all_fans + +all_fans_on: + sequence: + - service: group.turn_on + entity_id: group.all_fans + family_is_home: sequence: - condition: state @@ -98,6 +100,7 @@ family_is_away: topic: house/family/status payload_template: Away retain: true + driveway_on: sequence: - condition: state @@ -109,6 +112,7 @@ driveway_on: - data: entity_id: light.side_door_light service: light.turn_on + driveway_off: sequence: - delay: @@ -123,26 +127,26 @@ driveway_off: entity_id: switch.driveway_light - service: light.turn_off entity_id: light.side_door_light + chromecast_media_stop: sequence: - service: media_player.media_stop data: entity_id: media_player.theater + appliances_on: sequence: - service: switch.turn_on data: entity_id: switch.box_fans + appliances_off: sequence: - data: - entity_id: switch.box_fans + entity_id: switch.incense service: switch.turn_off - data: - entity_id: switch.incense_3 - service: switch.turn_off - - data: - entity_id: switch.artemis_2 + entity_id: switch.artemis service: switch.turn_off