mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-07-03 02:21:38 +00:00
Fix Home Assistant automation trigger reliability by adding a small delay. #959
This commit is contained in:
@@ -140,8 +140,11 @@ class DeviceReceive {
|
||||
}
|
||||
|
||||
this.publishEntityState(device.ieeeAddr, payload, cache);
|
||||
|
||||
if (Object.keys(clearStatePayload).length > 0) {
|
||||
this.publishEntityState(device.ieeeAddr, clearStatePayload, false);
|
||||
setTimeout(() => {
|
||||
this.publishEntityState(device.ieeeAddr, clearStatePayload, false);
|
||||
}, 300);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user