Multiple WOL Switches

Hi,

I’m having some trouble with using WOL switches and wondering if I am doing something wrong.

I have two devices which I have setup WOL switches for, they both turn on and I do not wish to automate shutdown at present. The problem I am having is the log indicates both devices are switched off when one goes down… or both are switched on when one is switched on…

Config looks like this (macs changed) :

switch:
- platform: wake_on_lan
  name: HTPC
  mac_address: D0-50-99-AA-AA-AA
  host: 192.168.123.153
- platform: wake_on_lan
  name: GamingPC
  mac_address: 1C-6F-65-AA-AA-AA
  host: 192.168.123.145

When I turn one of the devices on I get an event for both despite the fact one is already on, then when I turn off one of the devices I get logs saying both were turned off but again one is still turned on.

Any idea where I am going wrong? TIA!

Can someone post the code that works here?

Check my repo for examples of multiple switches.

https://github.com/SilvrrGIT/HomeAssistant/blob/master/switches.yaml

Yah I had done that, but now the entire system crashes

Should it be under

Switch:

-platform: wake…

My WOL switches are set up the same except have quotation marks around the mac address
e.g. mac_address: “D0-50-99-AA-AA-AA”

Pay attention to indentation.

Yes it all goes under switch:

Make sure the hyphen is two spaces indented from switch.

switch:
  - platform: wake_on_lan

that’s exactly what I’ve been looking for to sleep/wake my synology disk station! cool, that for this pointer!

would you have any thought on how to invoke the sleep/powerdown for a synology disktation? Cant really find in in the docs, and the helpdeks replied it doesn’t support support question on the shell…

Do a google search.

I believe there are some good guides out there. Basically ssh in with the right credentials and run the right command.

Lol. Sure, that part is easy up to logging in with the right credentials. Getting the right command is the tricky part. and, for me at least, well hidden so far…

I can confirm that this is the right syntax :

switch:
  - platform: wake_on_lan
    name: "PC-Kelder-NIC2"
    mac: XX:DE:80:XX:F2:C5
  - platform: wake_on_lan
    name: "NUC6i5_Kelder"
    mac: F4:XX:30:XX:3B:38

Best regards and thnx for the post silvrr

2 Likes