zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Availability only partly published in version 1.3

Open didiht opened this issue 7 years ago β€’ 2 comments

After updating from version 1.2.1 to version 1.3 I observed that the availability state was published for only one router device.

I found the bug in the file lib/extension/deviceAvailability.js

After changing some code (see below) the availbility functionality works as expected againπŸ˜„

raspi:/opt/zigbee2mqtt/lib/extension $ diff deviceAvailability.js deviceAvailability.js.v1.3
87,89c87
< //    setTimer(ieeeAddr) {
<     setTimer(device) {
<         const ieeeAddr = device.ieeeAddr;
---
>     setTimer(ieeeAddr) {
95,96c93
< //            this.handleInterval(ieeeAddr);
<             this.handleInterval(device);
---
>             this.handleInterval(ieeeAddr);

@Koenkk Sorry, now I realized that this should be handled in Testing: device availability https://github.com/Koenkk/zigbee2mqtt/issues/775

didiht avatar Apr 09 '19 12:04 didiht

Thanks for reporting!

Can you check if this has been fixed in the latest dev branch?

Koenkk avatar Apr 09 '19 17:04 Koenkk

@Koenkk You are welcome!

Reviewed and tested, works perfectly.

didiht avatar Apr 10 '19 09:04 didiht