Wake on Lan - Entity won't be provided anymore

Hello Community,
i’ve currently configurated two Wake on LAN switches in the configuration.yml

# Wake on LAN - PC
switch:
  - platform: wake_on_lan
    mac: 40-16-7E-XX-XX-XX
    host: 192.168.177.41
    name: "PC-WoL"

# Wake on LAN - NAS    
switch:
  - platform: wake_on_lan
    mac: 00-11-32-XX-XX-XX
    host: 192.168.177.100
    name: "NAS-WoL"

When i’m restarting HA after the configuration change, the first WoL-Button will be greyed out in my dashboard. When i’m clicking on the “PC-WoL”-button, i’m getting the information, that the entity won’t be provided aynmore.

grafik

Do you know why this is happening? The buttons are working without issues, when only one button is “activated” in the yml file.

You only need to set switch once:

# Wake on LAN - PC
switch:
  - platform: wake_on_lan
    mac: 40-16-7E-XX-XX-XX
    host: 192.168.177.41
    name: "PC-WoL"

# Wake on LAN - NAS    
  - platform: wake_on_lan
    mac: 00-11-32-XX-XX-XX
    host: 192.168.177.100
    name: "NAS-WoL"
1 Like

Thanks for the quick response. Its working now :+1:

1 Like

I did it… but now home assistant tells me that it is no longer supported. It is true? is there an alternative?

What’s the error you’re seeing and what exactly did you configure? I’m not seeing anything about it no longer being supported.

It gives me this error: “questa entità non viene più fornita dall’integrazione wake_on_lan se l’entità non è più utilizzata, eliminala nelle impostazioni”
which in English should more or less sound like:
“this entity is no longer provided by the wake_on_lan integration if the entity is no longer used, delete it in settings”
if I launch the wake online manually from:

  • developer options
  • services
    works