NodeRedEPEverDashboard
NodeRedEPEverDashboard copied to clipboard
Temperatures below zero
Hi Adam, many thanks for your code which I use with a Tracer 2210AN.
In my cabin, the temperature can fall below zero C in winter. I found the Tracer encodes negative values in 2's complement. To display temperatures correctly, I replaced the /100 Range nodes after Tbatt and Tcase with Function nodes, with the following code:
var t = msg.payload;
if (t >> 15) {
t -= 1 << 16;
}
msg.payload = t/100;
return msg;
Thanks for the suggestion. I'll add this to my flow now and try it out.
Thanks for this, I just applied it to my 2210AN installation and it works perfectly.