DaviPtrs / hass-unified-remote

This is an Home Assistant integration that allows you control your computer by using Unified Remote
MIT License
74 stars 6 forks source link

Any clue how to add Wake on LAN? #20

Closed saschabrockel closed 1 year ago

saschabrockel commented 1 year ago

Hey there. Thanks for your great work. Finally, I found an alternative to using Tasker with Unified Remote. So I don't need an Android phone for that.

Now I'm wondering why you haven't included Wake on LAN in the remote defaults of power. I've added "@wol" as control in the remotes.yamlnow but it does not work. Not sure if it is a problem but Home Assistant won't let me just write @wol for a service_data action. I have to put it in quotation marks.

image But it seems to be @wol or am I wrong?

Wol commented 1 year ago

You rang? 😂

saschabrockel commented 1 year ago

@Wol lol sorry hahahaha

DaviPtrs commented 1 year ago

hey @saschabrockel,

well, actually you can't do that. The integration requires you computer being turned on, because it works by connecting to the Unified Remote client on the target computer, so if the computer is off, it won't be able to call any remotes. To use Wake on Lan, you can use the built in wol on home assistant: https://www.home-assistant.io/integrations/wake_on_lan/