From ef25093a987695121b01769d30d285292e3eb076 Mon Sep 17 00:00:00 2001 From: ccostan Date: Sun, 19 Jul 2020 18:50:16 -0400 Subject: [PATCH] Closes #812 - Control over C By GE lightStrip via Alexa Routines. Amazing. --- .../automation/Speech/responsibilities.yaml | 3 +-- .../System/detect_and_adjust_lights.yaml | 4 +++ config/automation/away.yaml | 1 + config/packages/cbyge.yaml | 25 +++++++++++++------ config/packages/lightning.yaml | 3 +++ 5 files changed, 26 insertions(+), 10 deletions(-) diff --git a/config/automation/Speech/responsibilities.yaml b/config/automation/Speech/responsibilities.yaml index a1aa2019..5c5604ef 100755 --- a/config/automation/Speech/responsibilities.yaml +++ b/config/automation/Speech/responsibilities.yaml @@ -2,9 +2,8 @@ ## Who's day is it anyway? Pretty sure my parent's didn't code to figure this out. ###################################################################### - alias: 'responsibilities' - + id: f39bd8db-a348-4024-a6a6-a3e3c836646c trigger: - - platform: state entity_id: input_boolean.responsibilities to: 'on' diff --git a/config/automation/System/detect_and_adjust_lights.yaml b/config/automation/System/detect_and_adjust_lights.yaml index 434e2014..20dd9e53 100755 --- a/config/automation/System/detect_and_adjust_lights.yaml +++ b/config/automation/System/detect_and_adjust_lights.yaml @@ -1,8 +1,12 @@ ############################################################################## ### Detect when lights are turned on and adjust them accordingly based on time. ### Code by @JesseWebDotCom +## @CCOSTAN +## Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig ############################################################################## - alias: detect lights and adjust the brightness when turned on based on time + id: 844b6be0-3ba3-4f8a-bbcd-a5ec5abdb88a + mode: parallel trigger: - platform: event event_type: state_changed diff --git a/config/automation/away.yaml b/config/automation/away.yaml index 179094c4..79e236f6 100755 --- a/config/automation/away.yaml +++ b/config/automation/away.yaml @@ -30,6 +30,7 @@ action: - service: script.interior_off + - service: script.paige_lights_off - service: switch.turn_off entity_id: switch.back_landscaping - service: input_boolean.turn_off diff --git a/config/packages/cbyge.yaml b/config/packages/cbyge.yaml index c9b9630f..981b7025 100755 --- a/config/packages/cbyge.yaml +++ b/config/packages/cbyge.yaml @@ -7,15 +7,24 @@ ################################################## ## Scripts +## Called in the AWAY script to shut all devices down. ################################################## script: paige_lights_off: - alias: 'Paige Lights Off' - id: 02cd5dfb-ef38-4d00-9c62-0d0b16a62d31 - sequence: - - service: media_player.play_media - data: - entity_id: media_player.upstairs - media_content_id: paigelightoff - media_content_type: routine + alias: 'Paige ALL Lights Off' + sequence: + - service: media_player.play_media + data: + entity_id: media_player.paige_room + media_content_id: paigelightoff + media_content_type: routine + + paige_lights_on: + alias: 'Paige Lights On - Just Overhead' + sequence: + - service: media_player.play_media + data: + entity_id: media_player.paige_room + media_content_id: paigelighton + media_content_type: routine diff --git a/config/packages/lightning.yaml b/config/packages/lightning.yaml index cf029be1..51f95d59 100755 --- a/config/packages/lightning.yaml +++ b/config/packages/lightning.yaml @@ -16,6 +16,9 @@ automation: - condition: state entity_id: group.family state: 'home' + - condition: numeric_state + entity_id: sensor.blitzortung_lightning_counter + above: 0 action: - service: script.notify_engine