26.11.2015, 07:13
Try this with RAW 4-byte profile (first, not the split one), though I'm not sure about contents of byte 0, try setting it to 0x0A if it does not work.
Code:
-- dimming
b3 = 0x02
-- dimmer value [0..100]
b2 = event.getvalue()
-- ramp time in seconds
b1 = 1
-- data telegram, absolute value, store final
b0 = 0x0A
res = bit.bor(
bit.lshift(b3, 24),
bit.lshift(b2, 16),
bit.lshift(b1, 8),
b0
)
grp.write('1/1/1', res, dt.uint32)