Setting up Halloween lights

This commit is contained in:
CCOSTAN
2016-10-19 17:38:48 +00:00
parent 0f4041c31d
commit 5fdc5762da
8 changed files with 42 additions and 5 deletions

9
automation/carlo_left.yaml Executable file
View File

@@ -0,0 +1,9 @@
- alias: 'Carlo has left the building'
trigger:
- platform: state
entity_id: device_tracker.carlo
state: not_home
action:
- service: light.turn_off
entity_id: light.office_lamp

View File

@@ -1,6 +1,5 @@
- alias: 'Device Status'
hide_entity: True
#This recipe sends a POST to IFTTT Maker channel. IFTTT then sends me a SMS Text with "device_status : Wii is Offline."
trigger:
- platform: state
entity_id:

23
automation/holiday.yaml Executable file
View File

@@ -0,0 +1,23 @@
- alias: 'Holiday Stuff on'
trigger:
- platform: sun
event: sunset
- platform: event
event_type: halloween_lights_on
action:
- service: switch.turn_on
entity_id: switch.halloween_lights_den
- alias: 'Holiday Stuff off'
trigger:
- platform: sun
event: sunrise
offset: '-03:00:00'
- platform: event
event_type: halloween_lights_off
action:
- service: switch.turn_on
entity_id: switch.halloween_lights_den

View File

@@ -17,4 +17,5 @@
action:
- service: switch.turn_off
entity_id: switch.living_room_amp
entity_id: switch.living_room_amp

View File

@@ -2,12 +2,14 @@
trigger:
- platform: sun
event: sunset
offset: '+00:30:00'
offset: '+01:00:00'
- platform: event
event_type: tv_time
- platform: state
entity_id: sensor.samsungtv
state: Online
- platform: time
after: '20:00:00'
condition:
condition: and
@@ -24,6 +26,8 @@
- condition: state
entity_id: input_boolean.guest_mode
state: 'off'
- condition: time
after: '20:00:00'
action:
service: scene.turn_on

View File

@@ -1,4 +1,4 @@
- alias: TV Time
- alias: TV Time off
trigger:
- platform: state
entity_id: sensor.samsungtv