You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The new ZMNKIDx OnOff Thermostat 2 report of 3 digit
so there is report of THERMOSTAT_SETPOINT_REPORT wrong number of bytes received
my sugested update ligne 1614
my $length1 = length($3);
my $sp = hex($3);
my $msb = (hex($3)>>4*$length1-1); # most significant bit ( 0 = pos, 1 = neg )
Hello,
The new ZMNKIDx OnOff Thermostat 2 report of 3 digit
so there is report of THERMOSTAT_SETPOINT_REPORT wrong number of bytes received
my sugested update ligne 1614
my $length1 = length($3);
my $sp = hex($3);
my $msb = (hex($3)>>4*$length1-1); # most significant bit ( 0 = pos, 1 = neg )
if ($length1 == $size2) {
$sp -= (2 ** ($size8)) if $sp >= (2 ** ($size*8-1));
$sp = $sp / (10 ** $prec);
} elsif ($length1 == $size*3){
$sp = $msb ? -(256 - ((hex($3) & 0x00ff00)>>8)) : (hex($3)>>8); # 2's complement
$sp = $sp / 10 ;
} else {
Log3 $name, 1, "$name: THERMOSTAT_SETPOINT_REPORT "
."wrong number of bytes received";
return;
}
The text was updated successfully, but these errors were encountered: