EPSON projector via the serial port

I installed the pypjlink as described and just use this config:

switch:
  - platform: command_line
    switches:
      projector_status_command_line:
        command_on: '/srv/homeassistant/bin/pjlink -p PROJECTOR_IP power on'
        command_off: '/srv/homeassistant/bin/pjlink -p PROJECTOR_IP power off'
        command_state: '/srv/homeassistant/bin/pjlink -p PROJECTOR_IP power'
        value_template: '{{ value == "on" }}'
        friendly_name: Prosjektor