Bash scripts to send pve sensors temperature to home assistant

Hello,

i want to install the Script from here:
Bash scripts to send pve sensors temperature to home assistant
But the configuration only throws the error “Invalid JSON specified”
When i testing the Line in the Script under Putty, it is ok:

root@esmltcm:/usr/local/bin# sensors | grep ‘temp1:’ | awk ‘{print $2}’ | sed ‘s/+//;s/°C//’
27.8
root@esmltcm:/usr/local/bin# sensors | grep ‘Package id 0’ | awk ‘{print $4}’ | sed ‘s/+//;s/°C//’
25.0
root@esmltcm:/usr/local/bin# sensors | grep ‘Core 1:’ | awk ‘{print $3}’ | sed ‘s/+//;s/°C//’
22.0
root@esmltcm:/usr/local/bin# sensors | grep ‘Core 2:’ | awk ‘{print $3}’ | sed ‘s/+//;s/°C//’
25.0
root@esmltcm:/usr/local/bin# sensors | grep ‘Core 3:’ | awk ‘{print $3}’ | sed ‘s/+//;s/°C//’
25.0
root@esmltcm:/usr/local/bin# sensors | grep ‘Core 4:’ | awk ‘{print $3}’ | sed ‘s/+//;s/°C//’
24.0
But the Script output:
root@esmltcm:/usr/local/bin# tempha.sh
{“message”:“Invalid JSON specified.”}{“message”:“Invalid JSON specified.”}{“message”:“Invalid JSON specified.”}{“message”:“Invalid JSON specified.”}{“message”:“Invalid JSON specified.”}{“message”:“Invalid JSON specified.”}root@esmltcm:/usr/local/bin#

I don’t understand why I get this error
I already posted this on the Github page, but it seems that it is no longer maintained.