Skip to content
RemoteRelay
Your computer in your smart home ↗

Automate your PC with Home Assistant: wake, wait and open an app

Home Assistant can send Wake-on-LAN from its host and select a RemoteRelay source when the agent is available. Separate computer wake from the subsequent action instead of assuming both happen at once.

RemoteRelay interface and smart-home integration
RemoteRelay · Interface and features vary by integration.

What you need

  • A paired RemoteRelay component and identified media_player entity.
  • Saved MAC, available wake_on_lan service and a host able to reach the PC's network.
  • A tested application source and user session when required.

Getting started

  1. Test media_player.turn_on against the PC entity and verify actual wake.
  2. With the agent running, test media_player.select_source with the exact name from source_list.
  3. Create a Home Assistant script with wake, availability wait and source selection using the example as a starting point.
  4. Replace media_player.my_pc and Steam with your values. Test manually before adding time, presence or voice triggers.
  5. Review the Home Assistant trace if the wait times out. Do not keep sending actions to a computer that is still offline.

Example for the script YAML editor

Paste this into a Home Assistant script's YAML editor and change the entity and source. Two minutes is this recipe's timeout, not a guaranteed boot duration.

Home Assistant script
alias: Prepare PC
sequence:
  - action: media_player.turn_on
    target:
      entity_id: media_player.my_pc
  - wait_template: "{{ states('media_player.my_pc') not in ['unavailable', 'unknown', 'off'] }}"
    timeout: "00:02:00"
    continue_on_timeout: false
  - action: media_player.select_source
    target:
      entity_id: media_player.my_pc
    data:
      source: Steam
mode: single

Sensors, volume and Assist

Add sensors exposed by your computer to the dashboard. For disk alerts, check units, thresholds and time below the limit. CPU is not a substitute for electricity consumption.

Test volume_up, volume_down and mute through the media player. For Assist, expose a script or entities supported by Home Assistant and test a phrase in your language; voice availability is not automatic for every entity.

Compatibility and limits

Entity availability indicates agent connectivity, not readiness of a graphical session or application. Metrics depend on the system. Playback and pause currently map to a toggle: do not treat them as idempotent actions.

Test the action on your computer before including it in a routine. Available plans and features are detailed in the portal.

Common questions

Who sends Wake-on-LAN while the PC is off?

The Home Assistant host uses the configured MAC addresses. It must remain running and able to reach the computer's network.

Can Home Assistant run scripts on the PC?

Yes. Create and test a Terminal Command source in RemoteRelay, then select it with media_player.select_source. Commands run with the agent's permissions.

Put your computer to work with your home

Choose your integration and verify one action. Then add the apps, sensors and cameras you need.