Replies: 5 comments
-
|
Hi, I don't see it added yet |
Beta Was this translation helpful? Give feedback.
-
|
I know it's not on https://www.zigbee2mqtt.io/supported-devices/ that's why I asked if anyone managed to get the device working, I tried through custom integrations but I couldn't do it... |
Beta Was this translation helpful? Give feedback.
-
|
Same here, mine is reported by z2m as a _TZ32101000000_5oy7cysk. Doesn't report any state other than lqi and last seen |
Beta Was this translation helpful? Give feedback.
-
|
Not even with the new version of zigbee2mqtt it doesn't work?, |
Beta Was this translation helpful? Give feedback.
-
|
This need some tests and improvements, but I have this external converter script that "works" : 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 = {
fingerprint: [
{
modelID: 'TS0210',
manufacturerName: '_TZ32101000000_5oy7cysk'
}
],
model: 'ZD100',
vendor: 'Tuya',
description: 'Smart 3-in-1 vibration, tilt and drop sensor',
extend: [tuya.modernExtend.tuyaBase({dp: true})],
exposes: [
e.action(['vibration', 'tilt', 'drop', 'none']),
e.angle('angle_x'),
e.angle('angle_y'),
e.angle('angle_z'),
e.battery(),
],
fromZigbee: [
fz.battery,
{
// Intercepting the raw cluster 57344 (0xE000) to avoid "No converter available" errors
cluster: 57344,
type: ['raw'],
convert: (model, msg, publish, options, meta) => {
//meta.logger.debug(`!!! ZD100 Cluster 57344 received: ${JSON.stringify(msg.data)}`);
return {};
},
}
],
meta: {
tuyaDatapoints: [
[104, 'action', tuya.valueConverterBasic.lookup({
'none': tuya.enum(0),
'vibration': tuya.enum(1),
'drop': tuya.enum(2),
'tilt': tuya.enum(3),
})],
[101, 'angle_x', tuya.valueConverterBasic.scale(0,255,0,360)],
[102, 'angle_y', tuya.valueConverterBasic.scale(0,255,0,360)],
[103, 'angle_z', tuya.valueConverterBasic.scale(0,255,0,360)],
]
},
};
module.exports = definition;I'm not really sure about every mappings (actions, angles, axis...) but it's a start... Please feel free to use it and report anything wrong... |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Has anyone managed to get a Vibration Alarm or Tilt Sensor or Glass Break Sensor in Zigbee2mqtt for Home assistant ?

Model: ZD100
2. Wireless Protocol: Zigbee 3.0
3. Operating Voltage: 3V
4. Battery Type: CR2450
5. Standby Current: 10µA
6. Alarm Current: 4mA
7. Gravity Detection: ±2g
8. Tilt Angle: ±10°
Beta Was this translation helpful? Give feedback.
All reactions