Ubisys Zigbee dimmer D1 support

Hi!

I have some Zigbee dimmers from ubisys which supports lighting control and power metering. I would like to use it with Mozilla IoT gateway.
However, the dimmers were treated as smart plug/ multiple level switch/ onoff switch/ energy meter but without light. moreover, it also cannot be controlled and read the correct power consumption. So, could you advice me how to make the gateway recognize the correct device type and the correct power information?
Thanks a lot!

The Gateway hardware:

  • Raspberry Pi 3 B+
  • TI CC2531

There is also the logs related to the gateway.
2020-06-08 13:37:33.893 INFO : zigbee-adapter: zb-001fee00000019ac-undefined property: level profileId: 0104 endpoint: 1 clusterId: 0008 readRsp value: 0.4% (1)
2020-06-08 13:37:33.943 ERROR : zigbee-adapter: Response: readRsp got status: unsupAttribute (134) node: zb-001fee00000019ac-undefined cluster: haElectricalMeasurement (2820) attr: acPowerMultiplier (1540)
2020-06-08 13:37:33.944 INFO : zigbee-adapter: zb-001fee00000019ac-undefined property: _powerMul profileId: 0104 endpoint: 4 clusterId: 0b04 readRsp value: 1
2020-06-08 13:37:34.012 ERROR : zigbee-adapter: Response: readRsp got status: unsupAttribute (134) node: zb-001fee00000019ac-undefined cluster: haElectricalMeasurement (2820) attr: acPowerDivisor (1541)
2020-06-08 13:37:34.013 INFO : zigbee-adapter: zb-001fee00000019ac-undefined property: _powerDiv profileId: 0104 endpoint: 4 clusterId: 0b04 readRsp value: 1
2020-06-08 13:37:34.016 INFO : zigbee-adapter: Sending Bind Req (0x0021)
2020-06-08 13:37:34.207 ERROR : zigbee-adapter: Response: configReportRsp got status: unreportableAttribute (140) node: zb-001fee00000019ac-undefined cluster: haElectricalMeasurement (2820) attr: activePower (1291)
2020-06-08 13:37:34.209 ERROR : zigbee-adapter: 001fee00000019ac configReport failed - setting fireAndForget to true
2020-06-08 13:37:34.263 INFO : zigbee-adapter: zb-001fee00000019ac-undefined property: instantaneousPower profileId: 0104 endpoint: 4 clusterId: 0b04 readRsp value: 0
2020-06-08 13:37:34.313 ERROR : zigbee-adapter: Response: readRsp got status: unsupAttribute (134) node: zb-001fee00000019ac-undefined cluster: haElectricalMeasurement (2820) attr: acCurrentMultiplier (1538)
2020-06-08 13:37:34.315 INFO : zigbee-adapter: zb-001fee00000019ac-undefined property: _currentMul profileId: 0104 endpoint: 4 clusterId: 0b04 readRsp value: 1
2020-06-08 13:37:34.362 ERROR : zigbee-adapter: Response: readRsp got status: unsupAttribute (134) node: zb-001fee00000019ac-undefined cluster: haElectricalMeasurement (2820) attr: acCurrentDivisor (1539)
2020-06-08 13:37:34.364 INFO : zigbee-adapter: zb-001fee00000019ac-undefined property: _currentDiv profileId: 0104 endpoint: 4 clusterId: 0b04 readRsp value: 1
2020-06-08 13:37:34.426 ERROR : zigbee-adapter: Response: configReportRsp got status: unreportableAttribute (140) node: zb-001fee00000019ac-undefined cluster: haElectricalMeasurement (2820) attr: rmsCurrent (1288)
2020-06-08 13:37:34.428 ERROR : zigbee-adapter: 001fee00000019ac configReport failed - setting fireAndForget to true
2020-06-08 13:37:34.470 INFO : zigbee-adapter: zb-001fee00000019ac-undefined property: current profileId: 0104 endpoint: 4 clusterId: 0b04 readRsp value: 4
2020-06-08 13:37:34.523 ERROR : zigbee-adapter: Response: configReportRsp got status: unreportableAttribute (140) node: zb-001fee00000019ac-undefined cluster: haElectricalMeasurement (2820) attr: acFrequency (768)
2020-06-08 13:37:34.525 ERROR : zigbee-adapter: 001fee00000019ac configReport failed - setting fireAndForget to true
2020-06-08 13:37:34.566 INFO : zigbee-adapter: zb-001fee00000019ac-undefined property: frequency profileId: 0104 endpoint: 4 clusterId: 0b04 readRsp value: 49622
2020-06-08 13:37:34.620 ERROR : zigbee-adapter: Response: readRsp got status: unsupAttribute (134) node: zb-001fee00000019ac-undefined cluster: haElectricalMeasurement (2820) attr: acVoltageMultiplier (1536)
2020-06-08 13:37:34.622 INFO : zigbee-adapter: zb-001fee00000019ac-undefined property: _voltageMul profileId: 0104 endpoint: 4 clusterId: 0b04 readRsp value: 1
2020-06-08 13:37:34.674 ERROR : zigbee-adapter: Response: readRsp got status: unsupAttribute (134) node: zb-001fee00000019ac-undefined cluster: haElectricalMeasurement (2820) attr: acVoltageDivisor (1537)
2020-06-08 13:37:34.679 INFO : zigbee-adapter: zb-001fee00000019ac-undefined property: _voltageDiv profileId: 0104 endpoint: 4 clusterId: 0b04 readRsp value: 1
2020-06-08 13:37:34.728 ERROR : zigbee-adapter: Response: configReportRsp got status: unreportableAttribute (140) node: zb-001fee00000019ac-undefined cluster: haElectricalMeasurement (2820) attr: rmsVoltage (1285)
2020-06-08 13:37:34.730 ERROR : zigbee-adapter: 001fee00000019ac configReport failed - setting fireAndForget to true
2020-06-08 13:37:34.779 INFO : zigbee-adapter: zb-001fee00000019ac-undefined property: voltage profileId: 0104 endpoint: 4 clusterId: 0b04 readRsp value: 225
2020-06-08 13:37:35.106 INFO : zigbee-adapter: zb-001fee00000019ac-undefined property: level profileId: 0104 endpoint: 1 clusterId: 0008 report value: 0.4% (1)
2020-06-08 13:37:40.956 INFO : getValue for property level for: zb-001fee00000019ac-undefined returning 0.3937007874015748
2020-06-08 13:37:40.958 INFO : getValue for property instantaneousPower for: zb-001fee00000019ac-undefined returning 0
2020-06-08 13:37:40.959 INFO : getValue for property current for: zb-001fee00000019ac-undefined returning 4
2020-06-08 13:37:40.960 INFO : getValue for property frequency for: zb-001fee00000019ac-undefined returning 49622
2020-06-08 13:37:40.961 INFO : getValue for property voltage for: zb-001fee00000019ac-undefined returning 225
2020-06-08 13:37:40.965 INFO : Successfully created new thing zb-001fee00000019ac-undefined

There is the printscreen of the device:

I don’t have any immediate recommendations, but would you mind filing an issue here, that way it’s at least documented?