- id: computer_awake alias: '[Computer] awakes' mode: single trigger: - platform: state entity_id: binary_sensor.desktop to: 'on' from: 'off' action: - service: input_boolean.turn_off target: entity_id: input_boolean.pc_sleeping