zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

[TS0601 / _TZE200_jfw0a4aa] Wrong model recognized (ZG-102ZM instead of ZG-103Z) - Tilt (X, Y, Z) values missing

Open acuadulza opened this issue 1 year ago โ€ข 12 comments

Probably similar to #26695 (Wrong Device Detected).

What happened?

My Tuya Zigbee Vibration and Tilt Sensor (ZG-103Z) is incorrectly recognized as the HOBEIAN ZG-102ZM model during pairing.

The vibration event works (vibration: true/false), but the Tilt functionality (Tilt - binary and X, Y, Z coordinates) is missing. An entity named Contact is exposed, which I assume is the Tilt state, but is constantly in NULL state.

What did you expect to happen?

I expected the device to be correctly recognized as ZG-103Z and to fully expose the Tilt functionality, reporting the tilt, x, y, and z values, as shown in Z2M Documentation.

How to reproduce it (minimal and precise)

1- Pair the ZG-103Z sensor with Zigbee2MQTT. 2- Note the incorrect model recognition: HOBEIAN ZG-102ZM. 3 - Check the exposed properties: tilt, x, y, and z are missing. 4 - Observe the exposed entity Contact in a perpetual NULL state, even after shaking or tilting the device.

Details

os: #1 SMP PREEMPT_DYNAMIC Mon Sep 8 17:12:31 UTC 2025 - 6.12.43-haos - x64 node: v22.16.0 zigbee2mqtt: 2.6.2 (unknown) zigbee-herdsman: 6.1.5 zigbee-herdsman-converters: 25.35.1 adapter: EmberZNet {"build":397,"ezsp":14,"major":8,"minor":0,"patch":2,"revision":"8.0.2 [GA]","special":0,"type":170}

Device

software_build_id: 0113082025 date_code: 13082025 endpoints:

{"1":{"bindings":[],"clusters":{"input":["genBasic","genIdentify","ssIasZone","manuSpecificTuya","genPowerCfg"],"output":[]},"configured_reportings":[],"scenes":[]}}
Health

time: Mon Oct 06 2025 17:28:47 GMT+0200 (Ora legale dellโ€™Europa centrale) process.uptime_sec: 94805

{"leave_count":0,"messages":32,"messages_per_sec":0.1873,"network_address_changes":0}

acuadulza avatar Oct 06 '25 16:10 acuadulza

I tried to add an external converter that just forced this device to be recognized as ZG-103Z, and even though it is now recognized as such, the tilt shows up in the UI, but it is always set to null.

Image Image

Config was copied from https://github.com/Koenkk/zigbee-herdsman-converters/blob/master/src/devices/tuya.ts#L16621-L16657, and I just added "_TZE200_jfw0a4aa" to the fingerprint array.

const fz = require('zigbee-herdsman-converters/converters/fromZigbee');
const tz = require('zigbee-herdsman-converters/converters/toZigbee');
const exposes = require('zigbee-herdsman-converters/lib/exposes');
const reporting = require('zigbee-herdsman-converters/lib/reporting');
const modernExtend = require('zigbee-herdsman-converters/lib/modernExtend');
const e = exposes.presets;
const ea = exposes.access;
const tuya = require('zigbee-herdsman-converters/lib/tuya');

const definition = {
    zigbeeModel: ["ZG-103Z"],
    fingerprint: tuya.fingerprint("TS0601", ["_TZE200_iba1ckek", "_TZE200_hggxgsjj", "_TZE200_yjryxpot", "_TZE200_afycb3cg", "_TZE200_jfw0a4aa"]),
    model: "ZG-103Z",
    vendor: "Tuya",
    description: "Vibration sensor",
    fromZigbee: [tuya.fz.datapoints],
    toZigbee: [tuya.tz.datapoints],
    configure: tuya.configureMagicPacket,
    exposes: [
        e.vibration(),
        e.tilt(),
        e.numeric("x", ea.STATE).withValueMin(0).withValueMax(256).withValueStep(1).withDescription("X coordinate"),
        e.numeric("y", ea.STATE).withValueMin(0).withValueMax(256).withValueStep(1).withDescription("Y coordinate"),
        e.numeric("z", ea.STATE).withValueMin(0).withValueMax(256).withValueStep(1).withDescription("Z coordinate"),
        e.battery(),
        e.enum("sensitivity", ea.STATE_SET, ["low", "middle", "high"]).withDescription("Vibration detection sensitivity"),
    ],
    meta: {
        tuyaDatapoints: [
            [1, "vibration", tuya.valueConverter.trueFalseEnum1],
            [7, "tilt", tuya.valueConverter.trueFalseEnum1],
            [101, "x", tuya.valueConverter.raw],
            [102, "y", tuya.valueConverter.raw],
            [103, "z", tuya.valueConverter.raw],
            [
                104,
                "sensitivity",
                tuya.valueConverterBasic.lookup({
                    low: tuya.enum(0),
                    middle: tuya.enum(1),
                    high: tuya.enum(2),
                }),
            ],
            [105, "battery", tuya.valueConverter.raw],
        ],
    },
};

