From 06b6d66090506a9cf75ab8017913805e35d764ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Boris=20Pr=C3=BC=C3=9Fmann?= Date: Sat, 8 Feb 2020 11:53:16 -0800 Subject: [PATCH] Feedback requested: add polling for commandOn & commandOff (#2730) * Add polling for commandOn & commandOf. When using groups together with devices that do not support reporting, this is needed to have the new state reflected. * Update deviceReport.js Co-authored-by: Koen Kanters --- lib/extension/deviceReport.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/extension/deviceReport.js b/lib/extension/deviceReport.js index 604c2c889..18d0f373a 100644 --- a/lib/extension/deviceReport.js +++ b/lib/extension/deviceReport.js @@ -58,6 +58,17 @@ const pollOnMessage = [ // When the bound devices/members of group have the following manufacturerID manufacturerID: ZigbeeHerdsman.Zcl.ManufacturerCode.Philips, }, + { + key: 2, + cluster: { + genOnOff: [ + {type: 'commandOn', data: {}}, + {type: 'commandOff', data: {}}, + ], + }, + read: {cluster: 'genOnOff', attributes: ['onOff']}, + manufacturerID: ZigbeeHerdsman.Zcl.ManufacturerCode.Philips, + }, ]; class DeviceReport extends BaseExtension {