I have a simple linux/bash command line program that reads an analogue port and outputs the voltage. I would like this voltage available inside fhem. I have tried a number of combinations of the shell commands in the
FHEM Command types entry but can't get anything to work

. For example
set ADC "/opt/fhem/scripts/analog.py"
or
{ fhem `/opt/fhem/scripts/analog_with_set_cmd_output_as_well.py` }
But these just set ADC to the string "/opt/fhem/scripts/analog.py" or similar!
The only way I can make this happen is to create a bash script containing
echo set ADC `/opt/fhem/scripts/analog.py` | ncat localhost 7072
This seems quite cumbersome requiring the telnet port to be enabled/open and ncat to be installed on the system.
As this seems to be an obvious thing to want to do I am hoping that someone can provide some simple fhem examples to get me going.
Any help would be appreciated.