Witam,
chciałbym trochę odkurzyć temat.
Kupiłem nowy czujnik obecności ZY-M100-S, ale niestety w wersji nieobsługiwanej przez Z2M, który wykrywa go jako: TS0601 _TZE204_sxm7l9xa.
Próbowałem użyć External Converter z konfiguracją jak poniżej, ale coś nie zadziałało, teraz mam błąd: fromZigbee.tuya_smart_human_presense_sensor: NOT RECOGNIZED DP 109 with data {“dp”:109,“datatype”:2,“data”:{“type”:“Buffer”,“data”:[0,0,0,86]}}
Prośba do bardziej doświadczonych o pomoc.
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 extend = require('zigbee-herdsman-converters/lib/extend');
const utils = require('zigbee-herdsman-converters/lib/utils');
const ota = require('zigbee-herdsman-converters/lib/ota');
const tuya = require('zigbee-herdsman-converters/lib/tuya');
const e = exposes.presets;
const ea = exposes.access;
const globalStore = require('zigbee-herdsman-converters/lib/store');
const definition = {
fingerprint: [{modelID: 'TS0601', manufacturerName: '_TZE200_ikvncluo'},
{modelID: 'TS0601', manufacturerName: '_TZE200_lyetpprm'},
{modelID: 'TS0601', manufacturerName: '_TZE200_wukb7rhc'},
{modelID: 'TS0601', manufacturerName: '_TZE200_jva8ink8'},
{modelID: 'TS0601', manufacturerName: '_TZE204_sxm7l9xa'},
{modelID: 'TS0601', manufacturerName: '_TZE204_ztc6ggyl'},
{modelID: 'TS0601', manufacturerName: '_TZE200_ztc6ggyl'}],
model: 'TS0601_smart_human_presense_sensor',
vendor: 'TuYa',
description: 'Smart Human presence sensor',
fromZigbee: [fz.tuya_smart_human_presense_sensor],
toZigbee: [tz.tuya_smart_human_presense_sensor],
exposes: [
e.illuminance_lux(), e.presence(),
exposes.numeric('target_distance', ea.STATE).withDescription('Distance to target').withUnit('m'),
exposes.numeric('radar_sensitivity', ea.STATE_SET).withValueMin(0).withValueMax(9).withValueStep(1)
.withDescription('sensitivity of the radar'),
exposes.numeric('minimum_range', ea.STATE_SET).withValueMin(0).withValueMax(9.5).withValueStep(0.15)
.withDescription('Minimum range').withUnit('m'),
exposes.numeric('maximum_range', ea.STATE_SET).withValueMin(0).withValueMax(9.5).withValueStep(0.15)
.withDescription('Maximum range').withUnit('m'),
exposes.numeric('detection_delay', ea.STATE_SET).withValueMin(0).withValueMax(10).withValueStep(0.1)
.withDescription('Detection delay').withUnit('s'),
exposes.numeric('fading_time', ea.STATE_SET).withValueMin(0).withValueMax(1500).withValueStep(1)
.withDescription('Fading time').withUnit('s'),
// exposes.text('cli', ea.STATE).withDescription('not recognize'),
exposes.enum('self_test', ea.STATE, Object.values(tuya.tuyaHPSCheckingResult))
.withDescription('Self_test, possible resuts: checking, check_success, check_failure, others, comm_fault, radar_fault.'),
],
};
module.exports = definition;