- id: goto_sleep alias: Go to sleep description: '' trigger: - platform: time at: '23:25' condition: - condition: time weekday: - mon - tue - wed - thu - sun - condition: state entity_id: binary_sensor.desktop state: 'on' action: - service: light.turn_on data: flash: long brightness: 200 rgb_color: - 255 - 0 - 0 entity_id: light.desk_lightbar_ambilight - delay: '0:05:00' - condition: state entity_id: binary_sensor.desktop state: 'on' - service: shell_command.pc_poweroff mode: single