PV
Size: a a a
PV
PV
xiaomi_plug_state: {
cluster: 'genBasic',
type: ['attributeReport', 'readResponse'],
convert: (model, msg, publish, options, meta) => {
if (msg.data['65281']) {
const data = msg.data['65281'];
return {
state: data['100'] === 1 ? 'ON' : 'OFF',
power: precisionRound(data['152'], 2),
voltage: precisionRound(data['150'] * 0.1, 1),
consumption: precisionRound(data['149'], 2),
temperature: calibrateAndPrecisionRoundOptions(data['3'], options, 'temperature'),
};
}
},
},
У меня по факту их 61 (с 0 по 60) (для zncz04lm).aqara_opple_report: {
cluster: 'aqaraOpple',
type: ['attributeReport', 'readResponse'],
convert: (model, msg, publish, options, meta) => {
// it is like xiaomi_battery_3v, but not parsed
// https://github.com/Koenkk/zigbee-herdsman/blob/master/src/zcl/buffaloZcl.ts#L93
// data: { '247': <Buffer 01 21 b8 0b 03 28 19 04 21 a8 13 05 21 44 01 06 24 02
// 00 00 00 00 08 21 11 01 0a 21 00 00 0c 20 01 64 10 00> }
let voltage = null;
if (msg.data['247']) {
voltage = msg.data['247'][2] + msg.data['247'][3]*256;
}
if (voltage) {
return {
battery: toPercentageCR2032(voltage),
voltage: voltage,
};
}
},
},
PV
ИК
PV
KP
A
KP
A
A
KP
А
KP
A
KP
KP
A
A