mirror of https://github.com/arendst/Tasmota.git
Merge pull request #9758 from s-hadinger/zigbee_remove_0x0000_2
Zigbee remove unwanted 0x0000
This commit is contained in:
commit
bf2788a6fd
|
@ -1470,8 +1470,10 @@ void Z_IncomingMessage(class ZCLFrame &zcl_received) {
|
||||||
// log the packet details
|
// log the packet details
|
||||||
zcl_received.log();
|
zcl_received.log();
|
||||||
|
|
||||||
Z_Device & device = zigbee_devices.getShortAddr(srcaddr);
|
// create the device entry if it does not exist and if it's not the local device
|
||||||
if (srcaddr != localShortAddr) {
|
Z_Device & device = (srcaddr != localShortAddr) ? zigbee_devices.getShortAddr(srcaddr) :
|
||||||
|
device_unk;
|
||||||
|
if (device.valid()) {
|
||||||
device.setLQI(linkquality != 0xFF ? linkquality : 0xFE); // EFR32 has a different scale for LQI
|
device.setLQI(linkquality != 0xFF ? linkquality : 0xFE); // EFR32 has a different scale for LQI
|
||||||
device.setLastSeenNow();
|
device.setLastSeenNow();
|
||||||
}
|
}
|
||||||
|
@ -1522,7 +1524,9 @@ void Z_IncomingMessage(class ZCLFrame &zcl_received) {
|
||||||
|
|
||||||
// since we just receveived data from the device, it is reachable
|
// since we just receveived data from the device, it is reachable
|
||||||
zigbee_devices.resetTimersForDevice(srcaddr, 0 /* groupaddr */, Z_CAT_REACHABILITY); // remove any reachability timer already there
|
zigbee_devices.resetTimersForDevice(srcaddr, 0 /* groupaddr */, Z_CAT_REACHABILITY); // remove any reachability timer already there
|
||||||
|
if (device.valid()) {
|
||||||
device.setReachable(true); // mark device as reachable
|
device.setReachable(true); // mark device as reachable
|
||||||
|
}
|
||||||
|
|
||||||
if (defer_attributes) {
|
if (defer_attributes) {
|
||||||
// Prepare for publish
|
// Prepare for publish
|
||||||
|
|
Loading…
Reference in New Issue