Control AV Receiver Telnet

Is there any better way of doing this. I now send Telnet commands using Switches. Where I put a command on and nothing in off. See example for Volume Up below:
lyngdorf_mp60_volumeup:
resource: x.x.x.232
port: 84
command_on: “!VOL+”
command_off: “”

This works but doesnt feel like a primitive solution. Anyway to do this in a nicer way?
Also I would like to get info back from the AV Receiver to for example display current volume. Putty or Telnet can be used with the TCP/IP commands to the AV receiver (Lyngdorf MP-60)