From ce86ba12cd49c1a21a6ba04e5c21b86181f6a321 Mon Sep 17 00:00:00 2001 From: CCOSTAN Date: Thu, 24 Nov 2016 00:54:19 +0000 Subject: [PATCH] Some Accent light goodness. --- automation/kitchen_lights_and_accents.yaml | 37 ++++++++++++++++++++++ configuration.yaml | 2 ++ 2 files changed, 39 insertions(+) create mode 100755 automation/kitchen_lights_and_accents.yaml diff --git a/automation/kitchen_lights_and_accents.yaml b/automation/kitchen_lights_and_accents.yaml new file mode 100755 index 00000000..474c3db8 --- /dev/null +++ b/automation/kitchen_lights_and_accents.yaml @@ -0,0 +1,37 @@ +##################################################################################### +### If the Kitchen Lights go on for more than 10 minutes, turn off the accent lights +##################################################################################### + +- alias: Kitchen lights on - Accent lights off + trigger: + - platform: state + entity_id: group.kitchen_lights + state: 'on' + for: '00:10:00' + + condition: + - condition: state + entity_id: switch.kitchen_accents + state: 'on' + + action: + - service: switch.turn_off + entity_id: switch.kitchen_accents + +############################################################################## + +- alias: Kitchen lights off - turn on Accent lights + trigger: + - platform: state + entity_id: group.kitchen_lights + state: 'off' + + condition: + - condition: sun + after: 'sunset' + - condition: time + before: '02:00:00' + + action: + - service: switch.turn_on + entity_id: switch.kitchen_accents diff --git a/configuration.yaml b/configuration.yaml index 17ac0ac8..e4ae88d9 100755 --- a/configuration.yaml +++ b/configuration.yaml @@ -57,6 +57,8 @@ logbook: - sensor.garadget_large_time_in_state - sensor.garadget_large_wifi_signal_strength - sensor.garadget_small_wifi_signal_strength + - sensor.garadget_small_reflection_rate + - sensor.garadget_large_reflection_rate - group.garage_doors #logger: # default: info