Adding availability support to Commercial Electric Downlight model 53170161 (#2922)

This commit is contained in:
Ricardo Pereira
2020-02-08 23:23:44 +01:00
committed by GitHub
parent 06b6d66090
commit fb7c3a31dd
+6 -2
View File
@@ -6,10 +6,14 @@ const BaseExtension = require('./baseExtension');
// Some EndDevices should be pinged
// e.g. E11-G13 https://github.com/Koenkk/zigbee2mqtt/issues/775#issuecomment-453683846
const forcedPingable = [
zigbeeHerdsmanConverters.devices.find((d) => d.model === 'E11-G13'),
const pingableModels = [
'E11-G13',
'53170161',
];
const forcedPingable =
zigbeeHerdsmanConverters.devices.filter((d) => pingableModels.includes(d.model));
const toZigbeeCandidates = ['state', 'brightness', 'color', 'color_temp'];
const Hours25 = 1000 * 60 * 60 * 25;