25.01.2019, 10:21
Now I have a new problem. I have the following in my profile:
{
"name": "Förskjutning värmekurva",
"bus_datatype": "int8",
"type": "register",
"address": 47011 ,
"datatype": "int16",
"value_multiplier": 1,
"writable": true,
"write_multiple": true,
"units": " K"
},
This works great as long as the value are positive, when the value is negative I allways get the value 127 on KNX side. Have tryed the word_swap funktion with all the alternatives without success. I think maby the wordswap is done after the conversion frpm int16 to int8 and therefore has no effect in this case...? I need to have a int8 on the KNX side beacause of the comunications object on the other KNX devices.
Any suggestions?
Best Regards!
P
{
"name": "Förskjutning värmekurva",
"bus_datatype": "int8",
"type": "register",
"address": 47011 ,
"datatype": "int16",
"value_multiplier": 1,
"writable": true,
"write_multiple": true,
"units": " K"
},
This works great as long as the value are positive, when the value is negative I allways get the value 127 on KNX side. Have tryed the word_swap funktion with all the alternatives without success. I think maby the wordswap is done after the conversion frpm int16 to int8 and therefore has no effect in this case...? I need to have a int8 on the KNX side beacause of the comunications object on the other KNX devices.
Any suggestions?
Best Regards!
P