Tesira Biamp Telnet command help

I would like to control a networked audio DSP that we have installed in our facility. The system responds to it’s own text protocol commands sent via a telnet session.

The device is a TesiraFORTÉ AVB VI
https://support.biamp.com/Tesira/Control/Tesira_Text_Protocol

Using terminal I can connect to the device. It takes about 10 to 20 seconds to “log in” and then presents me with the string:

“Welcome to the Tesira Text Protocol Server”

Following this I can enter commands and see/hear results instantly in my system. For example I can send a command to turn up a fader by one increment.

Mixer3 increment inputLevel 1 1

I’ve tried setting up a switch in my configuration.yaml like so:

switch:
  - platform: telnet
    switches:
      tesira:
        resource: 10.0.0.61
        port: 23
        command_on: "Mixer3 decrement inputLevel 1 1"
        command_off: "Mixer3 increment inputLevel 1 1"
        timeout: 20

This doesn’t work at all!

I googled the issue and have read a few topics on here discussing the use of shell scripts to call the telnet commands. I tried this:

{ sleep 10; echo "Mixer3 decrement inputLevel 1 1"; sleep 2; echo "Mixer3 decrement inputLevel 1 1"; } | telnet 10.0.0.61 23

This works, but it’s painfully slow. I think each time it runs it’s waiting for that “Welcome” text to say that the session is open before it actually successfully runs the command.

Is there a way of having a Telnet session open in HASS? And then just sending the text commands as needed? Using terminal this is instantaneous.

I do have a bodge way around the problem, and that is to use the have the Bitfocus Companion server running somewhere on my network. That server has a module specifically designed for the Tesira kit and seems to work well. I can trigger Companion “buttons” via HTTP commands from Home assistant.

I’m sure you’ll agree this isn’t an elegant solution. Any help much appreciated.

1 Like

Hey dude did you ever find a better way of doing this ? Would love to set fader levels from HA

A workaround I have used is a global cache eth to rs232 connected to the tesira serial port. (An esp rs232 should work too!)