module.exports = definition;

queimadus avatar Oct 18 '25 09:10 queimadus

Having the same issue did you get it to work?

wookienow avatar Nov 25 '25 10:11 wookienow

my ZG-103ZL was also wrong detected as a ZG-102ZM. any way to correct this?

Joern-HAP avatar Jan 22 '26 15:01 Joern-HAP

I believe there is also problem with vibration detecting. Sensitivity is very low. Looks like its responding to one axe or similar problem. I have no clue how to debug it further but I am willing to help

kamilkrz avatar Jan 28 '26 23:01 kamilkrz

Same issue here, it also seems to get stuck to "Detected" sometimes

FluffyGhoster avatar Feb 14 '26 23:02 FluffyGhoster

https://ali.click/glfk11p A new revision of the Tuya Vibration & Tilt sensor (marked as ZG-227Z V3.5 on the PCB) is being incorrectly identified as a standard ZG-102ZM (HOBEIAN). While basic vibration and battery work, the Tilt status and Sensitivity settings do not function correctly or use different Data Points.

Device Information:

Model ID: TS0601

Manufacturer Name: _TZE200_jfw0a4aa (also seen _TZE200_afycb3cg)

PCB Marking: ZG-227Z V3.5

Inconsistency found:

The device identifies as ZG-102ZM, but this hardware version seems to report data differently.

Vibration: Reported via Tuya DP 1 (enum).

Tilt: Reported via ssIasZone cluster (zoneStatus: 1) or DP 104, but current converter doesn't map it to the tilt property.

Sensitivity: Device accepts values from 1-100 on DP 10, but UI is limited to Low/Medium/High presets.

Logs & Payloads: When vibration occurs, the following Tuya DP message is received: z2m: Received Zigbee message from '0xa4c1388365e05c19', type 'raw', cluster 'manuSpecificTuya', data '{"dp":1,"datatype":4,"data":[1]}'

When tilting/IAS status changes: z2m: Received Zigbee message from '0xa4c1388365e05c19', type 'readResponse', cluster 'ssIasZone', data '{"iasCieAddr":"0x...","zoneState":1}'

Image Image

StaLeWaR avatar Mar 04 '26 07:03 StaLeWaR

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar May 04 '26 00:05 github-actions[bot]

Any update?

FluffyGhoster avatar May 04 '26 01:05 FluffyGhoster

@13717033460 maybe you can check?

andrei-lazarov avatar May 06 '26 12:05 andrei-lazarov

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Jul 06 '26 00:07 github-actions[bot]

mine same how to fix :(

appsfinder2 avatar Oct 19 '26 13:10 appsfinder2

Here is what I've found. I ordered few vibration sensors from aliexpress. Some with XYZ angle detection and some with only vibration.

You can see the difference between the two boards

PXL_20261119_180915345 PXL_20261119_180315856 PXL_20261119_180401752~2 PXL_20261119_180408229~2

The black PCB has the ZG-103ZM backplate and only expose a vibration sensor :

Screenshot 2026-11-19 at 19 20 21 Screenshot 2026-11-19 at 19 20 32

And the blue PCB has the ZG-103Z backplate and expose XYZ, tilt sensor and vibration sensor :

Screenshot 2026-11-19 at 19 19 28 Screenshot 2026-11-19 at 19 19 50

Those are two different units with two different ICs. So I am afraid you cannot do anything about the XYZ and tilt sensor missing on your device. The best we could do is to document those tho "new" references in the database to avoid confusion.

iioel avatar Nov 19 '26 18:11 iioel