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 <koenkanters94@gmail.com>
This commit is contained in:
Boris Prüßmann
2020-02-08 20:53:16 +01:00
committed by GitHub
co-authored by Koen Kanters
parent 3d897c55e2
commit 06b6d66090
+11
View File
@@ -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 {