Using a variable from a helper in a shell script

I am trying to control a home audio DSP over a TCP socket.

I am able to use sunroom_volume_down: 'echo DEC 1 FDRLVL 159 1 1 | nc 10.2.10.200 23' as a shell command to increment the volume down in steps, but it takes a lot of work.

I am trying to use kitchen_volume_set: 'echo SET 1 FDRLVL 155 1 {{ states("input_number.kitchen_volume") }} | nc 10.2.10.200 23' with an automation that watches for a value change and runs the shell command. I mapped it to a slider on my Lovelace interface and it will not work.

Never mind!

I have solved the issue.

I coded a translation Node.js server that translates MQTT from HASSIO to the TCP sockets commands.

The server is up on my GitHub
GitHub