Template ability for payload of tcp platform

It would be great to add a possibility to use template in payload key for the standard platform: tcp. It could give the ability to run different queries or to use different valuable options in payload with just one tcp sensor.

Agreed. That would be a good innovation.

Goog idea. +1

It would be perfect for many purposes. Pretty lot of devices simply listens for some info (temp, hum, state, status). Without any response.
So TCP sensor is perfect way to send them data - no need to use command_line or shell_command, no automations…