Harmony Hub Triggers Wake on Lan to start HTPC

Hi
im new to Home-assistant and I need some assistant in setting everything up.
I want to start my HTPC via Wake on Lan command when my TV powered on via Harmony Hub.
So i installed the following Addons:
https://www.home-assistant.io/components/remote.harmony/
https://www.home-assistant.io/components/switch.wake_on_lan/

I now have a living room trigger and a wake on lan trigger on my home-assistant, when I turn on the TV via Harmony the trigger will turn on but I dont know how to trigger the wake on lan.
Also I just see one “Living Room” but my Harmony hub has different “scenes” how can I display all the activities so the HTPC will only wake up when I turn on my Living Room TV not when I turn on my bedroom TV?

I tried the following automation from the Harmony wiki page but I didn’t work :frowning:

automation:

  • alias: “Watch TV started from harmony hub”
    trigger:
    platform: state
    entity_id: remote.livingroom
    condition:
    condition: template
    value_template: ‘{{ trigger.to_state.attributes.current_activity == “Tv” }}’
    action:
    service: service.homeassistant.turn_on
    entity_id: switch.wake_on_lan

Can someone please help me set things up?
Thanks

Hi there,

here is my solution to wake up my Living room PC using WOL, triggered by Harmony.

I created a switch in the config file for WOL, you need to know the MAC of the PC.

switch:
  - platform: wake_on_lan
    mac: xx:xx:xx:xx:xx:xx

Then I created automation (created in the UI, but I will paste the yaml):

alias: WOL LV PC
description: ''
trigger:
  - platform: state
    entity_id: remote.living_room
    attribute: activity_starting
    to: Watch PC
condition: []
action:
  - service: switch.turn_on
    data: {}
    entity_id: switch.wake_on_lan
mode: single

hope it helps

1 Like

Made my day! Thanks a lot for your help! :+1: