Skip to content

Commit 9e186e7

Browse files
feat(add): ROB_200-026-1 (#9654)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent dc4de70 commit 9e186e7

1 file changed

Lines changed: 27 additions & 1 deletion

File tree

src/devices/robb.ts

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,33 @@ export const definitions: DefinitionWithExtend[] = [
380380
description: "2-gang in-wall switch",
381381
fromZigbee: [fz.on_off, fz.electrical_measurement, fz.metering, fz.power_on_behavior],
382382
toZigbee: [tz.on_off, tz.power_on_behavior, tz.electrical_measurement_power],
383-
exposes: [e.switch().withEndpoint("l1"), e.switch().withEndpoint("l2"), e.energy()],
383+
exposes: [e.switch().withEndpoint("l1"), e.switch().withEndpoint("l2"), e.energy(), e.power_on_behavior()],
384+
endpoint: (device) => {
385+
return {l1: 1, l2: 2};
386+
},
387+
meta: {multiEndpoint: true, multiEndpointSkip: ["power", "energy"]},
388+
configure: async (device, coordinatorEndpoint) => {
389+
const endpoint1 = device.getEndpoint(1);
390+
const endpoint2 = device.getEndpoint(2);
391+
await reporting.bind(endpoint1, coordinatorEndpoint, ["genOnOff"]);
392+
await reporting.bind(endpoint2, coordinatorEndpoint, ["genOnOff"]);
393+
await reporting.onOff(endpoint1);
394+
await reporting.onOff(endpoint2);
395+
await endpoint1.read("haElectricalMeasurement", ["acPowerMultiplier", "acPowerDivisor"]);
396+
await reporting.bind(endpoint1, coordinatorEndpoint, ["haElectricalMeasurement", "seMetering"]);
397+
await reporting.activePower(endpoint1);
398+
await reporting.readMeteringMultiplierDivisor(endpoint1);
399+
await reporting.currentSummDelivered(endpoint1, {min: 60, change: 1});
400+
},
401+
},
402+
{
403+
zigbeeModel: ["ROB_200-026-1"],
404+
model: "ROB_200-026-1",
405+
vendor: "ROBB smarrt",
406+
description: "2-gang in-wall switch",
407+
fromZigbee: [fz.on_off, fz.electrical_measurement, fz.metering, fz.power_on_behavior],
408+
toZigbee: [tz.on_off, tz.power_on_behavior, tz.electrical_measurement_power],
409+
exposes: [e.switch().withEndpoint("l1"), e.switch().withEndpoint("l2"), e.energy(), e.power_on_behavior()],
384410
endpoint: (device) => {
385411
return {l1: 1, l2: 2};
386412
},

0 commit comments

Comments
 (0)