02.06.2020, 03:55
(This post was last modified: 02.06.2020, 06:17 by phongvucba.)
Thank so much , everyone ! Admin !
I have seen it work well! But I do not understand where it will store this information? . But there is something I do not understand, when I do this, my on / off address 11/1/1 it also works dim, I do not want that, I only need 11/1/3 dimmer address. Can it change you?
And I also want to Get the entire state of the light, and bring it up to update. I have tried but it's failed? Help me please.
--------------------------------
require('user.dali')
res, err = dalicmd('internal', 'querystatus', { addrtype = 'broadcast' })
if res then
log(res:byte())
else
log(err)
end
---------------------------
I have seen it work well! But I do not understand where it will store this information? . But there is something I do not understand, when I do this, my on / off address 11/1/1 it also works dim, I do not want that, I only need 11/1/3 dimmer address. Can it change you?
And I also want to Get the entire state of the light, and bring it up to update. I have tried but it's failed? Help me please.
--------------------------------
require('user.dali')
res, err = dalicmd('internal', 'querystatus', { addrtype = 'broadcast' })
if res then
log(res:byte())
else
log(err)
end
---------------------------