Shell command in automation

Hi,

I want to execute 3 curl commands (maybe It is possible to do something else.

In my configuration.yaml,I merge :

shell_command:
  sendon: curl http://192.168.1.145/sendon
  sendoff: curl http://192.168.1.145/sendoff
  puissance: curl http://192.168.1.145/?POWER=60

In my automation, I select Other–>call service

I write in it : shell_command.sendon

I save, homeassistant says : Error in describing action: undefined has no properties

What am I doing wrong ?

Thank you very much.

RESTART was the trick !!

Did you restart home assistant after creating your shell commands?

It is also wise to quote your commands:

shell_command:
  sendon: 'curl http://192.168.1.145/sendon'
  sendoff: 'curl http://192.168.1.145/sendoff'
  puissance: 'curl http://192.168.1.145/?POWER=60'

Also note that this exists: