diff --git a/libnymea-zigbee/zcl/measurement/zigbeeclusteroccupancysensing.cpp b/libnymea-zigbee/zcl/measurement/zigbeeclusteroccupancysensing.cpp index 3cf257d..2c576b8 100644 --- a/libnymea-zigbee/zcl/measurement/zigbeeclusteroccupancysensing.cpp +++ b/libnymea-zigbee/zcl/measurement/zigbeeclusteroccupancysensing.cpp @@ -54,6 +54,8 @@ void ZigbeeClusterOccupancySensing::setAttribute(const ZigbeeClusterAttribute &a m_occupied = value; qCDebug(dcZigbeeCluster()) << "Occupancy changed on" << m_node << m_endpoint << this << m_occupied; emit occupancyChanged(m_occupied); + } else { + qCWarning(dcZigbeeCluster()) << "Failed to convert value from attribute" << m_node << m_endpoint << this << attribute; } } } diff --git a/libnymea-zigbee/zcl/zigbeeclusterlibrary.cpp b/libnymea-zigbee/zcl/zigbeeclusterlibrary.cpp index 2a2bf24..6af02a2 100644 --- a/libnymea-zigbee/zcl/zigbeeclusterlibrary.cpp +++ b/libnymea-zigbee/zcl/zigbeeclusterlibrary.cpp @@ -264,9 +264,9 @@ QByteArray ZigbeeClusterLibrary::buildAttributeReportingConfiguration(const Zigb stream << static_cast(reportingConfiguration.dataType); stream << reportingConfiguration.minReportingInterval; stream << reportingConfiguration.maxReportingInterval; - for (int i = 0; i < reportingConfiguration.reportableChange.count(); i++) { + + for (int i = 0; i < reportingConfiguration.reportableChange.count(); i++) stream << static_cast(reportingConfiguration.reportableChange.at(i)); - } // Note: for reporting the timeoutPeriod is omitted if (reportingConfiguration.direction == ReportingDirectionReceiving) {