2020-11-16 23:55:05 +00:00
|
|
|
- id: goto_sleep
|
2021-08-11 22:52:50 +00:00
|
|
|
alias: '[Behaviour] Go to sleep'
|
2020-11-16 23:55:05 +00:00
|
|
|
description: ''
|
|
|
|
trigger:
|
|
|
|
- platform: time
|
2020-11-21 03:28:38 +00:00
|
|
|
at: '23:25'
|
2020-11-16 23:55:05 +00:00
|
|
|
condition:
|
|
|
|
- condition: time
|
|
|
|
weekday:
|
|
|
|
- mon
|
|
|
|
- tue
|
|
|
|
- wed
|
|
|
|
- thu
|
|
|
|
- sun
|
|
|
|
- condition: state
|
|
|
|
entity_id: binary_sensor.desktop
|
|
|
|
state: 'on'
|
|
|
|
action:
|
|
|
|
- service: light.turn_on
|
|
|
|
data:
|
2020-11-16 23:57:58 +00:00
|
|
|
flash: long
|
2020-11-16 23:55:05 +00:00
|
|
|
brightness: 200
|
|
|
|
rgb_color:
|
|
|
|
- 255
|
|
|
|
- 0
|
|
|
|
- 0
|
2021-07-19 19:38:24 +00:00
|
|
|
entity_id: light.desk_lightbar_ambilight
|
2020-11-16 23:55:05 +00:00
|
|
|
- delay: '0:05:00'
|
2020-11-21 03:28:38 +00:00
|
|
|
- condition: state
|
|
|
|
entity_id: binary_sensor.desktop
|
|
|
|
state: 'on'
|
2021-04-19 10:27:29 +00:00
|
|
|
- service: shell_command.pc_poweroff
|
2020-11-16 23:55:05 +00:00
|
|
|
mode: single
|