mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-11-07 01:52:11 +00:00
Setting up Halloween lights
This commit is contained in:
9
automation/carlo_left.yaml
Executable file
9
automation/carlo_left.yaml
Executable 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
|
||||
@@ -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
23
automation/holiday.yaml
Executable 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
|
||||
|
||||
@@ -17,4 +17,5 @@
|
||||
|
||||
action:
|
||||
- service: switch.turn_off
|
||||
entity_id: switch.living_room_amp
|
||||
entity_id: switch.living_room_amp
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
- alias: TV Time
|
||||
- alias: TV Time off
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: sensor.samsungtv
|
||||
|
||||
Reference in New Issue
Block a user