How to transform a Vima By Me group data point to KNX

This piece of code han been kindly sent to me by a friend, I don’t know it’s original source. It’s few lines of python you can execute in an online python interpreter:

text = format(0x1133,'016b')
output = [str(int(text[:5],2)), str(int(text[5:8],2)), str(int(text[8:],2))]
print(output[0] + "/" + output[1] + "/" + output[2])

The bold number in the code (0x1133) is the value to be converted.

Leave a Reply