I have a Tuya Smart ZigBee Energy Meter connected to Home Assistant using a Sonoff Zigbee gateway. However, it only displays diagnostic information such as LQI and RSSI; the sensor information is not visible

are you sure your zigbee power meter has a manufacturer ID known to the custom quirk?

I tried a few more times and it still doesn’t work, I also tried to change the ID to what my device has like this, but I’m not sure if this is needed :

class TuyaPowerMeter(EnchantedDevice):
    """Tuya power meter device."""

    signature = {
        # "node_descriptor": "<NodeDescriptor byte1=1 byte2=64 mac_capability_flags=142 manufacturer_code=4098
        #                       maximum_buffer_size=82 maximum_incoming_transfer_size=82 server_mask=11264
        #                       maximum_outgoing_transfer_size=82 descriptor_capability_field=0>",
        # device_version=1
        # input_clusters=[0x0000, 0x0004, 0x0005, 0xef00]
        # output_clusters=[0x000a, 0x0019]
        MODELS_INFO: [
            ("_TZE284_81yrt3lo", "TS0601"),
        ],
        ENDPOINTS: {
            # <SimpleDescriptor endpoint=1 profile=260 device_type=51
            # device_version=1
            # input_clusters=[0, 4, 5, 61184]
            # output_clusters=[10, 25]>
            1: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.SMART_PLUG,
                INPUT_CLUSTERS: [
                    Basic.cluster_id,
                    Groups.cluster_id,
                    Scenes.cluster_id,
                    TuyaManufClusterDinPower.cluster_id,
                ],
                OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],
            }
        },
    }

That is the place where I need to change the ID with my device ID ?

thank you

I’m not expert in this field but I think you should not only change the ID in the quirk but you need to verify which values are outputted from which clusters, inspecting the zigbee device.

At the moment there is something going on and maybe a working custom quirk in the github thread I mentioned above for your device.

Check this message

and the rest of the thread.

If you make any progress, please keep the Github thread updated with your findings.

2 Likes

Really interesting.

Was able to get mine to work (TS0601 _TZE204_81yrt3lo) and get most of the datapoints.

However, I see a weird results:
-Max current is 0.5A no matter the real current of the wire.
-Max power doesn’t go up more than 85W, and apparent power max 120VA.

We are talking of an air conditioning unit that draws up to 1500W when starting.

Has anybody experienced this issue?

Thank you.