diff --git a/automation/carlo_left.yaml b/automation/carlo_left.yaml new file mode 100755 index 00000000..0248d8c9 --- /dev/null +++ b/automation/carlo_left.yaml @@ -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 diff --git a/automation/device_status.yaml b/automation/device_status.yaml index d77caa4e..6a07a9ab 100755 --- a/automation/device_status.yaml +++ b/automation/device_status.yaml @@ -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: diff --git a/automation/holiday.yaml b/automation/holiday.yaml new file mode 100755 index 00000000..b657edd2 --- /dev/null +++ b/automation/holiday.yaml @@ -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 + \ No newline at end of file diff --git a/automation/ifttt_amps.yaml b/automation/ifttt_amps.yaml index 53887d00..2eaac309 100755 --- a/automation/ifttt_amps.yaml +++ b/automation/ifttt_amps.yaml @@ -17,4 +17,5 @@ action: - service: switch.turn_off - entity_id: switch.living_room_amp \ No newline at end of file + entity_id: switch.living_room_amp + diff --git a/automation/tv_time.yaml b/automation/tv_time.yaml index 6d96903b..cdc5598f 100755 --- a/automation/tv_time.yaml +++ b/automation/tv_time.yaml @@ -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 diff --git a/automation/tv_time_off.yaml b/automation/tv_time_off.yaml index be53a6db..a5d93949 100755 --- a/automation/tv_time_off.yaml +++ b/automation/tv_time_off.yaml @@ -1,4 +1,4 @@ -- alias: TV Time +- alias: TV Time off trigger: - platform: state entity_id: sensor.samsungtv diff --git a/group/lights.yaml b/group/lights.yaml index 287c8cb8..2dbd40ca 100755 --- a/group/lights.yaml +++ b/group/lights.yaml @@ -35,6 +35,7 @@ Dinette: Den: entities: - light.den_lamp + - switch.halloween_lights Foyer: entities: diff --git a/switch/rf_outlets.yaml b/switch/rf_outlets.yaml index 416c487a..5c2f739f 100755 --- a/switch/rf_outlets.yaml +++ b/switch/rf_outlets.yaml @@ -8,7 +8,7 @@ code_on: 5265155 code_off: 5265164 # Outlet 2 - Bathroom_Amp: + Halloween_Lights_Den: protocol: 1 pulselength: 186 code_on: 5264835