We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b24e69 commit a8e93e1Copy full SHA for a8e93e1
lib/Max.pm
@@ -138,6 +138,8 @@ sub _process_L {
138
$temp |= !!($setpoint & 0x80) << 8;
139
$setpoint &= 0x7F;
140
141
+ $temp = $date if $temp == 0 and $date > 0 and $device->has_temperature;
142
+
143
$device->_set(
144
mode => $flags & 0x0003,
145
setpoint => $setpoint / 2,
lib/Max/Device.pm
@@ -69,7 +69,7 @@ sub flags_as_string {
69
70
sub is_cube { $_[0]->{type} == 0 }
71
sub has_valve { $_[0]->{type} == 1 or $_[0]->{type} == 2 }
72
-sub has_temperature { $_[0]->{type} == 3 }
+sub has_temperature { $_[0]->{type} >= 1 and $_[0]->{type} <= 3 }
73
sub has_setpoint { $_[0]->{type} >= 1 and $_[0]->{type} <= 3 }
74
75
sub room {
0 commit comments