Closes #812 - Control over C By GE lightStrip via Alexa Routines. Amazing.

This commit is contained in:
ccostan 2020-07-19 18:50:16 -04:00
parent 3df4ef4d90
commit ef25093a98
5 changed files with 26 additions and 10 deletions

View File

@ -2,9 +2,8 @@
## Who's day is it anyway? Pretty sure my parent's didn't code to figure this out. ## Who's day is it anyway? Pretty sure my parent's didn't code to figure this out.
###################################################################### ######################################################################
- alias: 'responsibilities' - alias: 'responsibilities'
id: f39bd8db-a348-4024-a6a6-a3e3c836646c
trigger: trigger:
- platform: state - platform: state
entity_id: input_boolean.responsibilities entity_id: input_boolean.responsibilities
to: 'on' to: 'on'

View File

@ -1,8 +1,12 @@
############################################################################## ##############################################################################
### Detect when lights are turned on and adjust them accordingly based on time. ### Detect when lights are turned on and adjust them accordingly based on time.
### Code by @JesseWebDotCom ### 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 - alias: detect lights and adjust the brightness when turned on based on time
id: 844b6be0-3ba3-4f8a-bbcd-a5ec5abdb88a
mode: parallel
trigger: trigger:
- platform: event - platform: event
event_type: state_changed event_type: state_changed

View File

@ -30,6 +30,7 @@
action: action:
- service: script.interior_off - service: script.interior_off
- service: script.paige_lights_off
- service: switch.turn_off - service: switch.turn_off
entity_id: switch.back_landscaping entity_id: switch.back_landscaping
- service: input_boolean.turn_off - service: input_boolean.turn_off

View File

@ -7,15 +7,24 @@
################################################## ##################################################
## Scripts ## Scripts
## Called in the AWAY script to shut all devices down.
################################################## ##################################################
script: script:
paige_lights_off: paige_lights_off:
alias: 'Paige Lights Off' alias: 'Paige ALL Lights Off'
id: 02cd5dfb-ef38-4d00-9c62-0d0b16a62d31
sequence: sequence:
- service: media_player.play_media - service: media_player.play_media
data: data:
entity_id: media_player.upstairs entity_id: media_player.paige_room
media_content_id: paigelightoff media_content_id: paigelightoff
media_content_type: routine 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

View File

@ -16,6 +16,9 @@ automation:
- condition: state - condition: state
entity_id: group.family entity_id: group.family
state: 'home' state: 'home'
- condition: numeric_state
entity_id: sensor.blitzortung_lightning_counter
above: 0
action: action:
- service: script.notify_engine - service: script.notify_engine