2022-02-05 15:11:11 +00:00
|
|
|
- id: goto_sleep
|
|
|
|
alias: '[Behaviour] Go to sleep'
|
|
|
|
description: ''
|
|
|
|
trigger:
|
|
|
|
- platform: time
|
|
|
|
at: '23:25'
|
|
|
|
- platform: time
|
|
|
|
at: '23:55'
|
|
|
|
condition:
|
|
|
|
- condition: time
|
|
|
|
weekday:
|
|
|
|
- mon
|
|
|
|
- tue
|
|
|
|
- wed
|
|
|
|
- thu
|
|
|
|
- sun
|
|
|
|
- condition: state
|
2022-05-05 22:50:00 +00:00
|
|
|
entity_id: binary_sensor.hulk_ping
|
2022-02-05 15:11:11 +00:00
|
|
|
state: 'on'
|
|
|
|
action:
|
|
|
|
- service: light.turn_on
|
|
|
|
data:
|
|
|
|
flash: long
|
|
|
|
rgb_color:
|
|
|
|
- 255
|
|
|
|
- 0
|
|
|
|
- 0
|
|
|
|
target:
|
2022-04-18 21:34:03 +00:00
|
|
|
entity_id: light.office_light_up
|
2022-02-05 15:11:11 +00:00
|
|
|
- delay: '0:05:00'
|
|
|
|
- choose:
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
2022-05-05 22:50:00 +00:00
|
|
|
entity_id: binary_sensor.hulk_ping
|
2022-02-05 15:11:11 +00:00
|
|
|
state: 'on'
|
|
|
|
- condition: state
|
|
|
|
entity_id: input_boolean.pc_caffeine
|
|
|
|
state: 'off'
|
|
|
|
sequence:
|
|
|
|
- service: shell_command.pc_poweroff
|
|
|
|
- choose:
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
2022-05-05 22:50:00 +00:00
|
|
|
entity_id: binary_sensor.hulk_ping
|
2022-02-05 15:11:11 +00:00
|
|
|
state: 'on'
|
|
|
|
- condition: state
|
|
|
|
entity_id: input_boolean.pc_caffeine
|
2022-02-08 23:14:13 +00:00
|
|
|
state: 'on'
|
2022-02-05 15:11:11 +00:00
|
|
|
sequence:
|
|
|
|
- service: input_boolean.turn_off
|
|
|
|
target:
|
|
|
|
entity_id: input_boolean.pc_caffeine
|
|
|
|
- service: light.turn_off
|
|
|
|
target:
|
2022-04-18 21:34:03 +00:00
|
|
|
entity_id: light.office_light_up
|
2022-02-05 15:11:11 +00:00
|
|
|
mode: single
|
|
|
|
|
|
|
|
- id: goto_sleep-2
|
|
|
|
alias: '[Behaviour] Go to sleep 2 (next day)'
|
|
|
|
description: ''
|
|
|
|
trigger:
|
|
|
|
- platform: time
|
|
|
|
at: '0:25'
|
|
|
|
condition:
|
|
|
|
- condition: time
|
|
|
|
weekday:
|
|
|
|
- mon
|
|
|
|
- tue
|
|
|
|
- wed
|
|
|
|
- thu
|
|
|
|
- fri
|
|
|
|
- condition: state
|
2022-05-05 22:50:00 +00:00
|
|
|
entity_id: binary_sensor.hulk_ping
|
2022-02-05 15:11:11 +00:00
|
|
|
state: 'on'
|
|
|
|
action:
|
|
|
|
- service: light.turn_on
|
|
|
|
data:
|
|
|
|
flash: long
|
|
|
|
rgb_color:
|
|
|
|
- 255
|
|
|
|
- 0
|
|
|
|
- 0
|
|
|
|
target:
|
2022-04-18 21:34:03 +00:00
|
|
|
entity_id: light.office_light_up
|
2022-02-05 15:11:11 +00:00
|
|
|
- delay: '0:05:00'
|
|
|
|
- choose:
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
2022-05-05 22:50:00 +00:00
|
|
|
entity_id: binary_sensor.hulk_ping
|
2022-02-05 15:11:11 +00:00
|
|
|
state: 'on'
|
|
|
|
- condition: state
|
|
|
|
entity_id: input_boolean.pc_caffeine
|
|
|
|
state: 'off'
|
|
|
|
sequence:
|
|
|
|
- service: shell_command.pc_poweroff
|
|
|
|
- choose:
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
2022-05-05 22:50:00 +00:00
|
|
|
entity_id: binary_sensor.hulk_ping
|
2022-02-05 15:11:11 +00:00
|
|
|
state: 'on'
|
|
|
|
- condition: state
|
|
|
|
entity_id: input_boolean.pc_caffeine
|
2022-02-08 23:14:13 +00:00
|
|
|
state: 'on'
|
2022-02-05 15:11:11 +00:00
|
|
|
sequence:
|
|
|
|
- service: input_boolean.turn_off
|
|
|
|
target:
|
|
|
|
entity_id: input_boolean.pc_caffeine
|
|
|
|
- service: light.turn_off
|
|
|
|
target:
|
2022-04-18 21:34:03 +00:00
|
|
|
entity_id: light.office_light_up
|
2022-02-05 15:11:11 +00:00
|
|
|
mode: single
|
|
|
|
|
|
|
|
- id: goto_sleep-
|
|
|
|
alias: '[Behaviour] Go to sleep 3 (hard cutoff)'
|
|
|
|
description: ''
|
|
|
|
trigger:
|
|
|
|
- platform: time
|
|
|
|
at: '0:55'
|
|
|
|
condition:
|
|
|
|
- condition: time
|
|
|
|
weekday:
|
|
|
|
- mon
|
|
|
|
- tue
|
|
|
|
- wed
|
|
|
|
- thu
|
|
|
|
- fri
|
|
|
|
- condition: state
|
2022-05-05 22:50:00 +00:00
|
|
|
entity_id: binary_sensor.hulk_ping
|
2022-02-05 15:11:11 +00:00
|
|
|
state: 'on'
|
|
|
|
action:
|
|
|
|
- service: light.turn_on
|
|
|
|
data:
|
|
|
|
flash: long
|
|
|
|
rgb_color:
|
|
|
|
- 255
|
|
|
|
- 0
|
|
|
|
- 0
|
|
|
|
target:
|
2022-04-18 21:34:03 +00:00
|
|
|
entity_id: light.office_light_up
|
2022-07-10 21:26:49 +00:00
|
|
|
- service: light.turn_on
|
|
|
|
data:
|
|
|
|
rgb_color:
|
|
|
|
- 255
|
|
|
|
- 0
|
|
|
|
- 0
|
|
|
|
target:
|
|
|
|
entity_id: light.office
|
2022-02-05 15:11:11 +00:00
|
|
|
- delay: '0:05:00'
|
|
|
|
- service: shell_command.pc_poweroff
|
|
|
|
- service: input_boolean.turn_off
|
|
|
|
target:
|
|
|
|
entity_id: input_boolean.pc_caffeine
|
|
|
|
- service: light.turn_off
|
|
|
|
target:
|
2022-04-18 21:34:03 +00:00
|
|
|
entity_id: light.office_light_up
|
2022-02-05 15:11:11 +00:00
|
|
|
- delay: '0:05:00'
|
|
|
|
- service: switch.turn_off
|
|
|
|
target:
|
|
|
|
entity_id: switch.computer_outlet
|
|
|
|
mode: single
|