zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

TuYa TS0202 motion sensor no battery + tamper

Open dcboy87 opened this issue 5 years ago • 2 comments

What happened

I paired this motion sensor, everything works so far, exept tamper and Battery level. It seems, this device doesn't support both values. Also in frontend, where power source is indicated, theere is only a flashing red % symbol

grafik

Edit: now after about 4 hours it seems to have the correct battery value, also the red % symbol is gone!

What did you expect to happen

  • ~~showing right power source~~
  • working tamper or remove tamper
  • ~~correct battery level or remove battery level~~

How to reproduce it (minimal and precise)

pair and see

Debug info

Zigbee2MQTT version 1.21.1-dev commit: 27b36b31

Coordinator type zStack30x

Coordinator revision 20190425

Frontend version 0.6.7

dcboy87 avatar Sep 19 '21 09:09 dcboy87

You should try this: HOW TO SUPPORT NEW DEVICES

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 e = exposes.presets;
const ea = exposes.access;

const definition = {
    zigbeeModel: ['TS0202'], 
    model: 'TS0202', 
    vendor: 'undefined',
    description: 'motion sensor', 
    fromZigbee: [fz.ias_contact_alarm_1_report, fz.battery], 
    toZigbee: [], 
    exposes: [e.battery(), e.occupancy(), e.tamper(), e.linkquality() ], 
};

module.exports = definition;

adriannowaq avatar Sep 23 '21 06:09 adriannowaq

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Oct 24 '21 00:10 github-actions[bot]