zigbee-herdsman-converters 14.0.488 → 14.0.489
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/devices/sonoff.js +5 -0
- package/package.json +1 -1
package/devices/sonoff.js
CHANGED
|
@@ -25,6 +25,11 @@ module.exports = [
|
|
|
25
25
|
fromZigbee: extend.switch().fromZigbee.concat([fz.power_on_behavior]),
|
|
26
26
|
exposes: extend.switch().exposes.concat([e.power_on_behavior()]),
|
|
27
27
|
configure: async (device, coordinatorEndpoint, logger) => {
|
|
28
|
+
// Unbind genPollCtrl to prevent device from sending checkin message.
|
|
29
|
+
// Zigbee-herdsmans responds to the checkin message which causes the device
|
|
30
|
+
// to poll slower.
|
|
31
|
+
// https://github.com/Koenkk/zigbee2mqtt/issues/11676
|
|
32
|
+
await device.getEndpoint(1).unbind('genPollCtrl', coordinatorEndpoint);
|
|
28
33
|
device.powerSource = 'Mains (single phase)';
|
|
29
34
|
device.save();
|
|
30
35
|
},
|