Ssh to remote system: "failed to call service binary_sensor/turn_on. service not found"

I’m trying to run a remote command which works fine from CLI (created key and copied it)

This is my code:

binary_sensor:  
  - platform: command_line
    name: ZoneMinder Night
    command: "ssh [email protected] 'zmpkg.pl night'"
    device_class: connectivity
    payload_on: "ON"
    payload_off: "OFF"

Keep getting:

failed to call service binary_sensor/turn_on. service not found

Have searched a lot but seems to be no topic with this error…
Thanks for any help!