Tuya TS0601 TZE204 81yrt3lo shown as single plug instead of dual sensors

Hello,

I just installed two _TZE204_81yrt3lo they were paired with a Conbee II and deconz.
Each of these devices has two power clamps for a total of 4 power sensors.

the deconz GUI shows them as 2 plugs and no sensors. HA sees the same.
Any idea how I could fix that ?

Thanks

I found this in another project’s repository.

Maybe addresses could be transformed into a Quirk for these sensors?

{
        fingerprint: tuya.fingerprint('TS0601', ['_TZE204_81yrt3lo', '_TZE200_rks0sgb7']),
        model: 'PJ-1203A',
        vendor: 'TuYa',
        description: 'Bidirectional energy meter with 80A current clamp',
        fromZigbee: [tuya.fz.datapoints],
        toZigbee: [tuya.tz.datapoints],
        onEvent: tuya.onEventSetTime,
        configure: tuya.configureMagicPacket,
        exposes: [
            e.ac_frequency(), e.voltage(),
            tuya.exposes.powerWithPhase('a'), tuya.exposes.powerWithPhase('b'), tuya.exposes.powerWithPhase('ab'),
            tuya.exposes.currentWithPhase('a'), tuya.exposes.currentWithPhase('b'),
            tuya.exposes.powerFactorWithPhase('a'), tuya.exposes.powerFactorWithPhase('b'),
            tuya.exposes.energyFlowWithPhase('a'), tuya.exposes.energyFlowWithPhase('b'),
            tuya.exposes.energyWithPhase('a'), tuya.exposes.energyWithPhase('b'),
            tuya.exposes.energyProducedWithPhase('a'), tuya.exposes.energyProducedWithPhase('b'),
            e.numeric('update_frequency', ea.STATE).withUnit('s').withDescription('Update frequency'),
        ],
        meta: {
            tuyaDatapoints: [
                [111, 'ac_frequency', tuya.valueConverter.divideBy100],
                [101, 'power_a', tuya.valueConverter.divideBy10],
                [105, 'power_b', tuya.valueConverter.divideBy10],
                [115, 'power_ab', tuya.valueConverter.divideBy10],
                [112, 'voltage', tuya.valueConverter.divideBy10],
                [113, 'current_a', tuya.valueConverter.divideBy1000],
                [114, 'current_b', tuya.valueConverter.divideBy1000],
                [110, 'power_factor_a', tuya.valueConverter.raw],
                [121, 'power_factor_b', tuya.valueConverter.raw],
                [102, 'energy_flow_a', tuya.valueConverterBasic.lookup({'consuming': 0, 'producing': 1})],
                [104, 'energy_flow_b', tuya.valueConverterBasic.lookup({'consuming': 0, 'producing': 1})],
                [106, 'energy_a', tuya.valueConverter.divideBy100],
                [108, 'energy_b', tuya.valueConverter.divideBy100],
                [107, 'energy_produced_a', tuya.valueConverter.divideBy100],
                [109, 'energy_produced_b', tuya.valueConverter.divideBy100],
                [129, 'update_frequency', tuya.valueConverter.raw],
            ],
        },
    },

A spanish and a french guy making some progress here [Device Support Request] _TZE204_81yrt3lo TS0601 Zigbee power meter with clamp · Issue #2549 · zigpy/zha-device-handlers · GitHub

Got confused, ZHA and deconz are two ways to accomplish the same thing.

Here is the solution for this sensor using deconz : PJ-1203A - Tuya Zigbee power meter with 2 clamps · Issue #7324 · dresden-elektronik/deconz-rest-plugin · GitHub

Instead of a quirk, deconz uses DDF files. Placing the DDF in the deconz docker container does the job just fine.

Indeed, they are differtent Zigbee Gateway host application implementations, and the Zigbee2MQTT application is another popular. They all implement different custom device handlers (also known as quirks, converters, translators, etc. in different Zigbee Gateway solutions) which are not directly cross-compatible with each other, though developers can sometimes look at other implementations to get an ideas how to solve the same issue in a different application.

For the deCONZ/Phoscon application read and follow this → https://forum.phoscon.de/t/read-me-device-request-read-me/23

For the ZHA integration read and follow this section in the ZHA documentation → https://www.home-assistant.io/integrations/zha#how-to-add-support-for-new-and-unsupported-devices

For the Zigbee2MQTT application read and follow this → https://www.zigbee2mqtt.io/advanced/support-new-devices/01_support_new_devices.html