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.

LM5 DW1 4bit with KNX Sensor
#1
Hello everyone

I would like to dim the light using a KNX button (4-bit datapoint).
In the dali tab, i can link this object for the lamp, the dimming works well for one lamp, but as soon as more than 5 lamps with the same data type are controlled, the lamps dim differently and with a delay.

does anyone know a script to control the dali group with 4bit datapoint?
like that:

daligroup=0
if (grp.getvalue('10/0/3') > 1) then
require('user.dali')
dalicmd('internal', 'arc', { addrtype = 'group', address = daligroup, value = (grp.getvalue('10/0/3')*2.54) })
  else
  require('user.dali')
dalicmd('internal', 'arc', { addrtype = 'group', address = daligroup, value = 0 })
end


thx

used firmware: LM5 Lite+Ext (i.MX6)
produkt: LM5 DW1
Reply
#2
There is probably better way but you could convert this script. It was created for short address and to be dimmed bu visu button 4 bit object.
https://forum.logicmachine.net/showthrea...61#pid8061
------------------------------
Ctrl+F5
Reply
#3
thank you very much, but this is the wrong way...

I was able to dim with the following script, the problem is that I have to press it every time.
as soon as I press it, it must be sent cyclically, as long as I press the button, it is dimmed (that is normal)

daligroup=0
if (grp.getvalue('10/0/52') == 9) then
require('user.dali')
dalicmd('internal', 'up', { addrtype = 'group', address = daligroup })
dalicmd('internal2', 'up', { addrtype = 'group', address = daligroup })

elseif (grp.getvalue('10/0/52') == 1) then
require('user.dali')
dalicmd('internal', 'down', { addrtype = 'group', address = daligroup })
dalicmd('internal2', 'down', { addrtype = 'group', address = daligroup })

end

big thx
Reply
#4
This is why the script I sent you use while loop.
------------------------------
Ctrl+F5
Reply
#5
Do as Daniel suggested and use 0.2 seconds sleep time between up/down calls
Reply
#6
(10.11.2021, 11:39)Daniel Wrote: There is probably  better way but you could convert this script. It was created for short address and to be dimmed bu visu button 4 bit object.
https://forum.logicmachine.net/showthrea...61#pid8061

Hello Daniel
Thank you very much, it worked perfectly
the script controls my dali group with few adjustments
Reply


Forum Jump: