12.07.2022, 15:21
51.lua (Size: 2.74 KB / Downloads: 2)
Hello,
I have a homeLynk HW 1.2 , Firmware 1.5.1 in operation for 7 years and now I have implemented scripts to read data from a Kostal inverte Plenticore plus.
Had succes to read all 125 data point by Modbus TCP. I have generated all KNX Objekts by scripts and it works while using the essetial KNX object parameter with
grp.create.
myobject = grp.create({
datatype = dt.float32,
address = Gruppenaddresse,
name = "Test float32 und visparams",
units = " W",
tags = "Plenticore",
visparams=grp_visparams
})
But I am failing to change the visualisation parameter with the table of visparams.
After creating the object I read its parameter with
log("Grp lesen",grp.find(Gruppenaddresse))
but do not see the table visparams in the log
Changing the visu parameter manually and do a
log("Grp lesen",grp.find(Gruppenaddresse))
Now I have suuccess I got the string of visparams as json.
I have attached the script 51.lua with the lua code that is showing the described behaviour.
Need some information if it possible to change visparams by script using my HW/SW combination.