Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request support for the TS0601, model ZMS-102, _TZE200_gjldowol #2372

Open
tanelkoth opened this issue Feb 5, 2025 · 2 comments
Open

Request support for the TS0601, model ZMS-102, _TZE200_gjldowol #2372

tanelkoth opened this issue Feb 5, 2025 · 2 comments

Comments

@tanelkoth
Copy link

Tested with adapter version

1.10.14

modelZigbee

TS0601

manufacturer

_TZE200_gjldowol

Link to device

https://www.zigbee2mqtt.io/devices/ZMS-102.html

Coordinator type selected in adapter setting

Deconz/Conbee

Coordinator

ConBee2/RaspBee2

Coordinator firmware version and revision

version 0-0.38.114.0., revision 0x26720700

@tanelkoth
Copy link
Author

This is the information from the zigbee2mqtt guys:

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: '_TZE200_gjldowol',
},
],
model: 'TZE200_gjldowol',
vendor: 'Tuya',
description: 'Luminance motion 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: [
e.occupancy(),
e.illuminance().withUnit('lx'),
e.battery(),
e
.enum('sensitivity', ea.STATE_SET, ['low', 'medium', 'high'])
.withDescription('PIR sensor sensitivity (refresh and update only while active)'),
e
.enum('keep_time', ea.STATE_SET, ['10', '30', '60', '120'])
.withDescription('PIR keep time in seconds (refresh and update only while active)'),
e
.numeric('illuminance_interval', ea.STATE_SET)
.withValueMin(1)
.withValueMax(720)
.withValueStep(1)
.withUnit('minutes')
.withDescription('Brightness acquisition interval (refresh and update only while active)'),
],
meta: {
// All datapoints go in here
tuyaDatapoints: [
[1, 'occupancy', tuya.valueConverter.trueFalse0],
[4, 'battery', tuya.valueConverter.raw],
[9, 'sensitivity', tuya.valueConverterBasic.lookup({low: tuya.enum(0), medium: tuya.enum(1), high: tuya.enum(2)})],
[101, 'keep_time', tuya.valueConverterBasic.lookup({'10': tuya.enum(0), '30': tuya.enum(1), '60': tuya.enum(2), '120': tuya.enum(3)})],
[12, 'illuminance', tuya.valueConverter.raw],
[102, 'illuminance_interval', tuya.valueConverter.raw],
],
},
extend: [
// A preferred new way of extending functionality.
],
};

module.exports = definition;

I tried to include this in the tuya file but until now. no success. How can I find out what the correct datapoints are?

Regards,
erwin

@asgothian
Copy link
Collaborator

asgothian commented Feb 5, 2025

  • Place the code in a .js file which you save to the zigbee adapter data directory (where the shepherd.db is)
  • enter the name of the file as “external converter” in the adapter configuration.
  • start the adapter and check the log for error / warning ,essages relag4d to the file

A.

P.s. check the adapter configuration page - there is an entry field for external converters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants