Closes #812 - Control over C By GE lightStrip via Alexa Routines. Amazing.
This commit is contained in:
parent
3df4ef4d90
commit
ef25093a98
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue