How to see Tuya TS0201 battery percentage #9400
Replies: 5 comments 8 replies
-
Nobody to help me? Please?
|
Beta Was this translation helpful? Give feedback.
-
Hi OToussaint, I got three of those sensors and the same issue. Two of them report the values as null: { And for one of them the values are completly missing: { Can someone solve this problem? |
Beta Was this translation helpful? Give feedback.
-
Same problem here.
Version:
Device: https://www.aliexpress.com/item/1005003687672406.html?spm=a2g0o.order_list.0.0.21ef1802AswzGJ Recognizes as: |
Beta Was this translation helpful? Give feedback.
-
Do any 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 ota = require('zigbee-herdsman-converters/lib/ota');
const e = exposes.presets;
const ea = exposes.access;
const tuya = require('zigbee-herdsman-converters/lib/tuya');
const defintion = {
fingerprint: [
{type: 'EndDevice', manufacturerID: 4098, endpoints: [{ID: 1, inputClusters: [], outputClusters: []}]},
{manufacturerName: '_TZ2000_a476raq2'},
],
zigbeeModel: ['TS0201', 'SNTZ003'],
model: 'TS0201',
vendor: 'TuYa',
description: 'Temperature & humidity sensor with display CUSTOM',
whiteLabel: [{vendor: 'BlitzWolf', model: 'BW-IS4'}],
fromZigbee: [fzLocal.TS0201_battery, fz.temperature, fz.humidity],
toZigbee: [],
exposes: [e.battery(), e.temperature(), e.humidity(), e.battery_voltage()],
configure: async (device, coordinatorEndpoint, logger) => {
// uncomment this if it doesn't work
const endpoint = device.getEndpoint(1);
await endpoint.read('genBasic', ['manufacturerName', 'zclVersion', 'appVersion', 'modelId', 'powerSource', 0xfffe]);
},
};
module.exports = definition;
external_converters:
- ext_converter.js
|
Beta Was this translation helpful? Give feedback.
-
Problem is solved with the external converter. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I've a TuYa TS0201 (on the box it is MIR-TE100-TY but according to other websites, it is the same)
In the payload, there is the battery info but it is empty.
Oct 29 16:06:14 hassbian npm[26336]: Zigbee2MQTT:info 2021-10-29 16:06:14: MQTT publish: topic 'zigbee2mqtt/tuya_sensor1', payload '{"battery":null,"humidity":63.3,"linkquality":94,"temperature":22.2,"voltage":null}'
Did I miss something? Or is my device faulty?
zigbee2mqtt@1.21.2
P.S.: In log_level: debug
Beta Was this translation helpful? Give feedback.
All reactions