Get status with command_line

Hello, i would like to get the status of my tv player in HA.
For this the only way to know if the player is running or not is to test the connectivty of the port 54243

To get this i can run in command bash :
echo > /dev/tcp/192.168.2.35/54243 : no response for port up, connection refuse if port down

So i tried to traduct this for HA

# status freebox
command_line:
    - binary_sensor:
        name: Freebox UP
        command:  'echo > /dev/tcp/192.168.2.35/54243 > /dev/null 2>&1 && echo "true" || echo "false"'
        device_class: connectivity
        payload_on: "true"
        payload_off: "false"

This didn’t work sensor stay always “Off”

Have you an idea for me please ? Thanks a lot