parent
fa93b548b4
commit
96ef81ba8d
@ -1,29 +0,0 @@
|
||||
###################################
|
||||
## Holiday Lights on/off with IFTTT/Alexa support
|
||||
## [Etekcity Outlets](http://amzn.to/2efNoBP)
|
||||
## [433Mhz Transmitter and receiver](http://amzn.to/2dceNY2)
|
||||
###################################
|
||||
|
||||
- alias: 'Holiday Stuff on'
|
||||
trigger:
|
||||
- platform: sun
|
||||
event: sunset
|
||||
- platform: event
|
||||
event_type: holiday_lights_on
|
||||
|
||||
action:
|
||||
- service: script.holiday_switches_on
|
||||
|
||||
|
||||
- alias: 'Holiday Stuff off'
|
||||
trigger:
|
||||
- platform: sun
|
||||
event: sunrise
|
||||
#offset: '-0{{ (range(1, 3)|random|int) }}:{{ (range(1, 59)|random|int) }}:00'
|
||||
- platform: event
|
||||
event_type: holiday_lights_off
|
||||
|
||||
action:
|
||||
- service: script.switch_turn_off_all
|
||||
|
||||
|
||||
@ -1,28 +0,0 @@
|
||||
######################################################################################################
|
||||
###Script to shut switches with a 30 second delay to not trample codes
|
||||
### connected to [Etekcity Outlets](http://amzn.to/2efNoBP)
|
||||
## [433Mhz Transmitter and receiver](http://amzn.to/2dceNY2)
|
||||
### Sample Call
|
||||
# action:
|
||||
# - service: script.holiday_switches_on
|
||||
######################################################################################################
|
||||
|
||||
holiday_switches_on:
|
||||
sequence:
|
||||
- service: switch.turn_on
|
||||
entity_id: switch.living_room_outlet
|
||||
- delay: 00:00:30
|
||||
- service: switch.turn_on
|
||||
entity_id: switch.foyer_outlet
|
||||
- delay: 00:00:30
|
||||
- service: switch.turn_on
|
||||
entity_id: switch.front_door_outlet
|
||||
|
||||
- condition: sun
|
||||
after: sunset
|
||||
- service: switch.turn_on
|
||||
entity_id: switch.den_outlet
|
||||
- delay: 00:00:30
|
||||
- service: switch.turn_on
|
||||
entity_id: switch.dining_room_outlet
|
||||
|
||||
Loading…
Reference in new issue