Multiple Wake On LAN MAC addresses?

I’d like to be able to send WOL magic packets to each of my computers, but it seems that the Wake On Lan component only allows for a singular MAC address in the configuration file.

Does anyone know how to solve this?

Just add another like this:

switch:
  - platform: wake_on_lan
    mac_address: "00-01-02-03-04-05"
    name: 'pc 1'
  - platform: wake_on_lan
    mac_address: "00-01-02-03-04-06"
    name: 'pc 2'

I suppose that should work?

Unfortunately it doesn’t. The switch seems to reference the mac_address in the Wake on LAN component of the config file.

Invalid service data for wake_on_lan.send_magic_packet: extra keys not allowed @ data['mac_address']. Got '78-45-C4-27-XX-XX'
required key not provided @ data['mac']. Got None

Lose the component and use only this switch.

I can’t believe it was that easy. I must have tried everything but this.

Thanks for your help.