Bugfix of incorrectly read level of zigbee devices
This commit is contained in:
parent
a4745cdccd
commit
f7f590a77e
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ public class ZigbeeLevelConfig extends ZigbeeHalEventDeviceConfig implements Hal
|
||||||
if (zclAttribute.getClusterType().getId() == getZigbeeClusterId() &&
|
if (zclAttribute.getClusterType().getId() == getZigbeeClusterId() &&
|
||||||
zclAttribute.getId() == ZclLevelControlCluster.ATTR_CURRENTLEVEL)
|
zclAttribute.getId() == ZclLevelControlCluster.ATTR_CURRENTLEVEL)
|
||||||
return new LevelEventData(
|
return new LevelEventData(
|
||||||
(Integer) zclAttribute.getLastValue(),
|
((int) zclAttribute.getLastValue()) / 255.0,
|
||||||
zclAttribute.getLastReportTime().getTimeInMillis());
|
zclAttribute.getLastReportTime().getTimeInMillis());
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue