106 lines
2.5 KiB
YAML
Executable File
106 lines
2.5 KiB
YAML
Executable File
- id: '1627952406585'
|
|
alias: Turn off the lab lights when Joe is away.
|
|
description: ''
|
|
trigger:
|
|
- platform: zone
|
|
entity_id: person.joe
|
|
zone: zone.home
|
|
event: leave
|
|
condition: []
|
|
action:
|
|
- type: turn_off
|
|
device_id: d03b2a6c6faf5921d77b4145ffe3afa8
|
|
entity_id: switch.lab_lights
|
|
domain: switch
|
|
mode: single
|
|
- id: '1627952464320'
|
|
alias: Turn on lab lights when Joe arrives.
|
|
description: ''
|
|
trigger:
|
|
- platform: zone
|
|
entity_id: person.joe
|
|
zone: zone.home
|
|
event: enter
|
|
condition: []
|
|
action:
|
|
- type: turn_on
|
|
device_id: d03b2a6c6faf5921d77b4145ffe3afa8
|
|
entity_id: switch.lab_lights
|
|
domain: switch
|
|
mode: single
|
|
- id: '1627953076015'
|
|
alias: Turn on lab lights after sunset if Joe is home.
|
|
description: ''
|
|
trigger:
|
|
- platform: sun
|
|
event: sunset
|
|
condition:
|
|
- condition: zone
|
|
entity_id: person.joe
|
|
zone: zone.home
|
|
action:
|
|
- type: turn_on
|
|
device_id: d03b2a6c6faf5921d77b4145ffe3afa8
|
|
entity_id: switch.lab_lights
|
|
domain: switch
|
|
mode: single
|
|
- id: '1627954003317'
|
|
alias: Dim the lab lights
|
|
description: This one is a lil silly, it just turns the lights off whenever the
|
|
chrome cast is active
|
|
trigger:
|
|
- platform: device
|
|
device_id: f6097a01c7e3e31bb394018e6a8be3e7
|
|
domain: media_player
|
|
entity_id: media_player.joe_s_lab
|
|
type: playing
|
|
condition: []
|
|
action:
|
|
- type: turn_off
|
|
device_id: d03b2a6c6faf5921d77b4145ffe3afa8
|
|
entity_id: switch.lab_lights
|
|
domain: switch
|
|
mode: single
|
|
- id: '1628264103743'
|
|
alias: Send welcome home message when Joe arrives home.
|
|
description: ''
|
|
trigger:
|
|
- platform: zone
|
|
entity_id: person.joe
|
|
zone: zone.home
|
|
event: enter
|
|
condition: []
|
|
action:
|
|
- service: notify.lab_discord
|
|
data:
|
|
message: Welcome home <@185206201011798016>
|
|
target:
|
|
- '505468673754923049'
|
|
mode: single
|
|
- id: '1628291074276'
|
|
alias: Turn Off Lights When House is Empty
|
|
description: When everybody leaves, turn off the lights
|
|
trigger:
|
|
- platform: state
|
|
entity_id: binary_sensor.people_home
|
|
to: 'off'
|
|
condition: []
|
|
action:
|
|
- service: switch.turn_off
|
|
target:
|
|
entity_id: all
|
|
mode: single
|
|
- id: '1628359480237'
|
|
alias: Turn Off Downstairs Lights on Time Schedule
|
|
description: Just turn off lights we can assume without sensors wont be in use at
|
|
these hours
|
|
trigger:
|
|
- platform: time
|
|
at: 03:00
|
|
condition: []
|
|
action:
|
|
- service: switch.turn_off
|
|
target:
|
|
entity_id: switch.on_off_relay_switch
|
|
mode: single
|