Re: Luxtronic Heatpump controller
Posted: Friday 02 June 2017 21:56
Is this the only error you are getting.
Comment that part out and try the rest.
Comment that part out and try the rest.
Open source Home Automation System
https://forum.domoticz.com/
All lines are giving the same error. How can I deduct what value is for what field? I have a Alpha Innotec WSZ heatpump.Aandegrens wrote:Is this the only error you are getting.
Comment that part out and try the rest.
Code: Select all
stat = struct.unpack( '!i', s.recv(4))[0]
len = struct.unpack( '!i', s.recv(4))[0]
array_calculated = []
for i in range(len):
array_calculated.append(struct.unpack( '!i', s.recv(4))[0])
Yes python 3.4.2, anyone else? It seems that index of the array is invalid somehow.Aandegrens wrote:I can't help you any further because i'm not a Python specialist.
Are you using Python 3.4.2?
It looks like the following part doesn't works correctly:
I've got it working with trail and error.Code: Select all
stat = struct.unpack( '!i', s.recv(4))[0] len = struct.unpack( '!i', s.recv(4))[0] array_calculated = [] for i in range(len): array_calculated.append(struct.unpack( '!i', s.recv(4))[0])
At least you can get de data from the heatpump and that's the first step.
I checked the values by comparing them directly with the values shown on the display of the heatpump.
Code: Select all
#!/usr/bin/python3.4
import socket
import struct
import datetime
import http.client
# Luxtronik 2.0 IP
hostHeatpump = '10.50.2.160'
# Luxtronik 2.0 port (standard 8888)
portHeatpump = 8889
# Empty variables
leng = 0
array_calculated = []
s = socket.socket( socket.AF_INET, socket.SOCK_STREAM)
s.connect( (hostHeatpump, portHeatpump))
s.send( struct.pack( '!i', 3004))
s.send( struct.pack( '!i', 0))
if struct.unpack( '!i', s.recv(4))[0] != 3004:
print("Error: REQ_CALCULATED CMD")
exit()
stat = struct.unpack( '!i', s.recv(4))[0]
leng = struct.unpack( '!i', s.recv(4))[0]
for i in range(leng):
array_calculated.append(struct.unpack( '!i', s.recv(4))[0])
print("Calculated")
print(stat)
print(leng)
print(array_calculated)
print("\n")
print("Temperatuur buiten : ", array_calculated[15] /10)
print("Temperatuur voorloop : ", (str(float(array_calculated[10])/10)))
print("Temperatuur naloop : ", (str(float(array_calculated[11])/10)))
print("Terugloop Doel : ", (str(float(array_calculated[12])/10)))
print("WQ ingangs temp : ", (str(float(array_calculated[19])/10)))
print("WA uitgang temp : ", (str(float(array_calculated[20])/10)))
print("Bedrijfstijd Verdichter 1 : ", (str(datetime.timedelta(seconds=int(array_calculated[56])))))
print("Impuls VD1 : ", (str(array_calculated[57])))
print("Bedrijfsuren WP : ", (str(datetime.timedelta(seconds=int(array_calculated[63])))))
print("Bedrijfsuren Verwarming : ", (str(datetime.timedelta(seconds=int(array_calculated[64])))))
print("Verbruik verwaming (kWh) : ", (str(float(array_calculated[151])/10)))
print("Verbruik heet water (kWh) : ", (str(float(array_calculated[152])/10)))
print("Bedrijfsuren WW groei : ", (str(datetime.timedelta(seconds=int(array_calculated[65])))))
print("Status regel 1 (code) : ", (str(array_calculated[117])))
print("Status regel 2 (code) : ", (str(array_calculated[118])))
print("Status regel 3 (code) : ", (str(array_calculated[119])))
print("Status sinds : ", (str(datetime.timedelta(seconds=int(array_calculated[120])))))
print("WMZ doorloop l/h : ", (str(float(array_calculated[155]))))
#Haven't got this below running yet.
#conn = httplib.HTTPConnection("192.168.1.5:8080")
#conn.request("HEAD","/json.htm?type=command¶m=udevice&idx=191&svalue=" + (str(float(array_calculated[151])*100)))
# res = conn.getresponse()
#print res.status, res.reason
s.close()
~
Can you share your code?poostrom wrote:I didn't see any replies since the last couple of months
Anyway, I've got it working all the way. I didn't use the kWh anymore, since the values are not not electrical kWh's but heating, so there is a huge difference between these values and the actual electrical power consuming....
See the attachments for temperatures, which is working fine
Code: Select all
#!/usr/bin/python
import socket
import struct
import datetime
import httplib
#####################
# Luxtronik 2.0 IP
hostHeatpump = '192.168.200.107'
# Luxtronik 2.0 port (standard 8888)
portHeatpump = 8888
#####################
s = socket.socket( socket.AF_INET, socket.SOCK_STREAM)
s.connect( (hostHeatpump, portHeatpump))
######################################################
s.send( struct.pack( '!i', 3004))
s.send( struct.pack( '!i', 0))
if struct.unpack( '!i', s.recv(4))[0] != 3004:
print 'Error: REQ_CALCULATED CMD'
exit()
stat = struct.unpack( '!i', s.recv(4))[0]
len = struct.unpack( '!i', s.recv(4))[0]
array_calculated = []
for i in xrange(len):
array_calculated.append(struct.unpack( '!i', s.recv(4))[0])
s.close ()
# Temp buiten
conn = httplib.HTTPConnection("192.168.200.15:8080")
conn.request("HEAD","/json.htm?type=command¶m=udevice&idx=924&nvalue=0&svalue=" + (str(float(array_calculated[15])/10)))
# Temp aanvoer
conn = httplib.HTTPConnection("192.168.200.15:8080")
conn.request("HEAD","/json.htm?type=command¶m=udevice&idx=188&nvalue=0&svalue=" + (str(float(array_calculated[10])/10)))
# Temp retour
conn = httplib.HTTPConnection("192.168.200.15:8080")
conn.request("HEAD","/json.htm?type=command¶m=udevice&idx=189&nvalue=0&svalue=" + (str(float(array_calculated[11])/10)))
# Bron in
conn = httplib.HTTPConnection("192.168.200.15:8080")
conn.request("HEAD","/json.htm?type=command¶m=udevice&idx=190&nvalue=0&svalue=" + (str(float(array_calculated[19])/10)))
#Bron uit
conn = httplib.HTTPConnection("192.168.200.15:8080")
conn.request("HEAD","/json.htm?type=command¶m=udevice&idx=191&nvalue=0&svalue=" + (str(float(array_calculated[20])/10)))
#Heet water temperatuur
conn = httplib.HTTPConnection("192.168.200.15:8080")
conn.request("HEAD","/json.htm?type=command¶m=udevice&idx=200&nvalue=0&svalue=" + (str(float(array_calculated[17])/10)))
#Heet gas compressor temperatuur
conn = httplib.HTTPConnection("192.168.200.15:8080")
conn.request("HEAD","/json.htm?type=command¶m=udevice&idx=229&nvalue=0&svalue=" + (str(float(array_calculated[14])/10)))
# Lees huidige functie warmtepomp
if array_calculated[119] == 1: array_calculated[119] = '0'
if array_calculated[119] == 0: array_calculated[119] = '10'
if array_calculated[119] == 5: array_calculated[119] = '20'
if array_calculated[119] == 10: array_calculated[119] = '30'
if array_calculated[119] == 15: array_calculated[119] = '30'
conn = httplib.HTTPConnection("192.168.200.15:8080")
conn.request("HEAD","/json.htm?type=command¶m=updateuservariable&idx=5&vname=warmtepomp_functie&vtype=uservariabletype&vvalue=" + (str(array_calculated[119])))
Hi, could you help to get this working in Domoticz? What should I do with this code? Snap er de ballen van..poostrom wrote: ↑Monday 12 June 2017 16:09 Sure
Code: Select all
#!/usr/bin/python import socket import struct import datetime import httplib ##################### # Luxtronik 2.0 IP hostHeatpump = '192.168.200.107' # Luxtronik 2.0 port (standard 8888) portHeatpump = 8888 ##################### s = socket.socket( socket.AF_INET, socket.SOCK_STREAM) s.connect( (hostHeatpump, portHeatpump)) ###################################################### s.send( struct.pack( '!i', 3004)) s.send( struct.pack( '!i', 0)) if struct.unpack( '!i', s.recv(4))[0] != 3004: print 'Error: REQ_CALCULATED CMD' exit() stat = struct.unpack( '!i', s.recv(4))[0] len = struct.unpack( '!i', s.recv(4))[0] array_calculated = [] for i in xrange(len): array_calculated.append(struct.unpack( '!i', s.recv(4))[0]) s.close () # Temp buiten conn = httplib.HTTPConnection("192.168.200.15:8080") conn.request("HEAD","/json.htm?type=command¶m=udevice&idx=924&nvalue=0&svalue=" + (str(float(array_calculated[15])/10))) # Temp aanvoer conn = httplib.HTTPConnection("192.168.200.15:8080") conn.request("HEAD","/json.htm?type=command¶m=udevice&idx=188&nvalue=0&svalue=" + (str(float(array_calculated[10])/10))) # Temp retour conn = httplib.HTTPConnection("192.168.200.15:8080") conn.request("HEAD","/json.htm?type=command¶m=udevice&idx=189&nvalue=0&svalue=" + (str(float(array_calculated[11])/10))) # Bron in conn = httplib.HTTPConnection("192.168.200.15:8080") conn.request("HEAD","/json.htm?type=command¶m=udevice&idx=190&nvalue=0&svalue=" + (str(float(array_calculated[19])/10))) #Bron uit conn = httplib.HTTPConnection("192.168.200.15:8080") conn.request("HEAD","/json.htm?type=command¶m=udevice&idx=191&nvalue=0&svalue=" + (str(float(array_calculated[20])/10))) #Heet water temperatuur conn = httplib.HTTPConnection("192.168.200.15:8080") conn.request("HEAD","/json.htm?type=command¶m=udevice&idx=200&nvalue=0&svalue=" + (str(float(array_calculated[17])/10))) #Heet gas compressor temperatuur conn = httplib.HTTPConnection("192.168.200.15:8080") conn.request("HEAD","/json.htm?type=command¶m=udevice&idx=229&nvalue=0&svalue=" + (str(float(array_calculated[14])/10))) # Lees huidige functie warmtepomp if array_calculated[119] == 1: array_calculated[119] = '0' if array_calculated[119] == 0: array_calculated[119] = '10' if array_calculated[119] == 5: array_calculated[119] = '20' if array_calculated[119] == 10: array_calculated[119] = '30' if array_calculated[119] == 15: array_calculated[119] = '30' conn = httplib.HTTPConnection("192.168.200.15:8080") conn.request("HEAD","/json.htm?type=command¶m=updateuservariable&idx=5&vname=warmtepomp_functie&vtype=uservariabletype&vvalue=" + (str(array_calculated[119])))
The script doesn't get the output that you earlier showed on the picture. I cant find the kWh in the script could you explain? Sorry my bad didn't read your text from the picture messagepoostrom wrote: ↑Monday 12 June 2017 16:09 Sure
Code: Select all
#!/usr/bin/python import socket import struct import datetime import httplib ##################### # Luxtronik 2.0 IP hostHeatpump = '192.168.200.107' # Luxtronik 2.0 port (standard 8888) portHeatpump = 8888 ##################### s = socket.socket( socket.AF_INET, socket.SOCK_STREAM) s.connect( (hostHeatpump, portHeatpump)) ###################################################### s.send( struct.pack( '!i', 3004)) s.send( struct.pack( '!i', 0)) if struct.unpack( '!i', s.recv(4))[0] != 3004: print 'Error: REQ_CALCULATED CMD' exit() stat = struct.unpack( '!i', s.recv(4))[0] len = struct.unpack( '!i', s.recv(4))[0] array_calculated = [] for i in xrange(len): array_calculated.append(struct.unpack( '!i', s.recv(4))[0]) s.close () # Temp buiten conn = httplib.HTTPConnection("192.168.200.15:8080") conn.request("HEAD","/json.htm?type=command¶m=udevice&idx=924&nvalue=0&svalue=" + (str(float(array_calculated[15])/10))) # Temp aanvoer conn = httplib.HTTPConnection("192.168.200.15:8080") conn.request("HEAD","/json.htm?type=command¶m=udevice&idx=188&nvalue=0&svalue=" + (str(float(array_calculated[10])/10))) # Temp retour conn = httplib.HTTPConnection("192.168.200.15:8080") conn.request("HEAD","/json.htm?type=command¶m=udevice&idx=189&nvalue=0&svalue=" + (str(float(array_calculated[11])/10))) # Bron in conn = httplib.HTTPConnection("192.168.200.15:8080") conn.request("HEAD","/json.htm?type=command¶m=udevice&idx=190&nvalue=0&svalue=" + (str(float(array_calculated[19])/10))) #Bron uit conn = httplib.HTTPConnection("192.168.200.15:8080") conn.request("HEAD","/json.htm?type=command¶m=udevice&idx=191&nvalue=0&svalue=" + (str(float(array_calculated[20])/10))) #Heet water temperatuur conn = httplib.HTTPConnection("192.168.200.15:8080") conn.request("HEAD","/json.htm?type=command¶m=udevice&idx=200&nvalue=0&svalue=" + (str(float(array_calculated[17])/10))) #Heet gas compressor temperatuur conn = httplib.HTTPConnection("192.168.200.15:8080") conn.request("HEAD","/json.htm?type=command¶m=udevice&idx=229&nvalue=0&svalue=" + (str(float(array_calculated[14])/10))) # Lees huidige functie warmtepomp if array_calculated[119] == 1: array_calculated[119] = '0' if array_calculated[119] == 0: array_calculated[119] = '10' if array_calculated[119] == 5: array_calculated[119] = '20' if array_calculated[119] == 10: array_calculated[119] = '30' if array_calculated[119] == 15: array_calculated[119] = '30' conn = httplib.HTTPConnection("192.168.200.15:8080") conn.request("HEAD","/json.htm?type=command¶m=updateuservariable&idx=5&vname=warmtepomp_functie&vtype=uservariabletype&vvalue=" + (str(array_calculated[119])))
In hardware you can add a dummy and than add virtual sensors. If you did this you can see the virtual sensor in devices.Wiljums wrote: ↑Friday 09 March 2018 21:08Hi, could you help to get this working in Domoticz? What should I do with this code? Snap er de ballen van..poostrom wrote: ↑Monday 12 June 2017 16:09 Sure
Code: Select all
#!/usr/bin/python import socket import struct import datetime import httplib ##################### # Luxtronik 2.0 IP hostHeatpump = '192.168.200.107' # Luxtronik 2.0 port (standard 8888) portHeatpump = 8888 ##################### s = socket.socket( socket.AF_INET, socket.SOCK_STREAM) s.connect( (hostHeatpump, portHeatpump)) ###################################################### s.send( struct.pack( '!i', 3004)) s.send( struct.pack( '!i', 0)) if struct.unpack( '!i', s.recv(4))[0] != 3004: print 'Error: REQ_CALCULATED CMD' exit() stat = struct.unpack( '!i', s.recv(4))[0] len = struct.unpack( '!i', s.recv(4))[0] array_calculated = [] for i in xrange(len): array_calculated.append(struct.unpack( '!i', s.recv(4))[0]) s.close () # Temp buiten conn = httplib.HTTPConnection("192.168.200.15:8080") conn.request("HEAD","/json.htm?type=command¶m=udevice&idx=924&nvalue=0&svalue=" + (str(float(array_calculated[15])/10))) # Temp aanvoer conn = httplib.HTTPConnection("192.168.200.15:8080") conn.request("HEAD","/json.htm?type=command¶m=udevice&idx=188&nvalue=0&svalue=" + (str(float(array_calculated[10])/10))) # Temp retour conn = httplib.HTTPConnection("192.168.200.15:8080") conn.request("HEAD","/json.htm?type=command¶m=udevice&idx=189&nvalue=0&svalue=" + (str(float(array_calculated[11])/10))) # Bron in conn = httplib.HTTPConnection("192.168.200.15:8080") conn.request("HEAD","/json.htm?type=command¶m=udevice&idx=190&nvalue=0&svalue=" + (str(float(array_calculated[19])/10))) #Bron uit conn = httplib.HTTPConnection("192.168.200.15:8080") conn.request("HEAD","/json.htm?type=command¶m=udevice&idx=191&nvalue=0&svalue=" + (str(float(array_calculated[20])/10))) #Heet water temperatuur conn = httplib.HTTPConnection("192.168.200.15:8080") conn.request("HEAD","/json.htm?type=command¶m=udevice&idx=200&nvalue=0&svalue=" + (str(float(array_calculated[17])/10))) #Heet gas compressor temperatuur conn = httplib.HTTPConnection("192.168.200.15:8080") conn.request("HEAD","/json.htm?type=command¶m=udevice&idx=229&nvalue=0&svalue=" + (str(float(array_calculated[14])/10))) # Lees huidige functie warmtepomp if array_calculated[119] == 1: array_calculated[119] = '0' if array_calculated[119] == 0: array_calculated[119] = '10' if array_calculated[119] == 5: array_calculated[119] = '20' if array_calculated[119] == 10: array_calculated[119] = '30' if array_calculated[119] == 15: array_calculated[119] = '30' conn = httplib.HTTPConnection("192.168.200.15:8080") conn.request("HEAD","/json.htm?type=command¶m=updateuservariable&idx=5&vname=warmtepomp_functie&vtype=uservariabletype&vvalue=" + (str(array_calculated[119])))
You placed the star at the wrong position. array_calculated[*] is the place in the array being read from the luxtronik. You should leave that. You should change the udevice&idx=924 to the right device in Domoticz. So 924 should be changed to whatever ID is being used in your own virtual sensorRonker wrote: ↑Saturday 10 March 2018 7:35In hardware you can add a dummy and than add virtual sensors. If you did this you can see the virtual sensor in devices.Wiljums wrote: ↑Friday 09 March 2018 21:08Hi, could you help to get this working in Domoticz? What should I do with this code? Snap er de ballen van..poostrom wrote: ↑Monday 12 June 2017 16:09 Sure
Code: Select all
#!/usr/bin/python import socket import struct import datetime import httplib ##################### # Luxtronik 2.0 IP hostHeatpump = '192.168.200.107' # Luxtronik 2.0 port (standard 8888) portHeatpump = 8888 ##################### s = socket.socket( socket.AF_INET, socket.SOCK_STREAM) s.connect( (hostHeatpump, portHeatpump)) ###################################################### s.send( struct.pack( '!i', 3004)) s.send( struct.pack( '!i', 0)) if struct.unpack( '!i', s.recv(4))[0] != 3004: print 'Error: REQ_CALCULATED CMD' exit() stat = struct.unpack( '!i', s.recv(4))[0] len = struct.unpack( '!i', s.recv(4))[0] array_calculated = [] for i in xrange(len): array_calculated.append(struct.unpack( '!i', s.recv(4))[0]) s.close () # Temp buiten conn = httplib.HTTPConnection("192.168.200.15:8080") conn.request("HEAD","/json.htm?type=command¶m=udevice&idx=924&nvalue=0&svalue=" + (str(float(array_calculated[15])/10))) # Temp aanvoer conn = httplib.HTTPConnection("192.168.200.15:8080") conn.request("HEAD","/json.htm?type=command¶m=udevice&idx=188&nvalue=0&svalue=" + (str(float(array_calculated[10])/10))) # Temp retour conn = httplib.HTTPConnection("192.168.200.15:8080") conn.request("HEAD","/json.htm?type=command¶m=udevice&idx=189&nvalue=0&svalue=" + (str(float(array_calculated[11])/10))) # Bron in conn = httplib.HTTPConnection("192.168.200.15:8080") conn.request("HEAD","/json.htm?type=command¶m=udevice&idx=190&nvalue=0&svalue=" + (str(float(array_calculated[19])/10))) #Bron uit conn = httplib.HTTPConnection("192.168.200.15:8080") conn.request("HEAD","/json.htm?type=command¶m=udevice&idx=191&nvalue=0&svalue=" + (str(float(array_calculated[20])/10))) #Heet water temperatuur conn = httplib.HTTPConnection("192.168.200.15:8080") conn.request("HEAD","/json.htm?type=command¶m=udevice&idx=200&nvalue=0&svalue=" + (str(float(array_calculated[17])/10))) #Heet gas compressor temperatuur conn = httplib.HTTPConnection("192.168.200.15:8080") conn.request("HEAD","/json.htm?type=command¶m=udevice&idx=229&nvalue=0&svalue=" + (str(float(array_calculated[14])/10))) # Lees huidige functie warmtepomp if array_calculated[119] == 1: array_calculated[119] = '0' if array_calculated[119] == 0: array_calculated[119] = '10' if array_calculated[119] == 5: array_calculated[119] = '20' if array_calculated[119] == 10: array_calculated[119] = '30' if array_calculated[119] == 15: array_calculated[119] = '30' conn = httplib.HTTPConnection("192.168.200.15:8080") conn.request("HEAD","/json.htm?type=command¶m=updateuservariable&idx=5&vname=warmtepomp_functie&vtype=uservariabletype&vvalue=" + (str(array_calculated[119])))
Every virtual sensor gets an IDX copy this and place it where I put the star *
# Temp buiten
conn = httplib.HTTPConnection("192.168.200.15:8080")
conn.request("HEAD","/json.htm?type=command¶m=udevice&idx=924&nvalue=0&svalue=" + (str(float(array_calculated[*])/10)))
To get output from the script you can create a cron job that is running every minute.
You can send me a pm if you want.
Have you got it working?poostrom wrote: ↑Thursday 29 March 2018 11:11 Hi,
Interesting
My script (carefully stolen) only reads stuff. It actually reads everything from the Luxtronik, but I use just the things I want to...
The interesting about this script is that it can actually send commands to the Luxtronik. So in theory you should be able to change values through Domoticz...
See if I can make it work
Regards,
Patrick
poostrom wrote: ↑Monday 12 June 2017 16:09 Sure
Code: Select all
#!/usr/bin/python import socket import struct import datetime import httplib ##################### # Luxtronik 2.0 IP hostHeatpump = '192.168.200.107' # Luxtronik 2.0 port (standard 8888) portHeatpump = 8888 ##################### s = socket.socket( socket.AF_INET, socket.SOCK_STREAM) s.connect( (hostHeatpump, portHeatpump)) ###################################################### s.send( struct.pack( '!i', 3004)) s.send( struct.pack( '!i', 0)) if struct.unpack( '!i', s.recv(4))[0] != 3004: print 'Error: REQ_CALCULATED CMD' exit() stat = struct.unpack( '!i', s.recv(4))[0] len = struct.unpack( '!i', s.recv(4))[0] array_calculated = [] for i in xrange(len): array_calculated.append(struct.unpack( '!i', s.recv(4))[0]) s.close () # Temp buiten conn = httplib.HTTPConnection("192.168.200.15:8080") conn.request("HEAD","/json.htm?type=command¶m=udevice&idx=924&nvalue=0&svalue=" + (str(float(array_calculated[15])/10))) # Temp aanvoer conn = httplib.HTTPConnection("192.168.200.15:8080") conn.request("HEAD","/json.htm?type=command¶m=udevice&idx=188&nvalue=0&svalue=" + (str(float(array_calculated[10])/10))) # Temp retour conn = httplib.HTTPConnection("192.168.200.15:8080") conn.request("HEAD","/json.htm?type=command¶m=udevice&idx=189&nvalue=0&svalue=" + (str(float(array_calculated[11])/10))) # Bron in conn = httplib.HTTPConnection("192.168.200.15:8080") conn.request("HEAD","/json.htm?type=command¶m=udevice&idx=190&nvalue=0&svalue=" + (str(float(array_calculated[19])/10))) #Bron uit conn = httplib.HTTPConnection("192.168.200.15:8080") conn.request("HEAD","/json.htm?type=command¶m=udevice&idx=191&nvalue=0&svalue=" + (str(float(array_calculated[20])/10))) #Heet water temperatuur conn = httplib.HTTPConnection("192.168.200.15:8080") conn.request("HEAD","/json.htm?type=command¶m=udevice&idx=200&nvalue=0&svalue=" + (str(float(array_calculated[17])/10))) #Heet gas compressor temperatuur conn = httplib.HTTPConnection("192.168.200.15:8080") conn.request("HEAD","/json.htm?type=command¶m=udevice&idx=229&nvalue=0&svalue=" + (str(float(array_calculated[14])/10))) # Lees huidige functie warmtepomp if array_calculated[119] == 1: array_calculated[119] = '0' if array_calculated[119] == 0: array_calculated[119] = '10' if array_calculated[119] == 5: array_calculated[119] = '20' if array_calculated[119] == 10: array_calculated[119] = '30' if array_calculated[119] == 15: array_calculated[119] = '30' conn = httplib.HTTPConnection("192.168.200.15:8080") conn.request("HEAD","/json.htm?type=command¶m=updateuservariable&idx=5&vname=warmtepomp_functie&vtype=uservariabletype&vvalue=" + (str(array_calculated[119])))