4037 lines
97 KiB
YAML
4037 lines
97 KiB
YAML
- id: ae9ebdfe-d932-48e0-ac9c-6e23be5c7e56
|
|
alias: AI | Person Detected | Back Door
|
|
description: A Person was detected at the Back Door
|
|
mode: single
|
|
triggers:
|
|
- device_id: 08f8a662aa55cf0794b8b9d5bb924980
|
|
domain: nest
|
|
type: doorbell_chime
|
|
trigger: device
|
|
conditions: []
|
|
actions:
|
|
- action: camera.snapshot
|
|
metadata: {}
|
|
data:
|
|
filename: /config/www/tmp/snapshot-back-door.jpg
|
|
target:
|
|
entity_id: camera.back_door_doorbell
|
|
- delay:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 1
|
|
- action: llmvision.image_analyzer
|
|
metadata: {}
|
|
data:
|
|
remember: true
|
|
include_filename: false
|
|
max_tokens: 100
|
|
temperature: 0.2
|
|
generate_title: true
|
|
expose_images: true
|
|
expose_images_persist: true
|
|
model: llama3.2
|
|
image_file: /config/www/tmp/snapshot-back-door.jpg
|
|
message: Describe in one sentence the person in the picture. If they are carrying
|
|
something, describe what they are carrying.
|
|
response_variable: response
|
|
- action: notify.parent_devices
|
|
metadata: {}
|
|
data:
|
|
message: '{{ response.text }}
|
|
|
|
'
|
|
title: Someone is at the Back Door
|
|
data:
|
|
image: /local/tmp/snapshot-back-door.jpg
|
|
entity_id: camera.back
|
|
actions:
|
|
- action: URI
|
|
title: Open Camera
|
|
uri: /lovelace-dashboard/back-door
|
|
- id: afac78c3-7ea7-4e4d-a339-83557fa61b60
|
|
alias: AI | Person Detected | Front Door
|
|
description: A Person was detected at the Front Door
|
|
mode: single
|
|
triggers:
|
|
- device_id: 709fa2e96409d0be65a4ad56998a6002
|
|
domain: nest
|
|
type: doorbell_chime
|
|
trigger: device
|
|
conditions: []
|
|
actions:
|
|
- action: camera.snapshot
|
|
metadata: {}
|
|
data:
|
|
filename: /config/www/tmp/snapshot-front-door.jpg
|
|
target:
|
|
entity_id: camera.front_door_doorbell
|
|
- delay:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 1
|
|
- action: llmvision.image_analyzer
|
|
metadata: {}
|
|
data:
|
|
remember: true
|
|
include_filename: false
|
|
max_tokens: 100
|
|
temperature: 0.2
|
|
generate_title: true
|
|
expose_images: true
|
|
expose_images_persist: true
|
|
model: llama3.2
|
|
image_file: /config/www/tmp/snapshot-front-door.jpg
|
|
message: Describe in one sentence the person in the picture. If they are carrying
|
|
something, describe what they are carrying.
|
|
response_variable: response
|
|
- action: notify.parent_devices
|
|
metadata: {}
|
|
data:
|
|
message: '{{ response.text }}
|
|
|
|
'
|
|
title: Someone is at the Front Door
|
|
data:
|
|
image: /local/tmp/snapshot-front-door.jpg
|
|
entity_id: camera.front_door_doorbell
|
|
actions:
|
|
- action: URI
|
|
title: Open Camera
|
|
uri: /lovelace-dashboard/front-door
|
|
- id: a8572890-cca7-4414-b3a9-4d6ef5a66b28
|
|
alias: Notification | Appliance | Dishwasher Finished
|
|
description: Notify Parent Devices when the Dishwasher has finished
|
|
mode: single
|
|
triggers:
|
|
- trigger: state
|
|
entity_id:
|
|
- binary_sensor.d828c9343e5b_dishwasher_is_clean
|
|
to: 'on'
|
|
conditions: []
|
|
actions:
|
|
- action: notify.parent_devices
|
|
metadata: {}
|
|
data_template:
|
|
title: Dishwasher Finished
|
|
message: 'The dishwasher has finished running
|
|
|
|
'
|
|
data:
|
|
tag: appliance
|
|
- id: a9340356-40d6-43d0-ab76-8b186831af28
|
|
alias: Notification | Appliance | Dryer Finished
|
|
description: Notify Parent Devices when the Dryer has finished
|
|
mode: single
|
|
triggers:
|
|
- trigger: state
|
|
entity_id:
|
|
- binary_sensor.rm833274c_laundry_end_of_cycle
|
|
to: 'on'
|
|
conditions: []
|
|
actions:
|
|
- action: notify.parent_devices
|
|
metadata: {}
|
|
data_template:
|
|
title: Dryer Finished
|
|
message: 'The dryer has finished running
|
|
|
|
'
|
|
data:
|
|
tag: appliance
|
|
- id: f0f77397-a4be-4cf2-a7b0-12709e8267f2
|
|
alias: Notification | Appliance | Washing Machine Finished
|
|
description: Notify Parent Devices when the Washing Machine has finished
|
|
mode: single
|
|
triggers:
|
|
- trigger: state
|
|
entity_id:
|
|
- binary_sensor.rm171996g_laundry_end_of_cycle
|
|
to: 'on'
|
|
conditions: []
|
|
actions:
|
|
- action: notify.parent_devices
|
|
metadata: {}
|
|
data_template:
|
|
title: Washing Machine Finished
|
|
message: 'The washing machine has finished running
|
|
|
|
'
|
|
data:
|
|
tag: appliance
|
|
- id: '1692901397864'
|
|
alias: Turn on the House at Sunset
|
|
description: Lights will turn on 45 minutes before sunset
|
|
trigger:
|
|
- platform: sun
|
|
event: sunset
|
|
offset: -00:45
|
|
condition: []
|
|
action:
|
|
- service: light.turn_on
|
|
data:
|
|
brightness_pct: 100
|
|
target:
|
|
area_id:
|
|
- back_yard
|
|
- barn
|
|
- camdyn_s_room
|
|
- den
|
|
- dining_room
|
|
- entryway
|
|
- family_room
|
|
- foyer
|
|
- front_yard
|
|
- hallway
|
|
- kitchen
|
|
- laundry_room
|
|
- living_room
|
|
- master_bedroom
|
|
- molly_s_room
|
|
- patio
|
|
- side_yard
|
|
- family_room_ambient
|
|
mode: single
|
|
- id: '1692901738566'
|
|
alias: It's time to make dinner
|
|
description: Turn the lights on in the kitchen to start making dinner
|
|
trigger:
|
|
- platform: time
|
|
at: '16:45:00'
|
|
condition: []
|
|
action:
|
|
- service: light.turn_on
|
|
data:
|
|
brightness_pct: 100
|
|
transition: 900
|
|
target:
|
|
area_id:
|
|
- kitchen
|
|
- dining_room
|
|
mode: single
|
|
- id: '1692902441971'
|
|
alias: It's time to Relax
|
|
description: The relax scene is activated
|
|
trigger:
|
|
- platform: time
|
|
at: '20:15:00'
|
|
condition: []
|
|
action:
|
|
- service: scene.turn_on
|
|
target:
|
|
entity_id: scene.back_yard_dimmed
|
|
metadata: {}
|
|
- service: scene.turn_on
|
|
target:
|
|
entity_id: scene.camdyn_s_room_relax
|
|
metadata: {}
|
|
- service: scene.turn_on
|
|
target:
|
|
entity_id: scene.molly_s_room_dimmed
|
|
metadata: {}
|
|
- service: scene.turn_on
|
|
target:
|
|
entity_id: scene.hallway_dimmed
|
|
metadata: {}
|
|
- service: scene.turn_on
|
|
target:
|
|
entity_id: scene.master_bedroom_relax
|
|
metadata: {}
|
|
- service: scene.turn_on
|
|
target:
|
|
entity_id: scene.foyer_relax
|
|
metadata: {}
|
|
- service: scene.turn_on
|
|
target:
|
|
entity_id: scene.living_room_relax
|
|
metadata: {}
|
|
- service: scene.turn_on
|
|
target:
|
|
entity_id: scene.den_relax
|
|
metadata: {}
|
|
- service: scene.turn_on
|
|
target:
|
|
entity_id: scene.side_yard_dimmed
|
|
metadata: {}
|
|
- service: scene.turn_on
|
|
target:
|
|
entity_id: scene.kitchen_relax
|
|
metadata: {}
|
|
- service: scene.turn_on
|
|
target:
|
|
entity_id: scene.dining_room_relax
|
|
metadata: {}
|
|
- service: scene.turn_on
|
|
target:
|
|
entity_id: scene.family_room_relax
|
|
metadata: {}
|
|
- service: scene.turn_on
|
|
target:
|
|
entity_id: scene.patio_relax
|
|
metadata: {}
|
|
mode: single
|
|
- id: '1692902977587'
|
|
alias: Turn off the outside yard lights
|
|
description: Lights turn off at midnight
|
|
trigger:
|
|
- platform: time
|
|
at: 00:00:00
|
|
condition: []
|
|
action:
|
|
- service: light.turn_off
|
|
data: {}
|
|
target:
|
|
area_id:
|
|
- back_yard
|
|
- side_yard
|
|
- front_yard
|
|
mode: single
|
|
- id: '1692903090246'
|
|
alias: It's time to workout
|
|
description: ''
|
|
trigger:
|
|
- platform: time
|
|
at: 05:40:00
|
|
condition: []
|
|
action:
|
|
- service: light.turn_on
|
|
data: {}
|
|
target:
|
|
area_id: basement
|
|
mode: single
|
|
- id: '1692903179100'
|
|
alias: Workout is done
|
|
description: ''
|
|
trigger:
|
|
- platform: time
|
|
at: 08:30:00
|
|
condition: []
|
|
action:
|
|
- service: light.turn_off
|
|
data: {}
|
|
target:
|
|
area_id: basement
|
|
mode: single
|
|
- id: '1692904228846'
|
|
alias: Close the Office
|
|
description: ''
|
|
trigger:
|
|
- platform: time
|
|
at: '18:00:00'
|
|
condition: []
|
|
action:
|
|
- service: light.turn_off
|
|
data: {}
|
|
target:
|
|
area_id: office
|
|
mode: single
|
|
- id: '1692905069190'
|
|
alias: It's time to get ready for school
|
|
description: ''
|
|
trigger:
|
|
- platform: time
|
|
at: 05:45:00
|
|
condition:
|
|
- condition: time
|
|
weekday:
|
|
- mon
|
|
- tue
|
|
- wed
|
|
- thu
|
|
- fri
|
|
action:
|
|
- service: light.turn_on
|
|
data:
|
|
brightness_pct: 100
|
|
target:
|
|
area_id:
|
|
- dining_room
|
|
- family_room
|
|
- foyer
|
|
- kitchen
|
|
- service: light.turn_on
|
|
data:
|
|
brightness_pct: 40
|
|
target:
|
|
area_id: bathroom
|
|
mode: single
|
|
- id: '1692970048043'
|
|
alias: Turn off the House
|
|
description: ''
|
|
trigger:
|
|
- platform: device
|
|
type: turned_on
|
|
device_id: b63d58f5e359634f1fdc8c8c162e5088
|
|
entity_id: 1819de7c676c39aa739c370037977612
|
|
domain: switch
|
|
condition:
|
|
- condition: sun
|
|
after: sunset
|
|
enabled: true
|
|
action:
|
|
- service: light.turn_off
|
|
data: {}
|
|
target:
|
|
area_id:
|
|
- camdyn_s_room
|
|
- family_room
|
|
- family_room_ambient
|
|
- family_room_holiday
|
|
- den
|
|
- foyer
|
|
- living_room
|
|
- kitchen
|
|
- dining_room
|
|
- master_bedroom
|
|
- molly_s_room
|
|
- master_closet
|
|
- office
|
|
- patio
|
|
- front_yard
|
|
- hallway
|
|
- bathroom
|
|
- workshop
|
|
- front_yard_holiday
|
|
- service: switch.turn_off
|
|
data: {}
|
|
target:
|
|
area_id:
|
|
- master_bathroom
|
|
- bathroom
|
|
- front_yard_holiday
|
|
- service: scene.turn_on
|
|
target:
|
|
entity_id: scene.barn_bright
|
|
metadata: {}
|
|
- service: scene.turn_on
|
|
target:
|
|
entity_id: scene.entryway_bright
|
|
metadata: {}
|
|
- service: scene.turn_on
|
|
target:
|
|
entity_id: scene.laundry_room_bright
|
|
metadata: {}
|
|
- service: fan.turn_on
|
|
data:
|
|
percentage: 20
|
|
target:
|
|
area_id: master_bedroom_ambient
|
|
- service: scene.turn_on
|
|
target:
|
|
entity_id: scene.turn_on_diffuser
|
|
metadata: {}
|
|
mode: single
|
|
- id: b2bc356e-2eb1-41c1-a7bf-6327e58dcf19
|
|
alias: Routine | Security Lights | Back Yard
|
|
description: Back Yard Security Lights turn on or off
|
|
mode: single
|
|
trigger:
|
|
- platform: sun
|
|
event: sunset
|
|
offset: -00:45
|
|
id: just_before_sunset
|
|
- platform: sun
|
|
event: sunrise
|
|
offset: 00:20:00
|
|
id: just_after_sunrise
|
|
condition: []
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- just_before_sunset
|
|
sequence:
|
|
- service: light.turn_on
|
|
metadata: {}
|
|
data:
|
|
brightness_pct: 70
|
|
target:
|
|
entity_id:
|
|
- light.back_yard_security_light_1
|
|
- light.back_yard_security_light_2
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- just_after_sunrise
|
|
sequence:
|
|
- service: light.turn_off
|
|
metadata: {}
|
|
data:
|
|
transition: 4
|
|
target:
|
|
entity_id:
|
|
- light.back_yard_security_light_1
|
|
- light.back_yard_security_light_2
|
|
- id: b125bfff-740b-40d8-8c81-4e22254f5841
|
|
alias: Motion Sensor | Security Lights | Back Yard
|
|
description: Back Yard Security Lights Automations
|
|
mode: single
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- binary_sensor.back_yard_sensor_occupancy
|
|
to: 'on'
|
|
id: back_yard_sensor_motion_detected
|
|
- platform: state
|
|
entity_id:
|
|
- binary_sensor.back_yard_sensor_occupancy
|
|
to: 'off'
|
|
for:
|
|
hours: 0
|
|
minutes: 10
|
|
seconds: 0
|
|
id: back_yard_sensor_area_cleared
|
|
condition:
|
|
condition: or
|
|
conditions:
|
|
- condition: time
|
|
after: '23:00:00'
|
|
weekday:
|
|
- sun
|
|
- mon
|
|
- tue
|
|
- wed
|
|
- thu
|
|
- fri
|
|
- sat
|
|
- condition: sun
|
|
before: sunrise
|
|
before_offset: 00:15:00
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- back_yard_sensor_motion_detected
|
|
sequence:
|
|
- service: light.turn_on
|
|
metadata: {}
|
|
data:
|
|
transition: 2
|
|
brightness_pct: 50
|
|
target:
|
|
entity_id:
|
|
- light.back_yard_security_light_1
|
|
- light.back_yard_security_light_2
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- back_yard_sensor_area_cleared
|
|
sequence:
|
|
- service: light.turn_off
|
|
metadata: {}
|
|
data:
|
|
transition: 4
|
|
target:
|
|
entity_id:
|
|
- light.back_yard_security_light_1
|
|
- light.back_yard_security_light_2
|
|
- id: d3cfe7e4-6a8d-48e4-bbcd-1891f303339f
|
|
alias: Routine | Basement | Workout Start
|
|
description: It's time to workout
|
|
mode: single
|
|
trigger:
|
|
- platform: time
|
|
at: 05:40:00
|
|
condition:
|
|
- condition: zone
|
|
entity_id: person.daniel_frey
|
|
zone: zone.home
|
|
action:
|
|
- service: light.turn_on
|
|
target:
|
|
area_id: basement
|
|
data:
|
|
brightness_pct: 100
|
|
- id: 92bb115c-a192-40bc-9e0d-0443787cab0f
|
|
alias: Routine | Basement | Workout Complete
|
|
description: Workout is done for the day
|
|
mode: single
|
|
trigger:
|
|
- platform: time
|
|
at: 08:30:00
|
|
condition:
|
|
- condition: zone
|
|
entity_id: person.daniel_frey
|
|
zone: zone.home
|
|
action:
|
|
- service: light.turn_off
|
|
target:
|
|
area_id: basement
|
|
data: {}
|
|
- id: 6d4a7378-2e8c-4c3a-817a-6328bb8de01a
|
|
alias: Switch | Lights | Basement
|
|
description: Turn the Basement Lights On or Off
|
|
mode: single
|
|
trigger:
|
|
- platform: device
|
|
domain: mqtt
|
|
device_id: 3a88666b670f8e46cdaef002f4d63c2d
|
|
type: action
|
|
subtype: single
|
|
id: basement_switch_single
|
|
- platform: device
|
|
domain: mqtt
|
|
device_id: 3a88666b670f8e46cdaef002f4d63c2d
|
|
type: action
|
|
subtype: double
|
|
id: basement_switch_double
|
|
condition: []
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- basement_switch_single
|
|
sequence:
|
|
- service: light.toggle
|
|
target:
|
|
area_id: basement
|
|
data:
|
|
transition: 2
|
|
color_temp_kelvin: 2700
|
|
brightness_pct: 100
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- basement_switch_double
|
|
sequence:
|
|
- service: light.turn_on
|
|
target:
|
|
area_id: basement
|
|
data:
|
|
transition: 2
|
|
color_temp_kelvin: 2237
|
|
brightness_pct: 60
|
|
- id: 9d331eec-830d-4e25-bfc3-06facbfd28f0
|
|
alias: Routine | Bathroom | Wake Up
|
|
description: Turn on Bathroom Lights if it's a School Day and not a Holiday or Snow
|
|
Day
|
|
mode: queued
|
|
max: 10
|
|
trigger:
|
|
- platform: time
|
|
at: 05:45:00
|
|
condition:
|
|
- condition: state
|
|
entity_id: binary_sensor.school_day
|
|
state: 'on'
|
|
- condition: not
|
|
conditions:
|
|
- condition: or
|
|
conditions:
|
|
- condition: state
|
|
entity_id: binary_sensor.holiday
|
|
state: 'on'
|
|
- condition: state
|
|
entity_id: binary_sensor.snow_day
|
|
state: 'on'
|
|
action:
|
|
- service: light.turn_on
|
|
data:
|
|
transition: 300
|
|
color_temp_kelvin: 2700
|
|
brightness_pct: 30
|
|
target:
|
|
area_id: &id001
|
|
- bathroom
|
|
- id: b7d8f59b-f3b2-4ddb-973e-76c474bff574
|
|
alias: Routine | Bathroom | Away
|
|
description: Turn off the bathroom lights when the girls are away
|
|
mode: single
|
|
initial_state: true
|
|
trigger:
|
|
platform: state
|
|
entity_id: binary_sensor.girls_home
|
|
from: 'on'
|
|
to: 'off'
|
|
for:
|
|
minutes: 5
|
|
condition: []
|
|
action:
|
|
- service: light.turn_off
|
|
metadata: {}
|
|
data:
|
|
transition: 2
|
|
target:
|
|
area_id: *id001
|
|
- id: dde44bf2-bf0d-4d46-8a3e-b74ea8c59564
|
|
alias: Routine | Camdyn's Room | Sunset
|
|
description: Turn on the lights 30 minutes before sunset
|
|
mode: single
|
|
trigger:
|
|
- platform: sun
|
|
event: sunset
|
|
offset: -00:30:00
|
|
condition:
|
|
- condition: zone
|
|
entity_id: person.camdyn_frey
|
|
zone: zone.home
|
|
action:
|
|
- service: light.turn_on
|
|
data:
|
|
transition: 2
|
|
color_temp_kelvin: 2700
|
|
brightness_pct: 100
|
|
target:
|
|
area_id:
|
|
- camdyn_s_room
|
|
- id: bee92ca7-72cd-4b90-9e77-1d92960bc1f9
|
|
alias: Routine | Camdyn's Room | Relax
|
|
description: It's time to relax
|
|
mode: single
|
|
trigger:
|
|
- platform: time
|
|
at: '20:15:00'
|
|
condition:
|
|
- condition: zone
|
|
entity_id: person.camdyn_frey
|
|
zone: zone.home
|
|
action:
|
|
- service: light.turn_on
|
|
metadata: {}
|
|
target:
|
|
area_id:
|
|
- camdyn_s_room
|
|
data:
|
|
transition: 5
|
|
color_temp_kelvin: 2237
|
|
brightness_pct: 60
|
|
- id: f3bf4eac-01a4-46a8-bd3f-f580fba80cc5
|
|
alias: Routine | Camdyn's Room | Away
|
|
description: Turn off Camdyn's Room Lights when she is not at home
|
|
mode: single
|
|
trigger:
|
|
- platform: zone
|
|
entity_id: person.camdyn_frey
|
|
zone: zone.home
|
|
event: leave
|
|
condition: []
|
|
action:
|
|
- service: light.turn_off
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
area_id: camdyn_s_room
|
|
- id: 53af2938-b66c-4226-a5e2-ac4bb455649e
|
|
alias: Routine | Camdyn's Room | Arrive Home
|
|
description: Turn on Camdyn's Room Lights when she arrives home and it's after sunset
|
|
mode: single
|
|
trigger:
|
|
- platform: zone
|
|
entity_id: person.camdyn_frey
|
|
zone: zone.home
|
|
event: enter
|
|
condition:
|
|
- condition: sun
|
|
after: sunset
|
|
action:
|
|
- service: light.turn_on
|
|
metadata: {}
|
|
data:
|
|
transition: 2
|
|
color_temp_kelvin: 2700
|
|
brightness_pct: 75
|
|
target:
|
|
area_id: camdyn_s_room
|
|
- id: 17555aa9-e75d-4644-9731-366616f41e69
|
|
alias: Routine | Custom Lights | Change Scene
|
|
description: Change the scene when the calendar updates the sensors
|
|
mode: single
|
|
triggers:
|
|
- trigger: state
|
|
entity_id:
|
|
- binary_sensor.winter
|
|
id: season_winter
|
|
to: 'on'
|
|
- trigger: state
|
|
entity_id:
|
|
- binary_sensor.spring
|
|
id: season_spring
|
|
to: 'on'
|
|
- trigger: state
|
|
entity_id:
|
|
- binary_sensor.summer
|
|
to: 'on'
|
|
id: season_summer
|
|
- trigger: state
|
|
entity_id:
|
|
- binary_sensor.fall
|
|
to: 'on'
|
|
id: season_fall
|
|
- trigger: state
|
|
entity_id:
|
|
- binary_sensor.valentine
|
|
to: 'on'
|
|
id: holiday_valentine
|
|
- trigger: state
|
|
entity_id:
|
|
- binary_sensor.patriotic
|
|
to: 'on'
|
|
id: holiday_patriotic
|
|
- trigger: state
|
|
entity_id:
|
|
- binary_sensor.halloween
|
|
to: 'on'
|
|
id: holiday_halloween
|
|
- trigger: state
|
|
entity_id:
|
|
- binary_sensor.christmas
|
|
to: 'on'
|
|
id: holiday_christmas
|
|
- trigger: state
|
|
entity_id:
|
|
- binary_sensor.flyers
|
|
to: 'on'
|
|
id: sports_flyers
|
|
- trigger: state
|
|
entity_id:
|
|
- binary_sensor.eagles
|
|
to: 'on'
|
|
id: sports_eagles
|
|
- trigger: state
|
|
entity_id:
|
|
- binary_sensor.phillies
|
|
to: 'on'
|
|
id: sports_phillies
|
|
- trigger: state
|
|
entity_id:
|
|
- binary_sensor.penn_st
|
|
to: 'on'
|
|
id: sports_penn_st
|
|
conditions: []
|
|
actions:
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- season_winter
|
|
sequence:
|
|
- action: input_select.select_option
|
|
metadata: {}
|
|
data:
|
|
option: 'Winter holidays: Under the tree'
|
|
target:
|
|
entity_id: input_select.custom_light_scene_selections
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- season_spring
|
|
sequence:
|
|
- action: input_select.select_option
|
|
metadata: {}
|
|
data:
|
|
option: 'Peaceful: Spring blossom'
|
|
target:
|
|
entity_id: input_select.custom_light_scene_selections
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- season_summer
|
|
sequence:
|
|
- action: input_select.select_option
|
|
metadata: {}
|
|
data:
|
|
option: 'Pure: Midsummer sun'
|
|
target:
|
|
entity_id: input_select.custom_light_scene_selections
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- season_fall
|
|
sequence:
|
|
- action: input_select.select_option
|
|
metadata: {}
|
|
data:
|
|
option: 'Cozy: Honolulu'
|
|
target:
|
|
entity_id: input_select.custom_light_scene_selections
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- holiday_valentine
|
|
sequence:
|
|
- action: input_select.select_option
|
|
metadata: {}
|
|
data:
|
|
option: 'Romantic: Ruby romance'
|
|
target:
|
|
entity_id: input_select.custom_light_scene_selections
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- holiday_patriotic
|
|
sequence:
|
|
- action: input_select.select_option
|
|
metadata: {}
|
|
data:
|
|
option: 'Race Day: Miami'
|
|
target:
|
|
entity_id: input_select.custom_light_scene_selections
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- holiday_halloween
|
|
sequence:
|
|
- action: input_select.select_option
|
|
metadata: {}
|
|
data:
|
|
option: 'Halloween: Trick or treat'
|
|
target:
|
|
entity_id: input_select.custom_light_scene_selections
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- holiday_christmas
|
|
sequence:
|
|
- action: input_select.select_option
|
|
metadata: {}
|
|
data:
|
|
option: 'Winter holidays: Under the tree'
|
|
target:
|
|
entity_id: input_select.custom_light_scene_selections
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- sports_flyers
|
|
sequence:
|
|
- action: input_select.select_option
|
|
metadata: {}
|
|
data:
|
|
option: 'Race Day: Zandvoort'
|
|
target:
|
|
entity_id: input_select.custom_light_scene_selections
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- sports_eagles
|
|
sequence:
|
|
- action: input_select.select_option
|
|
metadata: {}
|
|
data:
|
|
option: 'Race Day: São Paulo'
|
|
target:
|
|
entity_id: input_select.custom_light_scene_selections
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- sports_phillies
|
|
sequence:
|
|
- action: input_select.select_option
|
|
metadata: {}
|
|
data:
|
|
option: 'Dreamy: Adrift'
|
|
target:
|
|
entity_id: input_select.custom_light_scene_selections
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- sports_penn_st
|
|
sequence:
|
|
- action: input_select.select_option
|
|
metadata: {}
|
|
data:
|
|
option: 'Futuristic: Magneto'
|
|
target:
|
|
entity_id: input_select.custom_light_scene_selections
|
|
- id: 8e854a44-6042-481b-bf0c-279e33e26e74
|
|
alias: Cube | Office | Dan's Office Cube
|
|
description: ''
|
|
trigger_variables:
|
|
action_flip90: flip90
|
|
action_rotate_right: rotate_right
|
|
action_rotate_left: rotate_left
|
|
action_shake: shake
|
|
action_slide: slide
|
|
action_tap: tap
|
|
action_throw: throw
|
|
trigger:
|
|
- platform: mqtt
|
|
topic: zigbee2mqtt/Dan's Office Cube
|
|
payload: '{{ action_slide }}'
|
|
value_template: '{{ value_json.action }}'
|
|
id: slide
|
|
- platform: mqtt
|
|
topic: zigbee2mqtt/Dan's Office Cube
|
|
payload: '{{ action_tap }}'
|
|
value_template: '{{ value_json.action }}'
|
|
id: tap
|
|
- platform: mqtt
|
|
topic: zigbee2mqtt/Dan's Office Cube
|
|
payload: '{{ action_rotate_right }}'
|
|
value_template: '{{ value_json.action }}'
|
|
id: rotate_right
|
|
- platform: mqtt
|
|
topic: zigbee2mqtt/Dan's Office Cube
|
|
payload: '{{ action_rotate_left }}'
|
|
value_template: '{{ value_json.action }}'
|
|
id: rotate_left
|
|
- platform: mqtt
|
|
topic: zigbee2mqtt/Dan's Office Cube
|
|
payload: '{{ action_shake }}'
|
|
value_template: '{{ value_json.action }}'
|
|
id: shake
|
|
- platform: mqtt
|
|
topic: zigbee2mqtt/Dan's Office Cube
|
|
payload: '{{ action_throw }}'
|
|
value_template: '{{ value_json.action }}'
|
|
id: throw
|
|
- platform: mqtt
|
|
topic: zigbee2mqtt/Dan's Office Cube
|
|
payload: '{{ action_flip90 }}'
|
|
value_template: '{{ value_json.action }}'
|
|
id: flip90
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: sensor.dan_s_office_cube_side
|
|
state: '1'
|
|
- condition: trigger
|
|
id: flip90
|
|
sequence:
|
|
- service: light.toggle
|
|
target:
|
|
area_id: office
|
|
data: {}
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: sensor.dan_s_office_cube_side
|
|
state: '2'
|
|
- condition: trigger
|
|
id: flip90
|
|
sequence:
|
|
- service: light.toggle
|
|
target:
|
|
area_id: office
|
|
data: {}
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: sensor.dan_s_office_cube_side
|
|
state: '3'
|
|
- condition: trigger
|
|
id: flip90
|
|
sequence:
|
|
- service: light.toggle
|
|
target:
|
|
area_id: office
|
|
data: {}
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: sensor.dan_s_office_cube_side
|
|
state: '4'
|
|
- condition: trigger
|
|
id: flip90
|
|
sequence:
|
|
- service: light.toggle
|
|
target:
|
|
area_id: office
|
|
data: {}
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: sensor.dan_s_office_cube_side
|
|
state: '5'
|
|
- condition: trigger
|
|
id: flip90
|
|
sequence:
|
|
- service: light.toggle
|
|
target:
|
|
area_id: office
|
|
data: {}
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: sensor.dan_s_office_cube_side
|
|
state: '6'
|
|
- condition: trigger
|
|
id: flip90
|
|
sequence:
|
|
- service: light.toggle
|
|
target:
|
|
area_id: office
|
|
data: {}
|
|
- id: aa2c400f-30b1-45ac-bb86-dfc7aa49f991
|
|
alias: Routine | Den | Sunrise
|
|
description: Turn off the lights 45 minutes after sunrise
|
|
mode: single
|
|
trigger:
|
|
- platform: time
|
|
at: 08:00:00
|
|
condition: []
|
|
action:
|
|
- service: light.turn_off
|
|
data:
|
|
transition: 2
|
|
target:
|
|
area_id: &id002
|
|
- den
|
|
- id: b7b19a14-efe6-48ef-b257-1a1d8478b6b6
|
|
alias: Routine | Den | Sunset
|
|
description: Turn on the lights 30 minutes before sunset
|
|
mode: single
|
|
trigger:
|
|
- platform: sun
|
|
event: sunset
|
|
offset: -00:30:00
|
|
condition: []
|
|
action:
|
|
- service: light.turn_on
|
|
data:
|
|
transition: 2
|
|
color_temp_kelvin: 2700
|
|
brightness_pct: 100
|
|
target:
|
|
area_id: *id002
|
|
- id: f0563edc-f36c-4c35-9ad3-6b7c55bfdfa6
|
|
alias: Routine | Den | Relax
|
|
description: It's time to relax
|
|
mode: single
|
|
trigger:
|
|
- platform: time
|
|
at: '20:15:00'
|
|
condition: []
|
|
action:
|
|
- service: light.turn_on
|
|
metadata: {}
|
|
data:
|
|
transition: 5
|
|
color_temp_kelvin: 2237
|
|
brightness_pct: 60
|
|
target:
|
|
area_id: *id002
|
|
- id: aa8013a8-e86f-4540-9610-154cbbf8c729
|
|
alias: Routine | Den | Away
|
|
description: Everyone has left the house, turn off the Den Lights if the time is
|
|
before sunset
|
|
mode: single
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- binary_sensor.family_home
|
|
from: 'on'
|
|
to: 'off'
|
|
for:
|
|
minutes: 5
|
|
condition:
|
|
- condition: sun
|
|
before: sunset
|
|
action:
|
|
- service: light.turn_off
|
|
metadata: {}
|
|
data:
|
|
transition: 2
|
|
target:
|
|
area_id: *id002
|
|
- automation: null
|
|
- id: 3896b676-61fa-4da6-a12d-5ad00b12de43
|
|
alias: Routine | Driveway | Sunset
|
|
description: Driveway Lights turn on or off
|
|
mode: single
|
|
trigger:
|
|
- trigger: sun
|
|
event: sunset
|
|
offset: -00:45
|
|
id: just_before_sunset
|
|
- trigger: sun
|
|
event: sunrise
|
|
offset: 00:20:00
|
|
id: just_after_sunrise
|
|
- trigger: state
|
|
entity_id:
|
|
- input_boolean.light_reset
|
|
to: 'on'
|
|
id: light_reset
|
|
condition: []
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- alias: It's just before sunset or light reset and there is no custom schedule
|
|
set
|
|
and:
|
|
- condition: state
|
|
entity_id: sensor.custom_light_schedule
|
|
state: 'False'
|
|
- or:
|
|
- condition: trigger
|
|
id:
|
|
- just_before_sunset
|
|
- condition: trigger
|
|
id:
|
|
- light_reset
|
|
sequence:
|
|
- service: light.turn_off
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id:
|
|
- light.back_door_light
|
|
- light.driveway_security_light
|
|
- delay:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 5
|
|
milliseconds: 0
|
|
- service: light.turn_on
|
|
metadata: {}
|
|
data:
|
|
color_temp_kelvin: 2700
|
|
brightness_pct: 100
|
|
target:
|
|
entity_id:
|
|
- light.back_door_light
|
|
- light.driveway_security_light
|
|
- conditions:
|
|
- alias: It's just before sunset or light reset and a custom light schedule
|
|
is set
|
|
and:
|
|
- condition: state
|
|
entity_id: sensor.custom_light_schedule
|
|
state: 'True'
|
|
- or:
|
|
- condition: trigger
|
|
id:
|
|
- just_before_sunset
|
|
- condition: trigger
|
|
id:
|
|
- light_reset
|
|
sequence:
|
|
- action: script.turn_on
|
|
metadata: {}
|
|
target:
|
|
entity_id: script.driveway_custom_light_scene
|
|
data:
|
|
variables:
|
|
scene: "{% if has_value('input_select.custom_light_scene_selections')\
|
|
\ %}\n {{ states('input_select.custom_light_scene_selections') }}\n\
|
|
{% else %}\n Savanna sunset\n{% endif %}\n"
|
|
repeat_delay:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 30
|
|
onlyonlights: false
|
|
use_scene_brightness: false
|
|
brightness: 100
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- just_after_sunrise
|
|
sequence:
|
|
- service: light.turn_off
|
|
metadata: {}
|
|
data:
|
|
transition: 4
|
|
target:
|
|
entity_id:
|
|
- light.back_door_light
|
|
- light.driveway_security_light
|
|
- delay:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 30
|
|
milliseconds: 0
|
|
- action: input_boolean.turn_off
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: input_boolean.light_reset
|
|
- id: 4db8efe1-3370-499b-b5e6-e3ed4d7a304c
|
|
alias: Routine | Foyer | Sunrise
|
|
description: Turn off the lights 45 minutes after sunrise
|
|
mode: single
|
|
trigger:
|
|
- platform: sun
|
|
event: sunrise
|
|
offset: 00:45:00
|
|
condition: []
|
|
action:
|
|
- service: light.turn_off
|
|
data:
|
|
transition: 2
|
|
target:
|
|
area_id: &id003
|
|
- foyer
|
|
- id: e5f16484-525e-4e1f-92fc-b73cf9cab8f2
|
|
alias: Routine | Foyer | Sunset
|
|
description: Turn on the lights 30 minutes before sunset
|
|
mode: single
|
|
trigger:
|
|
- platform: sun
|
|
event: sunset
|
|
offset: -00:30:00
|
|
condition: []
|
|
action:
|
|
- service: light.turn_on
|
|
data:
|
|
transition: 2
|
|
color_temp_kelvin: 2700
|
|
brightness_pct: 100
|
|
target:
|
|
area_id: *id003
|
|
- id: cf9c7092-2806-48e7-b4e7-dfb20e8fb3e0
|
|
alias: Routine | Foyer | Relax
|
|
description: It's time to relax
|
|
mode: single
|
|
trigger:
|
|
- platform: time
|
|
at: '20:15:00'
|
|
condition: []
|
|
action:
|
|
- service: light.turn_on
|
|
metadata: {}
|
|
data:
|
|
transition: 5
|
|
color_temp_kelvin: 2237
|
|
brightness_pct: 60
|
|
target:
|
|
area_id: *id003
|
|
- id: a63c2fda-a1b7-4ec5-8ed1-1414c384f8aa
|
|
alias: Routine | Foyer | Away
|
|
description: Everyone has left the house, turn off the Foyer Lights if the time
|
|
is before sunset
|
|
mode: single
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- binary_sensor.family_home
|
|
from: 'on'
|
|
to: 'off'
|
|
for:
|
|
minutes: 5
|
|
condition:
|
|
- condition: sun
|
|
before: sunset
|
|
action:
|
|
- service: light.turn_off
|
|
metadata: {}
|
|
data:
|
|
transition: 2
|
|
target:
|
|
area_id: *id003
|
|
- id: a132c698-0908-410f-932c-ef3e82437b28
|
|
alias: Routine | Front Porch | Sunset
|
|
description: Front Porch Lights turn on or off
|
|
mode: single
|
|
trigger:
|
|
- trigger: sun
|
|
event: sunset
|
|
offset: -00:45
|
|
id: just_before_sunset
|
|
- trigger: sun
|
|
event: sunrise
|
|
offset: 00:20:00
|
|
id: just_after_sunrise
|
|
- trigger: state
|
|
entity_id:
|
|
- input_boolean.light_reset
|
|
to: 'on'
|
|
id: light_reset
|
|
condition: []
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- alias: It's just before sunset or light reset and there is no custom schedule
|
|
set
|
|
and:
|
|
- condition: state
|
|
entity_id: sensor.custom_light_schedule
|
|
state: 'False'
|
|
- or:
|
|
- condition: trigger
|
|
id:
|
|
- just_before_sunset
|
|
- condition: trigger
|
|
id:
|
|
- light_reset
|
|
sequence:
|
|
- service: light.turn_off
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id:
|
|
- light.front_door_light
|
|
- delay:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 5
|
|
milliseconds: 0
|
|
- service: light.turn_on
|
|
metadata: {}
|
|
data:
|
|
color_temp_kelvin: 2700
|
|
brightness_pct: 100
|
|
target:
|
|
entity_id:
|
|
- light.front_door_light
|
|
- conditions:
|
|
- alias: It's just before sunset or light reset and a custom light schedule
|
|
is set
|
|
and:
|
|
- condition: state
|
|
entity_id: sensor.custom_light_schedule
|
|
state: 'True'
|
|
- or:
|
|
- condition: trigger
|
|
id:
|
|
- just_before_sunset
|
|
- condition: trigger
|
|
id:
|
|
- light_reset
|
|
sequence:
|
|
- action: script.turn_on
|
|
metadata: {}
|
|
target:
|
|
entity_id: script.front_porch_custom_light_scene
|
|
data:
|
|
variables:
|
|
scene: "{% if has_value('input_select.custom_light_scene_selections')\
|
|
\ %}\n {{ states('input_select.custom_light_scene_selections') }}\n\
|
|
{% else %}\n Savanna sunset\n{% endif %}\n"
|
|
repeat_delay:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 30
|
|
onlyonlights: false
|
|
use_scene_brightness: false
|
|
brightness: 100
|
|
- condition: or
|
|
conditions:
|
|
- condition: state
|
|
entity_id: binary_sensor.winter
|
|
state: 'on'
|
|
- condition: state
|
|
entity_id: binary_sensor.christmas_eve
|
|
state: 'on'
|
|
- condition: state
|
|
entity_id: binary_sensor.christmas_day
|
|
state: 'on'
|
|
- action: light.turn_on
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id:
|
|
- light.front_porch_lights
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- just_after_sunrise
|
|
sequence:
|
|
- service: light.turn_off
|
|
metadata: {}
|
|
data:
|
|
transition: 4
|
|
target:
|
|
entity_id:
|
|
- light.front_door_light
|
|
- light.front_porch_lights
|
|
- delay:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 30
|
|
milliseconds: 0
|
|
- action: input_boolean.turn_off
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: input_boolean.light_reset
|
|
- id: fb86e6f6-e22e-447b-b32f-18bd71266a24
|
|
alias: Routine | Front Yard | Sunset
|
|
description: Front Yard Lights turn on or off
|
|
mode: single
|
|
trigger:
|
|
- trigger: sun
|
|
event: sunset
|
|
offset: -00:45
|
|
id: just_before_sunset
|
|
- trigger: sun
|
|
event: sunrise
|
|
offset: 00:20:00
|
|
id: just_after_sunrise
|
|
- trigger: state
|
|
entity_id:
|
|
- input_boolean.light_reset
|
|
to: 'on'
|
|
id: light_reset
|
|
condition: []
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- alias: It's just before sunset or light reset and there is no custom schedule
|
|
set
|
|
and:
|
|
- condition: state
|
|
entity_id: sensor.custom_light_schedule
|
|
state: 'False'
|
|
- or:
|
|
- condition: trigger
|
|
id:
|
|
- just_before_sunset
|
|
- condition: trigger
|
|
id:
|
|
- light_reset
|
|
sequence:
|
|
- service: light.turn_off
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id:
|
|
- light.front_yard_bollard_1
|
|
- light.front_yard_bollard_2
|
|
- light.front_yard_bollard_3
|
|
- light.front_yard_bollard_4
|
|
- light.front_yard_spot_1
|
|
- light.front_yard_spot_2
|
|
- delay:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 5
|
|
milliseconds: 0
|
|
- service: light.turn_on
|
|
metadata: {}
|
|
data:
|
|
color_temp_kelvin: 2700
|
|
brightness_pct: 100
|
|
target:
|
|
entity_id:
|
|
- light.front_yard_bollard_1
|
|
- light.front_yard_bollard_2
|
|
- light.front_yard_bollard_3
|
|
- light.front_yard_bollard_4
|
|
- light.front_yard_spot_1
|
|
- light.front_yard_spot_2
|
|
- conditions:
|
|
- alias: It's just before sunset or light reset and a custom light schedule
|
|
is set
|
|
and:
|
|
- condition: state
|
|
entity_id: sensor.custom_light_schedule
|
|
state: 'True'
|
|
- or:
|
|
- condition: trigger
|
|
id:
|
|
- just_before_sunset
|
|
- condition: trigger
|
|
id:
|
|
- light_reset
|
|
sequence:
|
|
- action: script.turn_on
|
|
metadata: {}
|
|
target:
|
|
entity_id: script.front_yard_custom_light_scene
|
|
data:
|
|
variables:
|
|
scene: "{% if has_value('input_select.custom_light_scene_selections')\
|
|
\ %}\n {{ states('input_select.custom_light_scene_selections') }}\n\
|
|
{% else %}\n Savanna sunset\n{% endif %}\n"
|
|
repeat_delay:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 30
|
|
onlyonlights: false
|
|
use_scene_brightness: false
|
|
brightness: 100
|
|
- condition: or
|
|
conditions:
|
|
- condition: state
|
|
entity_id: binary_sensor.winter
|
|
state: 'on'
|
|
- condition: state
|
|
entity_id: binary_sensor.christmas_eve
|
|
state: 'on'
|
|
- condition: state
|
|
entity_id: binary_sensor.christmas_day
|
|
state: 'on'
|
|
- action: light.turn_on
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id:
|
|
- light.front_yard_christmas_lights
|
|
- light.front_yard_christmas_tree_light
|
|
- light.tp_link_smart_plug_8d86_garage_christmas_lights_1
|
|
- light.tp_link_smart_plug_8d86_garage_christmas_lights_2
|
|
- light.tp_link_smart_plug_938d_living_room_christmas_lights_1
|
|
- light.tp_link_smart_plug_938d_living_room_christmas_lights_2
|
|
- action: script.turn_on
|
|
metadata: {}
|
|
target:
|
|
entity_id: script.front_yard_holiday_custom_light_scene
|
|
data:
|
|
variables:
|
|
scene: "{% if has_value('input_select.custom_light_scene_selections')\
|
|
\ %}\n {{ states('input_select.custom_light_scene_selections') }}\n\
|
|
{% else %}\n Savanna sunset\n{% endif %}\n"
|
|
repeat_delay:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 30
|
|
onlyonlights: false
|
|
use_scene_brightness: false
|
|
brightness: 100
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- just_after_sunrise
|
|
sequence:
|
|
- service: light.turn_off
|
|
metadata: {}
|
|
data:
|
|
transition: 4
|
|
target:
|
|
entity_id:
|
|
- light.front_yard_bollard_1
|
|
- light.front_yard_bollard_2
|
|
- light.front_yard_bollard_3
|
|
- light.front_yard_bollard_4
|
|
- light.front_yard_spot_1
|
|
- light.front_yard_spot_2
|
|
- light.front_yard_christmas_lights
|
|
- light.front_yard_christmas_tree_light
|
|
- light.tp_link_smart_plug_8d86_garage_christmas_lights_1
|
|
- light.tp_link_smart_plug_8d86_garage_christmas_lights_2
|
|
- light.tp_link_smart_plug_938d_living_room_christmas_lights_1
|
|
- light.tp_link_smart_plug_938d_living_room_christmas_lights_2
|
|
- light.front_yard_festiva_1
|
|
- light.front_yard_festiva_2
|
|
- delay:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 30
|
|
milliseconds: 0
|
|
- action: input_boolean.turn_off
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: input_boolean.light_reset
|
|
- id: ecf2ed39-f371-4d3b-812d-2a4b3dc4992d
|
|
alias: Routine | Security Lights | Front Yard
|
|
description: Front Yard Security Lights turn on or off
|
|
mode: single
|
|
trigger:
|
|
- trigger: sun
|
|
event: sunset
|
|
offset: -00:45
|
|
id: just_before_sunset
|
|
- trigger: sun
|
|
event: sunrise
|
|
offset: 00:20:00
|
|
id: just_after_sunrise
|
|
condition: []
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- just_before_sunset
|
|
sequence:
|
|
- service: light.turn_on
|
|
metadata: {}
|
|
data:
|
|
brightness_pct: 70
|
|
target:
|
|
entity_id:
|
|
- light.front_yard_security_light_1
|
|
- light.front_yard_security_light_2
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- just_after_sunrise
|
|
sequence:
|
|
- service: light.turn_off
|
|
metadata: {}
|
|
data:
|
|
transition: 4
|
|
target:
|
|
entity_id:
|
|
- light.front_yard_security_light_1
|
|
- light.front_yard_security_light_2
|
|
- id: 0743426e-a630-48af-9d91-9728e3ecfff7
|
|
alias: Motion Sensor | Security Lights | Front Yard
|
|
description: Front Yard Security Lights Automations
|
|
mode: single
|
|
trigger:
|
|
- trigger: state
|
|
entity_id:
|
|
- binary_sensor.front_yard_sensor_occupancy
|
|
to: 'on'
|
|
id: front_yard_sensor_motion_detected
|
|
- trigger: state
|
|
entity_id:
|
|
- binary_sensor.front_yard_sensor_occupancy
|
|
to: 'off'
|
|
for:
|
|
hours: 0
|
|
minutes: 10
|
|
seconds: 0
|
|
id: front_yard_sensor_area_cleared
|
|
condition:
|
|
condition: or
|
|
conditions:
|
|
- condition: time
|
|
after: '23:00:00'
|
|
weekday:
|
|
- sun
|
|
- mon
|
|
- tue
|
|
- wed
|
|
- thu
|
|
- fri
|
|
- sat
|
|
- condition: sun
|
|
before: sunrise
|
|
before_offset: 00:15:00
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- front_yard_sensor_motion_detected
|
|
sequence:
|
|
- service: light.turn_on
|
|
metadata: {}
|
|
data:
|
|
transition: 2
|
|
brightness_pct: 50
|
|
target:
|
|
entity_id:
|
|
- light.front_yard_security_light_1
|
|
- light.front_yard_security_light_2
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- front_yard_sensor_area_cleared
|
|
sequence:
|
|
- service: light.turn_off
|
|
metadata: {}
|
|
data:
|
|
transition: 4
|
|
target:
|
|
entity_id:
|
|
- light.front_yard_security_light_1
|
|
- light.front_yard_security_light_2
|
|
- id: b8fb99db-5d6f-4bbd-b320-6624e3729e62
|
|
alias: Routine | Security Lights | Garden
|
|
description: Garden Security Lights turn on or off
|
|
mode: single
|
|
trigger:
|
|
- platform: sun
|
|
event: sunset
|
|
offset: -00:45
|
|
id: just_before_sunset
|
|
- platform: sun
|
|
event: sunrise
|
|
offset: 00:20:00
|
|
id: just_after_sunrise
|
|
condition: []
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- just_before_sunset
|
|
sequence:
|
|
- service: light.turn_on
|
|
metadata: {}
|
|
data:
|
|
brightness_pct: 70
|
|
target:
|
|
entity_id:
|
|
- light.garden_security_light_1
|
|
- light.garden_security_light_2
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- just_after_sunrise
|
|
sequence:
|
|
- service: light.turn_off
|
|
metadata: {}
|
|
data:
|
|
transition: 4
|
|
target:
|
|
entity_id:
|
|
- light.garden_security_light_1
|
|
- light.garden_security_light_2
|
|
- id: 3d9f5be1-782c-4194-a13a-d25ab0477e11
|
|
alias: Motion Sensor | Security Lights | Garden
|
|
description: Garden Security Lights automations
|
|
mode: single
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- binary_sensor.garden_sensor_occupancy
|
|
to: 'on'
|
|
id: garden_sensor_motion_detected
|
|
- platform: state
|
|
entity_id:
|
|
- binary_sensor.garden_sensor_occupancy
|
|
to: 'off'
|
|
for:
|
|
hours: 0
|
|
minutes: 10
|
|
seconds: 0
|
|
id: garden_sensor_area_cleared
|
|
condition:
|
|
condition: or
|
|
conditions:
|
|
- condition: time
|
|
after: '23:00:00'
|
|
weekday:
|
|
- sun
|
|
- mon
|
|
- tue
|
|
- wed
|
|
- thu
|
|
- fri
|
|
- sat
|
|
- condition: sun
|
|
before: sunrise
|
|
before_offset: 00:15:00
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- garden_sensor_motion_detected
|
|
sequence:
|
|
- service: light.turn_on
|
|
metadata: {}
|
|
data:
|
|
transition: 2
|
|
brightness_pct: 50
|
|
target:
|
|
entity_id:
|
|
- light.garden_security_light_1
|
|
- light.garden_security_light_2
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- garden_sensor_area_cleared
|
|
sequence:
|
|
- service: light.turn_off
|
|
metadata: {}
|
|
data:
|
|
transition: 4
|
|
target:
|
|
entity_id:
|
|
- light.garden_security_light_1
|
|
- light.garden_security_light_2
|
|
- id: fda5ca95-4c78-417e-b213-797e233d2c00
|
|
alias: Notification | Family Room | Time to water Sully
|
|
description: It's time to water
|
|
mode: single
|
|
triggers:
|
|
- trigger: numeric_state
|
|
entity_id:
|
|
- sensor.sully_moisture_sensor_humidity
|
|
below: 4
|
|
conditions: []
|
|
actions:
|
|
- service: notify.parent_devices
|
|
metadata: {}
|
|
data_template:
|
|
title: Sully needs water
|
|
message: The moisture level in Sully's pot has gone below 4%. It's time to water.
|
|
data:
|
|
tag: plants
|
|
- id: a90fdbe7-42f0-42cf-a3a1-930be7feaf85
|
|
alias: Routine | Hallway | Sunrise
|
|
description: Turn off the lights 45 minutes after sunrise
|
|
mode: single
|
|
trigger:
|
|
- platform: time
|
|
at: 08:00:00
|
|
condition: []
|
|
action:
|
|
- service: light.turn_off
|
|
data:
|
|
transition: 2
|
|
target:
|
|
area_id: &id004
|
|
- hallway
|
|
- id: b957b9e4-e1d2-438e-95f7-e73a286e31e4
|
|
alias: Routine | Hallway | Sunset
|
|
description: Turn on the lights 30 minutes before sunset
|
|
mode: single
|
|
trigger:
|
|
- platform: sun
|
|
event: sunset
|
|
offset: -00:30:00
|
|
condition: []
|
|
action:
|
|
- service: light.turn_on
|
|
data:
|
|
transition: 2
|
|
color_temp_kelvin: 2700
|
|
brightness_pct: 100
|
|
target:
|
|
area_id: *id004
|
|
- id: 9e20c9f7-4983-4e18-963b-7e61dcd2403b
|
|
alias: Routine | Hallway | Relax
|
|
description: It's time to relax
|
|
mode: single
|
|
trigger:
|
|
- platform: time
|
|
at: '20:15:00'
|
|
condition: []
|
|
action:
|
|
- service: light.turn_on
|
|
metadata: {}
|
|
data:
|
|
transition: 5
|
|
color_temp_kelvin: 2237
|
|
brightness_pct: 60
|
|
target:
|
|
area_id: *id004
|
|
- id: bbd54d64-7f5d-45cc-9f82-aa9b24f13828
|
|
alias: Routine | Hallway | Away
|
|
description: Everyone has left the house, turn off the Hallway Lights if the time
|
|
is before sunset
|
|
mode: single
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- binary_sensor.family_home
|
|
from: 'on'
|
|
to: 'off'
|
|
for:
|
|
minutes: 5
|
|
condition:
|
|
- condition: sun
|
|
before: sunset
|
|
action:
|
|
- service: light.turn_off
|
|
metadata: {}
|
|
data:
|
|
transition: 2
|
|
target:
|
|
area_id: *id004
|
|
- id: 938f642d-3e9f-44fa-9e2f-ccecc958e094
|
|
alias: Routine | Holiday | Inside Holiday Lights
|
|
description: Turn on the Holiday Lights
|
|
trigger:
|
|
- platform: time
|
|
at: 06:00:00
|
|
condition: []
|
|
action:
|
|
- service: switch.turn_on
|
|
data: {}
|
|
target:
|
|
entity_id: switch.holiday_lights
|
|
mode: single
|
|
- id: d0f1d9d3-f4d9-4845-ae37-824244d6d9af
|
|
alias: Routine | Holiday | Outside Holiday Lights
|
|
description: Turn on the Outside Holiday Lights before Sunset
|
|
trigger:
|
|
- platform: sun
|
|
event: sunset
|
|
offset: -00:45:00
|
|
enabled: true
|
|
condition: []
|
|
action:
|
|
- service: light.turn_on
|
|
data:
|
|
brightness_pct: 100
|
|
target:
|
|
entity_id: light.outside_holiday_lights
|
|
- service: switch.turn_on
|
|
data: {}
|
|
target:
|
|
entity_id: switch.outside_holiday_switches
|
|
- service: scene.turn_on
|
|
target:
|
|
entity_id: scene.outside_ruby_glow
|
|
metadata: {}
|
|
mode: single
|
|
- id: ca4989f4-23c1-48d6-8178-fbad657a07b0
|
|
alias: Routine | House | School Day
|
|
description: Turn on the lights to get ready for school
|
|
mode: single
|
|
trigger:
|
|
- platform: time
|
|
at: 05:45:00
|
|
condition:
|
|
- condition: time
|
|
weekday:
|
|
- mon
|
|
- tue
|
|
- wed
|
|
- thu
|
|
- fri
|
|
action:
|
|
- service: light.turn_on
|
|
data:
|
|
brightness_pct: 100
|
|
target:
|
|
area_id:
|
|
- dining_room
|
|
- family_room
|
|
- foyer
|
|
- kitchen
|
|
- id: 92c8fbbb-3b63-4408-95db-82587a3e704b
|
|
alias: Routine | House | Goodnight
|
|
description: Turn off the House
|
|
mode: single
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- input_boolean.good_night
|
|
to: 'on'
|
|
condition: []
|
|
action:
|
|
- service: light.turn_off
|
|
target:
|
|
area_id:
|
|
- back_yard
|
|
- basement
|
|
- bathroom
|
|
- camdyn_s_room
|
|
- den
|
|
- dining_room
|
|
- family_room
|
|
- foyer
|
|
- front_porch
|
|
- front_yard
|
|
- front_yard_holiday
|
|
- garden
|
|
- hallway
|
|
- living_room
|
|
- kitchen
|
|
- master_closet
|
|
- molly_s_room
|
|
- office
|
|
- patio
|
|
- side_yard
|
|
- workshop
|
|
data: {}
|
|
- service: switch.turn_off
|
|
target:
|
|
area_id:
|
|
- bathroom
|
|
- camdyn_s_room
|
|
- front_yard
|
|
- hallway
|
|
- living_room
|
|
- master_bathroom
|
|
- molly_s_room
|
|
- workshop
|
|
data: {}
|
|
- service: light.turn_on
|
|
target:
|
|
entity_id:
|
|
- light.barn_door_light
|
|
data:
|
|
transition: 5
|
|
color_temp_kelvin: 2237
|
|
brightness_pct: 50
|
|
metadata: {}
|
|
- delay: 5
|
|
- service: input_boolean.turn_off
|
|
target:
|
|
entity_id:
|
|
- input_boolean.good_night
|
|
- id: 050e32fe-5a15-4efb-ba1f-e28db0f99b90
|
|
alias: Routine | House | Rainy Day
|
|
description: Turn on the lights when the lux goes below 30
|
|
mode: single
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- binary_sensor.kitchen_sensor_occupancy
|
|
to: 'on'
|
|
condition:
|
|
- condition: time
|
|
after: 08:00:00
|
|
weekday:
|
|
- sun
|
|
- mon
|
|
- tue
|
|
- wed
|
|
- thu
|
|
- fri
|
|
- sat
|
|
- condition: sun
|
|
before: sunset
|
|
- condition: numeric_state
|
|
entity_id: sensor.kitchen_sensor_illuminance
|
|
below: '30'
|
|
action:
|
|
- service: light.turn_on
|
|
metadata: {}
|
|
target:
|
|
area_id:
|
|
- den
|
|
- dining_room
|
|
- family_room
|
|
- hallway
|
|
- foyer
|
|
- kitchen
|
|
- living_room
|
|
data:
|
|
transition: 5
|
|
color_temp_kelvin: 2700
|
|
brightness_pct: 60
|
|
- id: ''
|
|
alias: 'Switch | Automation | '
|
|
description: ' turns on or off, dimming capable'
|
|
mode: queued
|
|
max: 10
|
|
trigger:
|
|
- platform: device
|
|
domain: mqtt
|
|
device_id: null
|
|
type: action
|
|
subtype: config_single
|
|
id: _switch_config_single
|
|
- platform: device
|
|
domain: mqtt
|
|
device_id: null
|
|
type: action
|
|
subtype: config_double
|
|
id: _switch_config_double
|
|
- platform: device
|
|
domain: mqtt
|
|
device_id: null
|
|
type: action
|
|
subtype: config_triple
|
|
id: _switch_config_triple
|
|
- platform: device
|
|
domain: mqtt
|
|
device_id: null
|
|
type: action
|
|
subtype: config_quadruple
|
|
id: _switch_config_quadruple
|
|
- platform: device
|
|
domain: mqtt
|
|
device_id: null
|
|
type: action
|
|
subtype: config_quintuple
|
|
id: _switch_config_quintuple
|
|
- platform: device
|
|
domain: mqtt
|
|
device_id: null
|
|
type: action
|
|
subtype: config_release
|
|
id: _switch_config_release
|
|
- platform: device
|
|
domain: mqtt
|
|
device_id: null
|
|
type: action
|
|
subtype: config_held
|
|
id: _switch_config_held
|
|
- platform: device
|
|
domain: mqtt
|
|
device_id: null
|
|
type: action
|
|
subtype: up_single
|
|
id: _switch_up_single
|
|
- platform: device
|
|
domain: mqtt
|
|
device_id: null
|
|
type: action
|
|
subtype: down_single
|
|
id: _switch_down_single
|
|
- platform: device
|
|
domain: mqtt
|
|
device_id: null
|
|
type: action
|
|
subtype: up_double
|
|
id: _switch_up_double
|
|
- platform: device
|
|
domain: mqtt
|
|
device_id: null
|
|
type: action
|
|
subtype: down_double
|
|
id: _switch_down_double
|
|
- platform: device
|
|
domain: mqtt
|
|
device_id: null
|
|
type: action
|
|
subtype: up_triple
|
|
id: _switch_up_triple
|
|
- platform: device
|
|
domain: mqtt
|
|
device_id: null
|
|
type: action
|
|
subtype: down_triple
|
|
id: _switch_down_triple
|
|
- platform: device
|
|
domain: mqtt
|
|
device_id: null
|
|
type: action
|
|
subtype: up_quadruple
|
|
id: _switch_up_quadruple
|
|
- platform: device
|
|
domain: mqtt
|
|
device_id: null
|
|
type: action
|
|
subtype: down_quadruple
|
|
id: _switch_down_quadruple
|
|
- platform: device
|
|
domain: mqtt
|
|
device_id: null
|
|
type: action
|
|
subtype: up_quintuple
|
|
id: _switch_up_quintuple
|
|
- platform: device
|
|
domain: mqtt
|
|
device_id: null
|
|
type: action
|
|
subtype: down_quintuple
|
|
id: _switch_down_quintuple
|
|
- platform: device
|
|
domain: mqtt
|
|
device_id: null
|
|
type: action
|
|
subtype: up_held
|
|
id: _switch_up_held
|
|
- platform: device
|
|
domain: mqtt
|
|
device_id: null
|
|
type: action
|
|
subtype: down_held
|
|
id: _switch_down_held
|
|
- platform: device
|
|
domain: mqtt
|
|
device_id: null
|
|
type: action
|
|
subtype: up_release
|
|
id: _switch_up_release
|
|
- platform: device
|
|
domain: mqtt
|
|
device_id: null
|
|
type: action
|
|
subtype: down_release
|
|
id: _switch_down_release
|
|
- platform: state
|
|
entity_id:
|
|
- light._downlight
|
|
to: 'on'
|
|
id: _downlight_turns_on
|
|
- platform: state
|
|
entity_id:
|
|
- light._downlight
|
|
to: 'off'
|
|
id: _downlight_turns_off
|
|
- platform: state
|
|
entity_id:
|
|
- light._switch
|
|
id: _switch_local_dimming
|
|
enabled: true
|
|
condition: []
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- _switch_up_single
|
|
sequence:
|
|
- service: light.turn_on
|
|
metadata: {}
|
|
data:
|
|
transition: 2
|
|
kelvin: 2700
|
|
brightness_pct: 100
|
|
target:
|
|
area_id: null
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- _switch_down_single
|
|
sequence:
|
|
- service: light.turn_off
|
|
target:
|
|
entity_id: light._downlight
|
|
data: {}
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- _switch_up_double
|
|
sequence:
|
|
- service: light.turn_on
|
|
metadata: {}
|
|
data:
|
|
transition: 2
|
|
kelvin: 2700
|
|
brightness_pct: 100
|
|
target:
|
|
area_id: null
|
|
alias: Light 'Turn on' on to Bright
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- _switch_down_double
|
|
sequence:
|
|
- service: light.turn_on
|
|
metadata: {}
|
|
data:
|
|
transition: 2
|
|
kelvin: 2700
|
|
brightness_pct: 30
|
|
target:
|
|
area_id: null
|
|
alias: Light 'Turn on' on to Nightlight
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- _downlight_turns_on
|
|
sequence:
|
|
- service: light.turn_on
|
|
target:
|
|
device_id: null
|
|
data: {}
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- _downlight_turns_off
|
|
sequence:
|
|
- service: light.turn_off
|
|
target:
|
|
device_id: null
|
|
data: {}
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- _switch_local_dimming
|
|
- condition: template
|
|
value_template: '{{ states.light._switch.last_updated > states.light._downlight.last_changed
|
|
}}'
|
|
sequence:
|
|
- service: light.turn_on
|
|
entity_id: light._downlight
|
|
data:
|
|
transition: 2
|
|
kelvin: 2700
|
|
brightness: '{{ state_attr(''light._switch'', ''brightness'') | default(0,
|
|
true) }}'
|
|
- id: cb172f97-ab95-4e69-aaaf-4790685ab87d
|
|
alias: Routine | Kitchen | Sunrise
|
|
description: Turn off the lights 45 minutes after sunrise
|
|
mode: single
|
|
trigger:
|
|
- platform: time
|
|
at: 08:00:00
|
|
condition: []
|
|
action:
|
|
- service: light.turn_off
|
|
data:
|
|
transition: 2
|
|
target:
|
|
area_id: &id005
|
|
- dining_room
|
|
- kitchen
|
|
- id: e75e2a71-c66d-4db8-bcc2-dd856e373c1f
|
|
alias: Routine | Kitchen | Sunset
|
|
description: Turn on the lights 30 minutes before sunset
|
|
mode: single
|
|
trigger:
|
|
- platform: sun
|
|
event: sunset
|
|
offset: -00:30:00
|
|
condition: []
|
|
action:
|
|
- service: light.turn_on
|
|
data:
|
|
transition: 2
|
|
color_temp_kelvin: 2700
|
|
brightness_pct: 100
|
|
target:
|
|
area_id: *id005
|
|
- id: f53f40a7-08e6-469c-8fe9-779e21ede6c3
|
|
alias: Routine | Kitchen | Relax
|
|
description: It's time to relax
|
|
mode: single
|
|
trigger:
|
|
- platform: time
|
|
at: '20:15:00'
|
|
condition: []
|
|
action:
|
|
- service: light.turn_on
|
|
metadata: {}
|
|
data:
|
|
transition: 5
|
|
color_temp_kelvin: 2237
|
|
brightness_pct: 60
|
|
target:
|
|
area_id: *id005
|
|
- id: 03ced7e8-00d7-445a-8efb-5c16815c0bbb
|
|
alias: Routine | House | Dinner Time
|
|
description: Turn the lights on in the kitchen to start making dinner
|
|
mode: single
|
|
trigger:
|
|
- platform: time
|
|
at: '16:45:00'
|
|
condition: []
|
|
action:
|
|
- service: light.turn_on
|
|
data:
|
|
brightness_pct: 100
|
|
transition: 900
|
|
target:
|
|
area_id: *id005
|
|
- id: 14bb3ffc-bbfa-404e-9d9c-cdfaa531e5d8
|
|
alias: Routine | Kitchen | Away
|
|
description: Everyone has left the house, turn off the Kitchen Lights if the time
|
|
is before sunset
|
|
mode: single
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- binary_sensor.family_home
|
|
from: 'on'
|
|
to: 'off'
|
|
for:
|
|
minutes: 5
|
|
condition:
|
|
- condition: sun
|
|
before: sunset
|
|
action:
|
|
- service: light.turn_off
|
|
metadata: {}
|
|
data:
|
|
transition: 2
|
|
target:
|
|
area_id: *id005
|
|
- delay:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 5
|
|
milliseconds: 0
|
|
- service: notify.mobile_app_dan_s_phone
|
|
metadata: {}
|
|
data:
|
|
title: Everyone is away
|
|
message: The Kitchen Lights have turned off!
|
|
- id: 73db59ea-b4ef-4b9e-9990-ee8bf6be994c
|
|
alias: Routine | Living Room | Sunrise
|
|
description: Turn off the lights 45 minutes after sunrise
|
|
mode: single
|
|
trigger:
|
|
- platform: time
|
|
at: 08:00:00
|
|
condition: []
|
|
action:
|
|
- service: light.turn_off
|
|
data:
|
|
transition: 2
|
|
target:
|
|
area_id: &id006
|
|
- living_room
|
|
- id: 0e7b26f8-d2f6-439b-bde6-ca100d8570e7
|
|
alias: Routine | Living Room | Sunset
|
|
description: Turn on the lights 30 minutes before sunset
|
|
mode: single
|
|
trigger:
|
|
- platform: sun
|
|
event: sunset
|
|
offset: -00:30:00
|
|
condition: []
|
|
action:
|
|
- service: light.turn_on
|
|
data:
|
|
transition: 2
|
|
color_temp_kelvin: 2700
|
|
brightness_pct: 100
|
|
target:
|
|
area_id: *id006
|
|
- id: 499a815a-3962-4d7b-9f91-90e0906ec376
|
|
alias: Routine | Living Room | Relax
|
|
description: It's time to relax
|
|
mode: single
|
|
trigger:
|
|
- platform: time
|
|
at: '20:15:00'
|
|
condition: []
|
|
action:
|
|
- service: light.turn_on
|
|
metadata: {}
|
|
data:
|
|
transition: 5
|
|
color_temp_kelvin: 2237
|
|
brightness_pct: 60
|
|
target:
|
|
area_id: *id006
|
|
- id: 98060966-fabb-4b4b-ae63-4b45f1b6b13c
|
|
alias: Routine | Living Room | Away
|
|
description: Everyone has left the house, turn off the Living Room Lights if the
|
|
time is before sunset
|
|
mode: single
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- binary_sensor.family_home
|
|
from: 'on'
|
|
to: 'off'
|
|
for:
|
|
minutes: 5
|
|
condition:
|
|
- condition: sun
|
|
before: sunset
|
|
action:
|
|
- service: light.turn_off
|
|
metadata: {}
|
|
data:
|
|
transition: 2
|
|
target:
|
|
area_id: *id006
|
|
- id: 23edfdb2-f2f6-4df2-9879-7c83856d1820
|
|
alias: Motion Sensor | Master Bathroom | Ambient
|
|
description: Master Bathroom Motion Sensor turns on ambient lights, schedules them
|
|
to turn off, and dims them at night
|
|
mode: single
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- binary_sensor.master_bathroom_sensor_occupancy_2
|
|
to: 'on'
|
|
id: master_bathroom_sensor_detected
|
|
- platform: state
|
|
entity_id:
|
|
- binary_sensor.master_bathroom_sensor_occupancy_2
|
|
to: 'off'
|
|
for:
|
|
hours: 0
|
|
minutes: 3
|
|
seconds: 0
|
|
id: master_bathroom_sensor_area_cleared
|
|
condition: []
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- master_bathroom_sensor_area_cleared
|
|
sequence:
|
|
- service: light.turn_off
|
|
target:
|
|
entity_id: light.master_bathroom_lightstrip
|
|
data:
|
|
transition: 2
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- master_bathroom_sensor_detected
|
|
- condition: state
|
|
entity_id: schedule.daytime
|
|
state: 'on'
|
|
sequence:
|
|
- service: light.turn_on
|
|
target:
|
|
area_id: master_bathroom
|
|
data:
|
|
transition: 2
|
|
color_temp_kelvin: 2700
|
|
brightness_pct: 100
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- master_bathroom_sensor_detected
|
|
- condition: state
|
|
entity_id: schedule.daytime
|
|
state: 'off'
|
|
sequence:
|
|
- service: light.turn_on
|
|
target:
|
|
entity_id: light.master_bathroom_lightstrip
|
|
data:
|
|
transition: 2
|
|
brightness_pct: 20
|
|
color_temp_kelvin: 2237
|
|
- id: f0a25d51-92a9-4918-a033-87211ca59ee1
|
|
alias: Routine | Master Bathroom | Away
|
|
description: Turn off the master bathroom lights when the parents are away
|
|
mode: single
|
|
initial_state: true
|
|
trigger:
|
|
platform: state
|
|
entity_id: binary_sensor.parents_home
|
|
from: 'on'
|
|
to: 'off'
|
|
for:
|
|
minutes: 5
|
|
condition: []
|
|
action:
|
|
- service: light.turn_off
|
|
metadata: {}
|
|
data:
|
|
transition: 2
|
|
target:
|
|
area_id: &id007
|
|
- master_bathroom
|
|
- service: switch.turn_off
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
area_id: *id007
|
|
- id: 0fbc2f32-4ac7-432d-a3dc-98dc15f48e5c
|
|
alias: Routine | Master Bedroom | Sunset
|
|
description: Turn on the lights 30 minutes before sunset
|
|
mode: single
|
|
trigger:
|
|
- platform: sun
|
|
event: sunset
|
|
offset: -00:30:00
|
|
condition: []
|
|
action:
|
|
- service: light.turn_on
|
|
data:
|
|
transition: 2
|
|
color_temp_kelvin: 2700
|
|
brightness_pct: 100
|
|
target:
|
|
entity_id: &id008
|
|
- light.master_bedroom_light_1
|
|
- light.master_bedroom_light_2
|
|
- light.master_bedroom_light_switch
|
|
- light.master_bedroom_ceiling_light
|
|
- light.master_bedroom_ceiling_light_switch
|
|
- light.master_bedroom_surround_light_1
|
|
- light.master_bedroom_surround_light_2
|
|
- light.master_bedroom_surround_light_3
|
|
- light.master_bedroom_surround_light_4
|
|
- light.master_bedroom_surround_light_5
|
|
- light.master_bedroom_surround_light_switch
|
|
- id: c03a9f48-2c98-4d19-a10c-64b3bef2a9bd
|
|
alias: Routine | Master Bedroom | Relax
|
|
description: It's time to relax
|
|
mode: single
|
|
trigger:
|
|
- platform: time
|
|
at: '20:15:00'
|
|
condition: []
|
|
action:
|
|
- service: light.turn_on
|
|
metadata: {}
|
|
target:
|
|
entity_id: *id008
|
|
data:
|
|
transition: 5
|
|
color_temp_kelvin: 2237
|
|
brightness_pct: 60
|
|
- id: 84be444f-0bc8-44a1-ba92-afa951459267
|
|
alias: Routine | Master Bedroom | Away
|
|
description: Everyone has left the house, turn off the Master Bedroom Lights if
|
|
the time is before sunset
|
|
mode: single
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- binary_sensor.parents_home
|
|
from: 'on'
|
|
to: 'off'
|
|
for:
|
|
minutes: 5
|
|
condition:
|
|
- condition: sun
|
|
before: sunset
|
|
action:
|
|
- service: light.turn_off
|
|
metadata: {}
|
|
data:
|
|
transition: 2
|
|
target:
|
|
entity_id: *id008
|
|
- id: b1d2683a-f4a9-4b73-a915-1550141d2522
|
|
alias: Routine | Master Bedroom | Wake Up
|
|
description: Master Bedroom devices turn off when it's morning and Dan and Stephanie
|
|
are out of bed for at least 3 minutes
|
|
mode: single
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- binary_sensor.we_are_out_of_bed
|
|
to: 'on'
|
|
for:
|
|
hours: 0
|
|
minutes: 3
|
|
seconds: 0
|
|
condition:
|
|
- condition: time
|
|
before: '10:00:00'
|
|
action:
|
|
- service: humidifier.turn_off
|
|
target:
|
|
entity_id: humidifier.master_bedroom_diffuser
|
|
data: {}
|
|
- service: fan.turn_off
|
|
target:
|
|
entity_id: fan.master_bedroom_tower_fan
|
|
data: {}
|
|
- id: f4f7be88-33bd-4c61-b246-c74347d14a5e
|
|
alias: Routine | Master Bedroom | Goodnight
|
|
description: Turn off the Master Bedroom
|
|
mode: single
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- input_boolean.good_night
|
|
to: 'on'
|
|
condition: []
|
|
action:
|
|
- service: light.turn_off
|
|
target:
|
|
area_id:
|
|
- master_bedroom
|
|
- service: fan.turn_on
|
|
data:
|
|
percentage: 33
|
|
target:
|
|
entity_id: fan.master_bedroom_tower_fan
|
|
metadata: {}
|
|
- id: 152dd72a-4354-41bf-ab8a-ec2c260dba0f
|
|
alias: Routine | Master Bedroom | Goodnight when Dan is Home
|
|
description: Turn off the Master Bedroom, but only when Dan is at home
|
|
mode: single
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- input_boolean.good_night
|
|
to: 'on'
|
|
condition:
|
|
- condition: state
|
|
entity_id: person.daniel_frey
|
|
state: home
|
|
action:
|
|
- service: scene.turn_on
|
|
target:
|
|
entity_id: scene.turn_on_diffuser
|
|
metadata: {}
|
|
- id: a9565c57-9cd9-4dbc-b38b-4f327fd14458
|
|
alias: Automation | Master Bedroom | Entertainment Lights
|
|
description: Turn on or off the Entertainment Lights
|
|
mode: single
|
|
triggers:
|
|
- domain: mqtt
|
|
device_id: a2ac8391f7b7364918d3155b0d74381e
|
|
type: action
|
|
subtype: up_double
|
|
trigger: device
|
|
id: up_double
|
|
- domain: mqtt
|
|
device_id: a2ac8391f7b7364918d3155b0d74381e
|
|
type: action
|
|
subtype: down_single
|
|
trigger: device
|
|
id: down_single
|
|
conditions: []
|
|
actions:
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- up_double
|
|
sequence:
|
|
- action: light.turn_on
|
|
metadata: {}
|
|
data:
|
|
transition: 4
|
|
color_temp_kelvin: 2700
|
|
brightness_pct: 75
|
|
target:
|
|
entity_id:
|
|
- light.master_bedroom_surround_light_1
|
|
- light.master_bedroom_surround_light_2
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- down_single
|
|
sequence:
|
|
- action: light.turn_off
|
|
metadata: {}
|
|
data:
|
|
transition: 2
|
|
target:
|
|
entity_id:
|
|
- light.master_bedroom_surround_light_1
|
|
- light.master_bedroom_surround_light_2
|
|
- id: 8e954b7f-6483-495e-918a-651e12b1a501
|
|
alias: Motion Sensor | Master Closet | Automation
|
|
description: Turn Master Closet Downlight on or off when Master Closet Motion Sensor
|
|
is detected or cleared
|
|
mode: single
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- binary_sensor.master_closet_sensor_occupancy
|
|
to: 'on'
|
|
id: master_closet_sensor_motion_detected
|
|
- platform: state
|
|
entity_id:
|
|
- binary_sensor.master_closet_sensor_occupancy
|
|
to: 'off'
|
|
id: master_closet_sensor_area_cleared
|
|
for:
|
|
hours: 0
|
|
minutes: 3
|
|
seconds: 0
|
|
condition: []
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- master_closet_sensor_motion_detected
|
|
sequence:
|
|
- service: light.turn_on
|
|
metadata: {}
|
|
data:
|
|
transition: 2
|
|
color_temp_kelvin: 2700
|
|
brightness_pct: 100
|
|
target:
|
|
area_id: master_closet
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- master_closet_sensor_area_cleared
|
|
sequence:
|
|
- service: light.turn_off
|
|
metadata: {}
|
|
data:
|
|
transition: 2
|
|
target:
|
|
area_id: master_closet
|
|
- id: a78f01c0-53af-4703-89d3-c04fb55bd6c5
|
|
alias: Routine | Molly's Room | Wake Up
|
|
description: Turn on Molly's Room Lights if it's a School Day and not a Holiday
|
|
or Snow Day
|
|
mode: queued
|
|
max: 10
|
|
trigger:
|
|
- platform: time
|
|
at: 05:25:00
|
|
condition:
|
|
- condition: zone
|
|
entity_id: person.molly_frey
|
|
zone: zone.home
|
|
- condition: state
|
|
entity_id: binary_sensor.school_day
|
|
state: 'on'
|
|
- condition: not
|
|
conditions:
|
|
- condition: or
|
|
conditions:
|
|
- condition: state
|
|
entity_id: binary_sensor.holiday
|
|
state: 'on'
|
|
- condition: state
|
|
entity_id: binary_sensor.snow_day
|
|
state: 'on'
|
|
action:
|
|
- service: light.turn_on
|
|
target:
|
|
area_id: molly_s_room
|
|
data:
|
|
transition: 300
|
|
color_temp_kelvin: 2700
|
|
brightness_pct: 100
|
|
- id: 68890773-dafe-4248-824f-83efc7591979
|
|
alias: Routine | Molly's Room | Sunset
|
|
description: Turn on the lights 30 minutes before sunset
|
|
mode: single
|
|
trigger:
|
|
- platform: sun
|
|
event: sunset
|
|
offset: -00:30:00
|
|
condition:
|
|
- condition: zone
|
|
entity_id: person.molly_frey
|
|
zone: zone.home
|
|
action:
|
|
- service: light.turn_on
|
|
data:
|
|
transition: 2
|
|
color_temp_kelvin: 2700
|
|
brightness_pct: 100
|
|
target:
|
|
area_id:
|
|
- molly_s_room
|
|
- id: c1f67ab1-d41b-4073-9a69-4345b4604260
|
|
alias: Routine | Molly's Room | Relax
|
|
description: It's time to relax
|
|
mode: single
|
|
trigger:
|
|
- platform: time
|
|
at: '20:15:00'
|
|
condition:
|
|
- condition: zone
|
|
entity_id: person.molly_frey
|
|
zone: zone.home
|
|
action:
|
|
- service: light.turn_on
|
|
metadata: {}
|
|
target:
|
|
area_id:
|
|
- molly_s_room
|
|
data:
|
|
transition: 5
|
|
color_temp_kelvin: 2237
|
|
brightness_pct: 60
|
|
- id: 69139fbb-ad53-4b80-9944-56f12d8aa90f
|
|
alias: Routine | Molly's Room | Away
|
|
description: Turn off the lights in Molly's Room when Molly is away
|
|
mode: single
|
|
trigger:
|
|
- platform: zone
|
|
entity_id: person.molly_frey
|
|
zone: zone.home
|
|
event: leave
|
|
condition: []
|
|
action:
|
|
- service: light.turn_off
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
area_id: molly_s_room
|
|
- id: 3da19d05-6cdb-40d0-b324-b8ac8b10031b
|
|
alias: Routine | Molly's Room | Arrive Home
|
|
description: Turn on Molly's Room Lights when she arrives home and it's after sunset
|
|
mode: single
|
|
trigger:
|
|
- platform: zone
|
|
entity_id: person.molly_frey
|
|
zone: zone.home
|
|
event: enter
|
|
condition:
|
|
- condition: sun
|
|
after: sunset
|
|
action:
|
|
- service: light.turn_on
|
|
metadata: {}
|
|
data:
|
|
transition: 2
|
|
color_temp_kelvin: 2700
|
|
brightness_pct: 75
|
|
target:
|
|
area_id: molly_s_room
|
|
- id: ea14801e-829f-4b4c-8f2f-fd653116528e
|
|
alias: Routine | Office | Workday
|
|
description: It's time to go to work
|
|
mode: single
|
|
trigger:
|
|
- platform: time
|
|
at: 08:10:00
|
|
id: workday_start
|
|
- platform: time
|
|
at: '10:00:00'
|
|
id: workday_mid_morning
|
|
- platform: time
|
|
at: '13:00:00'
|
|
id: workday_lunch
|
|
- platform: time
|
|
at: '14:00:00'
|
|
id: workday_after_lunch
|
|
- platform: time
|
|
at: '15:30:00'
|
|
id: workday_mid_afternoon
|
|
- platform: time
|
|
at: '16:45:00'
|
|
id: workday_evening
|
|
condition:
|
|
- condition: zone
|
|
entity_id: person.daniel_frey
|
|
zone: zone.home
|
|
- condition: state
|
|
entity_id: binary_sensor.work_day
|
|
state: 'on'
|
|
- condition: not
|
|
conditions:
|
|
- condition: or
|
|
conditions:
|
|
- condition: state
|
|
entity_id: binary_sensor.work_holiday
|
|
state: 'on'
|
|
- condition: state
|
|
entity_id: binary_sensor.work_travel
|
|
state: 'on'
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- workday_start
|
|
sequence:
|
|
- service: light.turn_on
|
|
metadata: {}
|
|
data:
|
|
transition: 1
|
|
color_temp_kelvin: 2700
|
|
brightness_pct: 100
|
|
target:
|
|
area_id: office
|
|
- service: tts.speak
|
|
metadata: {}
|
|
data:
|
|
cache: true
|
|
media_player_entity_id: media_player.office
|
|
message: It's time to start your work day. Have a great day!
|
|
target:
|
|
entity_id: tts.google_en_com
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- workday_mid_morning
|
|
sequence:
|
|
- service: tts.speak
|
|
metadata: {}
|
|
data:
|
|
cache: true
|
|
media_player_entity_id: media_player.office
|
|
message: It's time to stand up and stretch. Let's take a break for 10 minutes.
|
|
target:
|
|
entity_id: tts.google_en_com
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- workday_lunch
|
|
sequence:
|
|
- service: tts.speak
|
|
metadata: {}
|
|
data:
|
|
cache: true
|
|
media_player_entity_id: media_player.office
|
|
message: It's time for lunch! Remember to wash your hands!
|
|
target:
|
|
entity_id: tts.google_en_com
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- workday_after_lunch
|
|
sequence:
|
|
- service: tts.speak
|
|
metadata: {}
|
|
data:
|
|
cache: true
|
|
media_player_entity_id: media_player.office
|
|
message: Hope your having a good day! Wamt to go for a walk?
|
|
target:
|
|
entity_id: tts.google_en_com
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- workday_mid_afternoon
|
|
sequence:
|
|
- service: tts.speak
|
|
metadata: {}
|
|
data:
|
|
cache: true
|
|
media_player_entity_id: media_player.office
|
|
message: Let's go grab a glass of water. And why don't you go wash your
|
|
hands?
|
|
target:
|
|
entity_id: tts.google_en_com
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- workday_evening
|
|
sequence:
|
|
- service: tts.speak
|
|
metadata: {}
|
|
data:
|
|
cache: true
|
|
media_player_entity_id: media_player.office
|
|
message: Time to start wrapping up your work day and plan for dinner!
|
|
target:
|
|
entity_id: tts.google_en_com
|
|
- id: 49cb1865-323a-4211-8298-cafcd33ccd9b
|
|
alias: Routine | Office | Close the Office
|
|
description: The Office is closed
|
|
mode: single
|
|
trigger:
|
|
- platform: time
|
|
at: '18:00:00'
|
|
condition: []
|
|
action:
|
|
- service: light.turn_off
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
area_id: office
|
|
- id: bd94adbb-6d48-41e8-ba41-deb8f9538bd5
|
|
alias: Routine | Family Room | Sunrise
|
|
description: Turn off the lights 45 minutes after sunrise
|
|
mode: single
|
|
trigger:
|
|
- platform: time
|
|
at: 08:00:00
|
|
condition: []
|
|
action:
|
|
- service: light.turn_off
|
|
data:
|
|
transition: 2
|
|
target:
|
|
area_id: &id009
|
|
- family_room
|
|
- id: 3f4c0fdf-d9ef-468e-a973-8e7fa82c7483
|
|
alias: Routine | Family Room | Sunset
|
|
description: Turn on the lights 30 minutes before sunset
|
|
mode: single
|
|
trigger:
|
|
- platform: sun
|
|
event: sunset
|
|
offset: -00:30:00
|
|
condition: []
|
|
action:
|
|
- service: light.turn_on
|
|
data:
|
|
transition: 2
|
|
color_temp_kelvin: 2700
|
|
brightness_pct: 100
|
|
target:
|
|
area_id: *id009
|
|
- id: a85932d9-ff4e-486b-a3a1-89b07e84feef
|
|
alias: Routine | Family Room | Relax
|
|
description: It's time to relax
|
|
mode: single
|
|
trigger:
|
|
- platform: time
|
|
at: '20:15:00'
|
|
condition: []
|
|
action:
|
|
- service: light.turn_on
|
|
metadata: {}
|
|
data:
|
|
transition: 5
|
|
color_temp_kelvin: 2237
|
|
brightness_pct: 60
|
|
target:
|
|
area_id: *id009
|
|
- id: 7c7bcd97-f955-4f9d-b85b-7fb36a0ff198
|
|
alias: Routine | Family Room | Away
|
|
description: Everyone has left the house, turn off the Family Room Lights if the
|
|
time is before sunset
|
|
mode: single
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- binary_sensor.family_home
|
|
from: 'on'
|
|
to: 'off'
|
|
for:
|
|
minutes: 5
|
|
condition:
|
|
- condition: sun
|
|
before: sunset
|
|
action:
|
|
- service: light.turn_off
|
|
metadata: {}
|
|
data:
|
|
transition: 2
|
|
target:
|
|
area_id: *id009
|
|
- service: switch.turn_off
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
area_id:
|
|
- family_room
|
|
- family_room_ambient
|
|
- id: 33054812-ad0f-4412-af49-9aae78c484bd
|
|
alias: Routine | Firepit | Sunset
|
|
description: Firepit Lights turn on or off
|
|
mode: single
|
|
trigger:
|
|
- trigger: sun
|
|
event: sunset
|
|
offset: -00:45
|
|
id: just_before_sunset
|
|
- trigger: sun
|
|
event: sunrise
|
|
offset: 00:20:00
|
|
id: just_after_sunrise
|
|
- trigger: state
|
|
entity_id:
|
|
- input_boolean.light_reset
|
|
to: 'on'
|
|
id: light_reset
|
|
condition: []
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- alias: It's just before sunset or light reset and there is no custom schedule
|
|
set
|
|
and:
|
|
- condition: state
|
|
entity_id: sensor.custom_light_schedule
|
|
state: 'False'
|
|
- or:
|
|
- condition: trigger
|
|
id:
|
|
- just_before_sunset
|
|
- condition: trigger
|
|
id:
|
|
- light_reset
|
|
sequence:
|
|
- service: light.turn_off
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id:
|
|
- light.barn_door_light
|
|
- delay:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 5
|
|
milliseconds: 0
|
|
- service: light.turn_on
|
|
metadata: {}
|
|
data:
|
|
color_temp_kelvin: 2700
|
|
brightness_pct: 100
|
|
target:
|
|
entity_id:
|
|
- light.barn_door_light
|
|
- conditions:
|
|
- alias: It's just before sunset or light reset and a custom light schedule
|
|
is set
|
|
and:
|
|
- condition: state
|
|
entity_id: sensor.custom_light_schedule
|
|
state: 'True'
|
|
- or:
|
|
- condition: trigger
|
|
id:
|
|
- just_before_sunset
|
|
- condition: trigger
|
|
id:
|
|
- light_reset
|
|
sequence:
|
|
- action: script.turn_on
|
|
metadata: {}
|
|
target:
|
|
entity_id: script.firepit_custom_light_scene
|
|
data:
|
|
variables:
|
|
scene: "{% if has_value('input_select.custom_light_scene_selections')\
|
|
\ %}\n {{ states('input_select.custom_light_scene_selections') }}\n\
|
|
{% else %}\n Savanna sunset\n{% endif %}\n"
|
|
repeat_delay:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 30
|
|
onlyonlights: false
|
|
use_scene_brightness: false
|
|
brightness: 100
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- just_after_sunrise
|
|
sequence:
|
|
- service: light.turn_off
|
|
metadata: {}
|
|
data:
|
|
transition: 4
|
|
target:
|
|
entity_id:
|
|
- light.barn_door_light
|
|
- delay:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 30
|
|
milliseconds: 0
|
|
- action: input_boolean.turn_off
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: input_boolean.light_reset
|
|
- id: a54f6e03-4ce2-4fe0-8cb3-923cba043e23
|
|
alias: Notification | Mail Box | Mailbox Opened
|
|
description: Send a notification when the mailbox is opened
|
|
mode: single
|
|
trigger:
|
|
- platform: state
|
|
entity_id: input_boolean.mailbox_guard_motion
|
|
to: 'on'
|
|
condition: []
|
|
action:
|
|
- service: notify.parent_devices
|
|
data:
|
|
title: Mailbox Opened!
|
|
message: The mailbox was opened.
|
|
data:
|
|
url: /lovelace/home
|
|
persistent: true
|
|
importance: high
|
|
channel: MailBox
|
|
tag: mailbox
|
|
image: /media/local/notify/mailbox.jpg
|
|
actions:
|
|
- action: received
|
|
title: I checked the mailbox
|
|
- service: input_number.set_value
|
|
data:
|
|
entity_id: input_number.mailbox_guard_count
|
|
value: '{{ (states.input_number.mailbox_guard_count.state | int) + 1 }}'
|
|
- service: input_boolean.turn_off
|
|
data:
|
|
entity_id: input_boolean.mailbox_guard_motion
|
|
- id: 95dc4665-c395-4a9a-b877-df95b7d54664
|
|
alias: Notification | Mail Box | Low Battery
|
|
description: Send a notification the mailbox sensor battery is low
|
|
mode: single
|
|
trigger:
|
|
- platform: state
|
|
entity_id: input_boolean.mailbox_guard_low_battery
|
|
to: 'on'
|
|
condition: []
|
|
action:
|
|
- service: notify.parent_devices
|
|
data:
|
|
message: Mailbox Guard Low Battery!
|
|
- service: input_boolean.turn_off
|
|
data:
|
|
entity_id: input_boolean.mailbox_guard_low_battery
|
|
- id: b4dca479-7cdc-41a8-adb9-6c4b3a31d1cb
|
|
alias: Automation | Workshop | Turn lights on or off when door lock changes
|
|
description: Turn the Workshop lights on or off when the door lock changes
|
|
mode: single
|
|
triggers:
|
|
- trigger: state
|
|
entity_id:
|
|
- input_boolean.workshop_lock
|
|
to: 'on'
|
|
id: workshop_opened
|
|
- trigger: state
|
|
entity_id:
|
|
- input_boolean.workshop_lock
|
|
to: 'off'
|
|
id: workshop_closed
|
|
conditions: []
|
|
actions:
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- workshop_opened
|
|
sequence:
|
|
- action: light.turn_on
|
|
metadata: {}
|
|
data:
|
|
transition: 2
|
|
brightness_pct: 100
|
|
target:
|
|
area_id: workshop
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- workshop_closed
|
|
sequence:
|
|
- action: light.turn_off
|
|
metadata: {}
|
|
data:
|
|
transition: 2
|
|
target:
|
|
area_id: workshop
|
|
- id: d1e5d21c-a46d-48ed-b2e0-9a35d1d2ad24
|
|
alias: Routine | Patio | Sunset
|
|
description: Turn on the lights 30 minutes before sunset
|
|
mode: single
|
|
trigger:
|
|
- platform: sun
|
|
event: sunset
|
|
offset: -00:30:00
|
|
condition: []
|
|
action:
|
|
- service: light.turn_on
|
|
target: &id010
|
|
area_id:
|
|
- patio
|
|
entity_id:
|
|
- light.patio_light_switch
|
|
data:
|
|
transition: 2
|
|
color_temp_kelvin: 2700
|
|
brightness_pct: 100
|
|
- id: 1ab71119-81b3-4b1c-ae7d-803c79446bd1
|
|
alias: Routine | Patio | Relax
|
|
description: It's time to relax
|
|
mode: single
|
|
trigger:
|
|
- platform: time
|
|
at: '20:15:00'
|
|
condition: []
|
|
action:
|
|
- service: light.turn_on
|
|
metadata: {}
|
|
target: *id010
|
|
data:
|
|
transition: 5
|
|
color_temp_kelvin: 2237
|
|
brightness_pct: 60
|
|
- id: ''
|
|
alias: 'Switch | Automation | '
|
|
description: ' Switch turns Lights on or off, dimming available'
|
|
mode: queued
|
|
max: 10
|
|
trigger:
|
|
- platform: device
|
|
domain: mqtt
|
|
device_id: null
|
|
type: action
|
|
subtype: on_press
|
|
id: _button_on_press
|
|
- platform: device
|
|
domain: mqtt
|
|
device_id: null
|
|
type: action
|
|
subtype: up_press
|
|
id: _button_up_press
|
|
- platform: device
|
|
domain: mqtt
|
|
device_id: null
|
|
type: action
|
|
subtype: down_press_release
|
|
id: _button_down_press
|
|
- platform: device
|
|
domain: mqtt
|
|
device_id: null
|
|
type: action
|
|
subtype: off_press
|
|
id: _button_off_press
|
|
condition: []
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- _button_on_press
|
|
sequence:
|
|
- service: light.turn_on
|
|
target:
|
|
area_id: null
|
|
data:
|
|
transition: 1
|
|
kelvin: 2700
|
|
brightness_pct: 100
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- _button_off_press
|
|
sequence:
|
|
- service: light.turn_off
|
|
target:
|
|
area_id: null
|
|
data:
|
|
transition: 1
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- _button_up_press
|
|
sequence:
|
|
- service: light.turn_on
|
|
target:
|
|
entity_id: light._light_1
|
|
data:
|
|
brightness_step_pct: 10
|
|
kelvin: 2700
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- _button_down_press
|
|
sequence:
|
|
- service: light.turn_on
|
|
target:
|
|
entity_id: light._light_1
|
|
data:
|
|
brightness_step_pct: -10
|
|
kelvin: 2700
|
|
- id: eb376f46-cbe0-49de-8bc3-2f1ba8e695a6
|
|
alias: Routine | Security Lights | Side Yard
|
|
description: Side Yard Security Lights turn on or off
|
|
mode: single
|
|
trigger:
|
|
- platform: sun
|
|
event: sunset
|
|
offset: -00:45
|
|
id: just_before_sunset
|
|
- platform: sun
|
|
event: sunrise
|
|
offset: 00:20:00
|
|
id: just_after_sunrise
|
|
condition: []
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- just_before_sunset
|
|
sequence:
|
|
- service: light.turn_on
|
|
metadata: {}
|
|
data:
|
|
brightness_pct: 70
|
|
target:
|
|
entity_id:
|
|
- light.side_yard_security_light_1
|
|
- light.side_yard_security_light_2
|
|
- light.side_yard_security_light_3
|
|
- light.side_yard_security_light_4
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- just_after_sunrise
|
|
sequence:
|
|
- service: light.turn_off
|
|
metadata: {}
|
|
data:
|
|
transition: 4
|
|
target:
|
|
entity_id:
|
|
- light.side_yard_security_light_1
|
|
- light.side_yard_security_light_2
|
|
- light.side_yard_security_light_3
|
|
- light.side_yard_security_light_4
|
|
- id: 94a804a6-9105-42db-84bc-745b571aeba3
|
|
alias: Motion Sensor | Security Lights | Side Yard
|
|
description: Side Yard Security Lights Automations
|
|
mode: single
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- binary_sensor.side_yard_sensor_occupancy
|
|
to: 'on'
|
|
id: side_yard_sensor_motion_detected
|
|
- platform: state
|
|
entity_id:
|
|
- binary_sensor.side_yard_sensor_occupancy
|
|
to: 'off'
|
|
for:
|
|
hours: 0
|
|
minutes: 10
|
|
seconds: 0
|
|
id: side_yard_sensor_area_cleared
|
|
condition:
|
|
condition: or
|
|
conditions:
|
|
- condition: time
|
|
after: '23:00:00'
|
|
weekday:
|
|
- sun
|
|
- mon
|
|
- tue
|
|
- wed
|
|
- thu
|
|
- fri
|
|
- sat
|
|
- condition: sun
|
|
before: sunrise
|
|
before_offset: 00:15:00
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- side_yard_sensor_motion_detected
|
|
sequence:
|
|
- service: light.turn_on
|
|
metadata: {}
|
|
data:
|
|
transition: 2
|
|
brightness_pct: 50
|
|
target:
|
|
entity_id:
|
|
- light.side_yard_security_light_1
|
|
- light.side_yard_security_light_2
|
|
- light.side_yard_security_light_3
|
|
- light.side_yard_security_light_4
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- side_yard_sensor_area_cleared
|
|
sequence:
|
|
- service: light.turn_off
|
|
metadata: {}
|
|
data:
|
|
transition: 4
|
|
target:
|
|
entity_id:
|
|
- light.side_yard_security_light_1
|
|
- light.side_yard_security_light_2
|
|
- light.side_yard_security_light_3
|
|
- light.side_yard_security_light_4
|
|
- id: f302181e-c4ea-4549-92b1-972cb39e689b
|
|
alias: Game Time | Philadelphia Eagles
|
|
description: 'Game Time: The Philadelphia Eagles are on'
|
|
mode: single
|
|
triggers:
|
|
- trigger: state
|
|
entity_id:
|
|
- calendar.philadelphia_eagles
|
|
to: 'on'
|
|
id: game_started
|
|
- trigger: state
|
|
entity_id:
|
|
- calendar.philadelphia_eagles
|
|
to: 'off'
|
|
id: game_ended
|
|
conditions: []
|
|
actions:
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- game_started
|
|
sequence:
|
|
- action: script.turn_on
|
|
metadata: {}
|
|
target:
|
|
entity_id:
|
|
- script.driveway_custom_light_scene
|
|
- script.firepit_custom_light_scene
|
|
- script.front_porch_custom_light_scene
|
|
- script.front_yard_custom_light_scene
|
|
- script.patio_custom_light_scene
|
|
data: &id011
|
|
variables:
|
|
scene: 'Special: My scene'
|
|
repeat_delay:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 45
|
|
onlyonlights: false
|
|
use_scene_brightness: false
|
|
brightness: 100
|
|
my_scene:
|
|
c:
|
|
- - 0.217
|
|
- 0.302
|
|
- - 0.304
|
|
- 0.325
|
|
b: 0.6
|
|
- condition: or
|
|
conditions:
|
|
- condition: state
|
|
entity_id: binary_sensor.winter
|
|
state: 'on'
|
|
- condition: state
|
|
entity_id: binary_sensor.christmas_eve
|
|
state: 'on'
|
|
- condition: state
|
|
entity_id: binary_sensor.christmas_day
|
|
state: 'on'
|
|
- action: script.turn_on
|
|
metadata: {}
|
|
target:
|
|
entity_id:
|
|
- script.front_yard_holiday_custom_light_scene
|
|
data: *id011
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- game_ended
|
|
sequence:
|
|
- service: input_boolean.turn_on
|
|
target:
|
|
entity_id:
|
|
- input_boolean.light_reset
|
|
- id: 738a8a9c-9792-4b41-819b-ea4cca648a8b
|
|
alias: Game Time | Philadelphia Flyers
|
|
description: 'Game Time: The Philadelphia Flyers are on'
|
|
mode: single
|
|
triggers:
|
|
- trigger: state
|
|
entity_id:
|
|
- calendar.philadelphia_flyers
|
|
to: 'on'
|
|
id: game_started
|
|
- trigger: state
|
|
entity_id:
|
|
- calendar.philadelphia_flyers
|
|
to: 'off'
|
|
id: game_ended
|
|
conditions: []
|
|
actions:
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- game_started
|
|
sequence:
|
|
- action: script.turn_on
|
|
metadata: {}
|
|
target:
|
|
entity_id:
|
|
- script.driveway_custom_light_scene
|
|
- script.firepit_custom_light_scene
|
|
- script.front_porch_custom_light_scene
|
|
- script.front_yard_custom_light_scene
|
|
- script.patio_custom_light_scene
|
|
data: &id012
|
|
variables:
|
|
scene: 'Special: My scene'
|
|
repeat_delay:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 45
|
|
onlyonlights: false
|
|
use_scene_brightness: false
|
|
brightness: 100
|
|
my_scene:
|
|
c:
|
|
- - 0.599
|
|
- 0.362
|
|
- - 0.313
|
|
- 0.329
|
|
b: 0.6
|
|
- condition: or
|
|
conditions:
|
|
- condition: state
|
|
entity_id: binary_sensor.winter
|
|
state: 'on'
|
|
- condition: state
|
|
entity_id: binary_sensor.christmas_eve
|
|
state: 'on'
|
|
- condition: state
|
|
entity_id: binary_sensor.christmas_day
|
|
state: 'on'
|
|
- action: script.turn_on
|
|
metadata: {}
|
|
target:
|
|
entity_id:
|
|
- script.front_yard_holiday_custom_light_scene
|
|
data: *id012
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- game_ended
|
|
sequence:
|
|
- service: input_boolean.turn_on
|
|
target:
|
|
entity_id:
|
|
- input_boolean.light_reset
|
|
- id: 02d2b12a-ca52-4b67-901c-b24a760282a1
|
|
alias: Game Time | Penn St Nittany Lions
|
|
description: 'Game Time: Penn St Nittany Lions are on'
|
|
mode: single
|
|
triggers:
|
|
- trigger: state
|
|
entity_id:
|
|
- calendar.penn_state_nittany_lions_football
|
|
to: 'on'
|
|
id: game_started
|
|
- trigger: state
|
|
entity_id:
|
|
- calendar.penn_state_nittany_lions_football
|
|
to: 'off'
|
|
id: game_ended
|
|
conditions: []
|
|
actions:
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- game_started
|
|
sequence:
|
|
- action: script.turn_on
|
|
metadata: {}
|
|
target:
|
|
entity_id:
|
|
- script.driveway_custom_light_scene
|
|
- script.firepit_custom_light_scene
|
|
- script.front_porch_custom_light_scene
|
|
- script.front_yard_custom_light_scene
|
|
- script.patio_custom_light_scene
|
|
data: &id013
|
|
variables:
|
|
scene: 'Special: My scene'
|
|
repeat_delay:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 45
|
|
onlyonlights: false
|
|
use_scene_brightness: false
|
|
brightness: 100
|
|
my_scene:
|
|
c:
|
|
- - 0.18
|
|
- 0.175
|
|
- - 0.304
|
|
- 0.325
|
|
b: 0.6
|
|
- condition: or
|
|
conditions:
|
|
- condition: state
|
|
entity_id: binary_sensor.winter
|
|
state: 'on'
|
|
- condition: state
|
|
entity_id: binary_sensor.christmas_eve
|
|
state: 'on'
|
|
- condition: state
|
|
entity_id: binary_sensor.christmas_day
|
|
state: 'on'
|
|
- action: script.turn_on
|
|
metadata: {}
|
|
target:
|
|
entity_id:
|
|
- script.front_yard_holiday_custom_light_scene
|
|
data: *id013
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- game_ended
|
|
sequence:
|
|
- service: input_boolean.turn_on
|
|
target:
|
|
entity_id:
|
|
- input_boolean.light_reset
|
|
- id: 14f666a9-0e2e-4a87-adf1-57e0fc29231a
|
|
alias: Game Time | Philadelphia Phillies
|
|
description: 'Game Time: The Philadelphia Phillies are on'
|
|
mode: single
|
|
triggers:
|
|
- trigger: state
|
|
entity_id:
|
|
- calendar.philadelphia_phillies
|
|
to: 'on'
|
|
id: game_started
|
|
- trigger: state
|
|
entity_id:
|
|
- calendar.philadelphia_phillies
|
|
to: 'off'
|
|
id: game_ended
|
|
conditions: []
|
|
actions:
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- game_started
|
|
sequence:
|
|
- action: script.turn_on
|
|
metadata: {}
|
|
target:
|
|
entity_id:
|
|
- script.driveway_custom_light_scene
|
|
- script.firepit_custom_light_scene
|
|
- script.front_porch_custom_light_scene
|
|
- script.front_yard_custom_light_scene
|
|
- script.patio_custom_light_scene
|
|
data: &id014
|
|
variables:
|
|
scene: 'Special: My scene'
|
|
repeat_delay:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 45
|
|
onlyonlights: false
|
|
use_scene_brightness: false
|
|
brightness: 100
|
|
my_scene:
|
|
c:
|
|
- - 0.609
|
|
- 0.321
|
|
- - 0.17
|
|
- 0.133
|
|
- - 0.313
|
|
- 0.329
|
|
b: 0.6
|
|
- condition: or
|
|
conditions:
|
|
- condition: state
|
|
entity_id: binary_sensor.winter
|
|
state: 'on'
|
|
- condition: state
|
|
entity_id: binary_sensor.christmas_eve
|
|
state: 'on'
|
|
- condition: state
|
|
entity_id: binary_sensor.christmas_day
|
|
state: 'on'
|
|
- action: script.turn_on
|
|
metadata: {}
|
|
target:
|
|
entity_id:
|
|
- script.front_yard_holiday_custom_light_scene
|
|
data: *id014
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- game_ended
|
|
sequence:
|
|
- service: input_boolean.turn_on
|
|
target:
|
|
entity_id:
|
|
- input_boolean.light_reset
|
|
- id: 673495f1-92b3-41f8-a363-b55b95034589
|
|
alias: Notification | People | The Girls are on the move
|
|
description: The Girls have left or arrived at a zone
|
|
mode: queued
|
|
max: 10
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- person.camdyn_frey
|
|
- person.molly_frey
|
|
condition:
|
|
- condition: template
|
|
value_template: '{{ trigger.from_state.state != trigger.to_state.state }}'
|
|
action:
|
|
- service: notify.parent_devices
|
|
metadata: {}
|
|
data_template:
|
|
title: '{{ trigger.to_state.attributes.friendly_name }} is on the Move'
|
|
message: '{{ trigger.to_state.attributes.friendly_name }} {% if trigger.to_state.state
|
|
== ''not_home'' %}has left {{trigger.from_state.state }} {% else %}arrived
|
|
at {{ trigger.to_state.state }} {% endif %}
|
|
|
|
'
|
|
data:
|
|
tag: location
|
|
- id: a63879a8-3229-47fb-a7b5-30b640e7c07a
|
|
alias: Notification | Utility | Sump Pump Offline
|
|
description: Notify Parent Devices when the Sump Pump is online or offline
|
|
mode: single
|
|
triggers:
|
|
- trigger: state
|
|
entity_id:
|
|
- switch.basement_sump_pump
|
|
to: unavailable
|
|
conditions: []
|
|
actions:
|
|
- action: notify.parent_devices
|
|
metadata: {}
|
|
data_template:
|
|
title: Sump Pump Offline
|
|
message: 'The Sump Pump is offline. Check the GFI Outlet!
|
|
|
|
'
|
|
data:
|
|
tag: utility
|
|
- id: 0bf71b7a-c2eb-4cc4-a537-250a5ebba41a
|
|
alias: Notification | Utility | Sump Pump Running
|
|
description: Notify Parent Devices when the Sump Pump is running
|
|
mode: single
|
|
triggers:
|
|
- trigger: numeric_state
|
|
entity_id:
|
|
- sensor.basement_sump_pump_power
|
|
above: 2
|
|
conditions: []
|
|
actions:
|
|
- action: notify.parent_devices
|
|
metadata: {}
|
|
data_template:
|
|
title: Sump Pump Running
|
|
message: 'The Sump Pump is running
|
|
|
|
'
|
|
data:
|
|
tag: utility
|
|
- action: input_boolean.turn_on
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: input_boolean.sump_pump_triggered
|
|
- id: afe14c2e-4225-4580-9f99-2889b8ca1eb9
|
|
alias: Notification | Utility | Sump Pump Stopped
|
|
description: Notify Parent Devices when the Sump Pump has finished
|
|
mode: single
|
|
triggers:
|
|
- trigger: numeric_state
|
|
entity_id:
|
|
- sensor.basement_sump_pump_power
|
|
below: 1
|
|
for:
|
|
minutes: 1
|
|
conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.sump_pump_triggered
|
|
state: 'on'
|
|
actions:
|
|
- action: notify.parent_devices
|
|
metadata: {}
|
|
data_template:
|
|
title: Sump Pump Finished
|
|
message: 'The Sump Pump has finished running
|
|
|
|
'
|
|
data:
|
|
tag: utility
|
|
- action: input_boolean.turn_off
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: input_boolean.sump_pump_triggered
|
|
- id: 9b6de636-370c-4e4f-9059-23a03de6b41c
|
|
alias: Notification | Moisture Sensor | Water Leak Detected
|
|
description: Send a notifcation to the Family if water is detected in any area
|
|
mode: queued
|
|
max: 10
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- binary_sensor.basement_water_leak_sensor_water_leak
|
|
to: 'on'
|
|
id: basement_water_leak_sensor_wet
|
|
- platform: state
|
|
entity_id:
|
|
- binary_sensor.kitchen_sink_water_leak_sensor_water_leak
|
|
to: 'on'
|
|
id: kitchen_sink_water_leak_sensor_wet
|
|
- platform: state
|
|
entity_id:
|
|
- binary_sensor.bathroom_sink_water_leak_sensor_water_leak
|
|
to: 'on'
|
|
id: bathroom_sink_water_leak_sensor_wet
|
|
- platform: state
|
|
entity_id:
|
|
- binary_sensor.bathroom_toilet_water_leak_sensor_water_leak
|
|
to: 'on'
|
|
id: bathroom_toilet_water_leak_sensor_wet
|
|
- platform: state
|
|
entity_id:
|
|
- binary_sensor.master_bathroom_sink_water_leak_sensor_water_leak
|
|
to: 'on'
|
|
id: master_bathroom_sink_water_leak_sensor_wet
|
|
- platform: state
|
|
entity_id:
|
|
- binary_sensor.master_bathroom_toilet_water_leak_sensor_water_leak
|
|
to: 'on'
|
|
id: master_bathroom_toilet_water_leak_sensor_wet
|
|
condition: []
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- basement_water_leak_sensor_wet
|
|
- kitchen_sink_water_leak_sensor_wet
|
|
- bathroom_sink_water_leak_sensor_wet
|
|
- bathroom_toilet_water_leak_sensor_wet
|
|
- master_bathroom_sink_water_leak_sensor_wet
|
|
- master_bathroom_toilet_water_leak_sensor_wet
|
|
sequence:
|
|
- service: notify.family_devices
|
|
metadata: {}
|
|
data_template:
|
|
title: Water Leak Detected!
|
|
message: '{{ trigger.to_state.attributes.friendly_name }} has detected a
|
|
water leak!'
|
|
data:
|
|
tag: water-leak-detected
|
|
- id: f7763561-7ede-44e9-9a8b-520d085f7c51
|
|
alias: Event | GitHub | Push
|
|
trigger:
|
|
- platform: webhook
|
|
webhook_id: env_var HASS_DEPLOY_CONFIG_WEBHOOK_ID
|
|
local_only: false
|
|
actions:
|
|
- action: shell_command.deploy_config
|
|
- action: homeassistant.reload_all
|
|
- id: 71502fe4-85f4-4a16-840f-6d2ed3c49625
|
|
alias: Notification | House | Window Open
|
|
description: Send a notification when a window is open
|
|
mode: single
|
|
trigger:
|
|
- platform: state
|
|
entity_id: group.parents
|
|
to: not_home
|
|
condition:
|
|
- condition: state
|
|
entity_id:
|
|
- binary_sensor.basement_window_sensor_1_contact
|
|
- binary_sensor.basement_window_sensor_2_contact
|
|
match: any
|
|
state: 'on'
|
|
action:
|
|
- service: notify.mobile_app_dan_s_phone
|
|
data_template:
|
|
title: A Window is Open!
|
|
message: '{{ trigger.to_state.attributes.friendly_name }} is open!'
|