27.11.2015, 13:43
First, you have to create one object with 4-byte unsigned integer data type and another with 1-byte scaled. 4-byte object should be mapped to KNX > EnOcean object with 4-byte RAW profile. Previous script should be mapped to 1-byte object and resulting grp.update (replace grp.write with it) should update 4-byte object with new value.
Use this code to send learn telegram to 4-byte object.
Use this code to send learn telegram to 4-byte object.
Code:
b3 = 0xE0
b2 = 0x47
b1 = 0xFF
b0 = 0x00
a3 = bit.lshift(b3, 24)
a2 = bit.lshift(b2, 16)
a1 = bit.lshift(b1, 8)
res = bit.bor(a3,a2,a1,b0)
grp.update('1/1/5', res, dt.uint32)