Customization wake on lan switch

hi,

is possible to customize the turn_on command for a wake on lan switch? As I do with the turn_off.

 - platform: wake_on_lan
   name: desktop
   mac: '****************************'
   host: '192.168.1.102'
   turn_off:
     - service: shell_command.turn_off_desktop
     - service: switch.turn_off
       data:
         entity_id: switch.monitor, switch.diffusori, switch.dac_amp

I want to add the action for turn on the monitor and speaker when i turn on the pc with hassio.

No there is no support directly in the switch for that. It just sends the magic packet as the turn on action.

You could automate this.

State trigger, WOL switch turning on.

Actions, turn on your other devices.

yes, i have just tried in this mode. The problem is that the monitor must be turned on at the same time of the computer. With lag on power on monitor the vga doesn’t give output

How about switching on the monitor and automating the WOL switch then?

yeah, if there isn’t a clean way …