Shell_command problem

Hello

I’m getting problems with the shell_command it does nothing.

When the switch was in configuration.yaml it worked.
I create switchs.yaml and put the switchs inside.

I put the shell_comand in the configuration.yaml

Here my code:
switchs.yaml

platform: wake_on_lan
  name: "PC"
  host: "10.0.0.**"
  mac_address: "2c:bi:a1:21:5e:45"
  turn_off:
  service: shell_command.pcdesktop_off

configuration.yaml:

switch: !include switchs.yaml
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
cover: !include covers.yaml
sensor: !include sensors.yaml

shell_command:
        pcdesktop_off: 'bash /config/pcoff'

What I did wrong?

thanks

Are you obfuscating some data in your code? The host has a ** in it and the mac address has an ‘i’. Also your shell command and turn_off service spacing seems to be off.

What do the logs say about it?

AKA, even if you give us your internal IP addresses, we can’t do anything with that info, except verify your config is correct.

My router IP is 192.168.254.1. Have at it.

I just changed the MAC and the Ip to other thing

That was it, just put a space before the service and it’s done.

platform: wake_on_lan
  name: "PC"
  host: "10.0.0.**"
  mac_address: "2c:bi:a1:21:5e:45"
  turn_off:
   service: shell_command.pcdesktop_off

yaml is really annoying with this spaces and tabs… lol

Thanks