Hi everyone!
i've made tests with Easydim DALI-MIX-DT8 dimmer and its work
you will need to install new dali package (Admin will provide soon)
to set color temp use following script
to make light warmer use this
cooler
i've made tests with Easydim DALI-MIX-DT8 dimmer and its work
you will need to install new dali package (Admin will provide soon)
to set color temp use following script
Code:
require('user.dali')
colortemp = 7000 -- in kelvin
address = 47
mirek = math.floor(1000000 / colortemp)
dtr0 = bit.band(mirek, 0xFF)
dtr1 = bit.band(bit.rshift(mirek, 8), 0xFF)
dalicmd(1, 'setdtr1', { value = dtr1 })
dalicmd(1, 'setdtr0', { value = dtr0 })
dalicmd(1, 'enabledevicetype', { value = 8 })
dalicmd(1, 'setcolortemp', { addrtype = 'short', address = address })
dalicmd(1, 'enabledevicetype', { value = 8 })
dalicmd(1, 'activate', { addrtype = 'short', address = address })
Code:
require('user.dali')
dalicmd(1, 'enabledevicetype', { value = 8 })
dalicmd(1, 'colortempwarmer', { addrtype = 'short', address = 47 })
Code:
require('user.dali')
dalicmd(1, 'enabledevicetype', { value = 8 })
dalicmd(1, 'colortempcooler', { addrtype = 'short', address = 47 })