Trying to call a shell command from a button

I’ve got a little PiZero with some LEDs on it and i’m wondering if/how can i call this script from a button

# configuration.yaml

shell_command:
  test: ssh [email protected] python3 /home/j/py/scripts/light_are_on.py


# Button on overview (home)

name: light on
show_icon: true
show_name: true
tap_action:
  action: call-service
  service: shell_command.test
type: button

When i click the button I get this error

Error running command: ssh [email protected] python3 /home/j/py/scripts/light_are_on.py, return code: 255
NoneType: None
I’ve got terminal installed and can call it perfectly fine from terminal any suggesstions ?