Bugfix of incorrectly read level of zigbee devices

This commit is contained in:
Ziver Koc 2023-09-08 23:16:03 +02:00
parent a4745cdccd
commit f7f590a77e

View file

@ -44,7 +44,7 @@ public class ZigbeeLevelConfig extends ZigbeeHalEventDeviceConfig implements Hal
if (zclAttribute.getClusterType().getId() == getZigbeeClusterId() &&
zclAttribute.getId() == ZclLevelControlCluster.ATTR_CURRENTLEVEL)
return new LevelEventData(
(Integer) zclAttribute.getLastValue(),
((int) zclAttribute.getLastValue()) / 255.0,
zclAttribute.getLastReportTime().getTimeInMillis());
return null;
}