This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Can not change parameter visparams when using grp.create
#1
.lua   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.
Reply


Messages In This Thread
Can not change parameter visparams when using grp.create - by Fish56 - 12.07.2022, 15:21

Forum Jump: