I have recently bought this, without much thought, and found out it is detected by Zigbee2MQTT but does not support the device. Does anybody have workaround on this device please?
I forgot to post the product link!
https://www.aliexpress.us/item/3256806851162604.html
Model is HZ-PS01 Human presence sensor, but was detected as TS0601 on Z2M device page.
Tried to configure as a new device, but doesn’t seems to work still.
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 = {
// Since a lot of Tuya devices use the same modelID, but use different datapoints
// it's necessary to provide a fingerprint instead of a zigbeeModel
fingerprint: [
{
// The model ID from: Device with modelID 'TS0601' is not supported
// You may need to add \u0000 at the end of the name in some cases
modelID: 'TS0601',
// The manufacturer name from: Device with modelID 'TS0601' is not supported.
manufacturerName: '_TZE204_nbkshs6k',
},
],
model: 'HZ-PS01',
vendor: 'Tuya',
description: 'Human Presence Sensor',
fromZigbee: [tuya.fz.datapoints],
toZigbee: [tuya.tz.datapoints],
onEvent: tuya.onEventSetTime, // Add this if you are getting no converter for 'commandMcuSyncTime'
configure: tuya.configureMagicPacket,
exposes: [
// Here you should put all functionality that your device exposes
],
meta: {
// All datapoints go in here
tuyaDatapoints: [
],
},
extend: [
// A preferred new way of extending functionality.
],
};
module.exports = definition;
Anyone have any luck / progress getting this to work?