Files
Home-Assistant/automations/01_home_and_lighting/01a_office_automations.yaml
T

88 lines
2.0 KiB
YAML

##############################################
############ OFFICE AUTOMATIONS ##############
##############################################
- id: '1740099961116'
alias: Office Lights turn on with motion
description: ''
triggers:
- trigger: state
entity_id:
- binary_sensor.office_motion
to: 'on'
conditions: []
actions:
- action: light.turn_on
metadata: {}
data:
brightness_pct: 100
color_temp_kelvin: 6500
target:
device_id:
- 42b9a4c3e4edfd663f2b8a0a95c3997c
- action: switch.turn_on
target:
entity_id: switch.office_wax_warmer_socket_1
- type: turn_on
device_id: 397d7f06bfbbeaf3014d989a1e32ce07
entity_id: 92505d68c2d00ef59e8ba61c3e3db32b
domain: switch
mode: single
- id: '1742691391008'
alias: Turn on office echo
description: ''
triggers:
- trigger: time
at: '18:00:00'
conditions: []
actions:
- type: turn_on
device_id: 31d67bb445f5c8920a1dc076d0d71e76
entity_id: 6c1fd91e0ff15419f7bdb6b9e233cffc
domain: switch
mode: single
- id: '1740100159283'
alias: Turn off lights when no one is in office
description: ''
triggers:
- trigger: state
entity_id:
- binary_sensor.office_occupancy
to: 'off'
for:
hours: 1
minutes: 0
seconds: 0
conditions: []
actions:
- action: light.turn_off
metadata: {}
data: {}
target:
device_id:
- 42b9a4c3e4edfd663f2b8a0a95c3997c
- action: switch.turn_off
target:
entity_id: switch.office_wax_warmer_socket_1
- type: turn_off
device_id: 397d7f06bfbbeaf3014d989a1e32ce07
entity_id: 92505d68c2d00ef59e8ba61c3e3db32b
domain: switch
mode: single
- id: '1739997032502'
alias: Office echo Plug Power Toggle Automation
description: ''
triggers:
- trigger: time
at: '20:00:00'
conditions: []
actions:
- type: turn_off
device_id: 31d67bb445f5c8920a1dc076d0d71e76
entity_id: 6c1fd91e0ff15419f7bdb6b9e233cffc
domain: switch
mode: single