[New device support]: 3r new plug
Link
The product is still under development and has not been launched yet
Database entry
{"id":1,"type":"Coordinator","ieeeAddr":"0xe0798dfffe0a9bf6","nwkAddr":0,"manufId":4169,"epList":[1,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":48879,"inClusterList":[0,3,6,10,25,26,768],"outClusterList":[0,3,4,5,6,8,32,768,1024,1026,1029,1030,1280,2817,2819,2820,1794,4096,64513,64514],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"interviewCompleted":true,"meta":{},"lastSeen":1734428331869} {"id":98,"type":"Router","ieeeAddr":"0xb4e842000085e266","nwkAddr":41614,"manufId":5127,"manufName":"Third Reality, Inc","powerSource":"Unknown","modelId":"3RDP01072Z","epList":[1,2],"endpoints":{"1":{"profId":260,"epId":1,"devId":81,"inClusterList":[0,3,4,5,6,1794,2820],"outClusterList":[25],"clusters":{"seMetering":{"attributes":{"currentSummDelivered":184461,"divisor":3600000,"multiplier":1,"instantaneousDemand":0}},"haElectricalMeasurement":{"attributes":{"rmsCurrent":98,"activePower":133,"powerFactor":58,"rmsVoltage":2235,"acVoltageMultiplier":1,"acVoltageDivisor":10,"acCurrentMultiplier":1,"acCurrentDivisor":1000,"acPowerMultiplier":1,"acPowerDivisor":10,"acFrequency":0,"apparentPower":0}},"genBasic":{"attributes":{"modelId":"3RDP01072Z","manufacturerName":"Third Reality, Inc","powerSource":0,"zclVersion":8,"appVersion":2,"stackVersion":0,"hwVersion":1,"dateCode":"20210610-BL","swBuildId":"v1.00.02"}},"genOnOff":{"attributes":{"onOff":1}}},"binds":[],"configuredReportings":[{"cluster":6,"attrId":0,"minRepIntval":0,"maxRepIntval":3600,"repChange":0}],"meta":{}},"2":{"profId":260,"epId":2,"devId":81,"inClusterList":[0,3,4,5,6,1794,2820],"outClusterList":[],"clusters":{"seMetering":{"attributes":{"currentSummDelivered":1033774,"instantaneousDemand":0}},"genOnOff":{"attributes":{"onOff":0,"startUpOnOff":0}},"genBasic":{"attributes":{"stackVersion":0,"swBuildId":"v1.00.02"}},"haElectricalMeasurement":{"attributes":{"rmsCurrent":0,"activePower":0,"powerFactor":0,"apparentPower":0}}},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":2,"stackVersion":0,"hwVersion":1,"dateCode":"20210610-BL","swBuildId":"v1.00.02","zclVersion":8,"interviewCompleted":true,"meta":{"configured":-222808917},"lastSeen":1734492302634}
Zigbee2MQTT version
1.42.0-2
Comments
pass two endpoint, in the local z2m,ep1 energy、power、voltage are normal display,but ep2 is abnormal display
External definition
module.exports = [
{
zigbeeModel: ["3RDP01072Z"],
model: "3RDP01072Z",
vendor: "Third Reality",
description: "Zigbee / BLE smart plug with power",
fromZigbee: [
fz.on_off,
fz.electrical_measurement,
fz.metering,
fz.power_on_behavior,
],
toZigbee: [tz.on_off, tz.power_on_behavior],
ota: ota.zigbeeOTA,
meta: {multiEndpoint: true},
exposes: [
e.switch().withEndpoint('left'),
e.power_on_behavior().withEndpoint('left'),
e.ac_frequency().withEndpoint('left'),
e.power().withEndpoint('left'),
e.power_factor().withEndpoint('left'),
e.energy().withEndpoint('left'),
e.current().withEndpoint('left'),
e.voltage().withEndpoint('left'),
e.switch().withEndpoint('right'),
e.power_on_behavior().withEndpoint('right'),
e.ac_frequency().withEndpoint('right'),
e.power().withEndpoint('right'),
e.power_factor().withEndpoint('right'),
e.energy().withEndpoint('right'),
e.current().withEndpoint('right'),
e.voltage().withEndpoint('right'),
],
endpoint: (device) => {
return { left: 1, right: 2 };
},
configure: async (device, coordinatorEndpoint) => {
for (const endpointID of [1, 2]) {
const endpoint = device.getEndpoint(endpointID);
//await reporting.onOff(endpoint);
// await reporting.activePower(endpoint, {change: 10});
// await reporting.rmsCurrent(endpoint, {change: 50});
// await reporting.rmsVoltage(endpoint, {change: 5});
// await reporting.readMeteringMultiplierDivisor(endpoint);
endpoint.saveClusterAttributeKeyValue('seMetering', {divisor: 3600000, multiplier: 1});
endpoint.saveClusterAttributeKeyValue('haElectricalMeasurement', {
acVoltageMultiplier: 1,
acVoltageDivisor: 10,
acCurrentMultiplier: 1,
acCurrentDivisor: 1000,
acPowerMultiplier: 1,
acPowerDivisor: 10,
});
device.save();
}
},
},
];