Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
11.77k stars 1.64k forks source link

[New device support]: MOES Tuya ZigBee Smart Sliding Window Pusher TS0601 #23591

Open effoc opened 1 month ago

effoc commented 1 month ago

Link

https://vi.aliexpress.com/item/1005006923987304.html?gatewayAdapt=glo2vnm

Database entry

Device type EndDevice Zigbee Model TS0601 Zigbee Manufacturer _TZ3210_5rta89nj Support status Null (how_to_add_support) IEEE Address 0x94b216fffee5f184 Network address 0x60CE / 24782 Power Battery Interview completed True

Comments

Im way to stupid for this tried the guide to logg the device bur no succes. Dont know if this is to any help https://community.hubitat.com/t/moes-tuya-zigbee-smart-sliding-window-pusher/139006

External definition

const {identify, battery, iasZoneAlarm} = require('zigbee-herdsman-converters/lib/modernExtend');

const definition = {
    zigbeeModel: ['TS0601'],
    model: 'TS0601',
    vendor: '_TZ3210_5rta89nj',
    description: 'Automatically generated definition',
    extend: [identify(), battery(), iasZoneAlarm({"zoneType":"generic","zoneAttributes":["alarm_1","alarm_2","tamper","battery_low"]})],
    meta: {},
};

module.exports = definition;
effoc commented 3 weeks ago

https://github.com/Koenkk/zigbee2mqtt/issues/22844#issuecomment-2270195989

Copy this in to you're /config/zigbee2mqtt/configuration.yaml

homeassistant: true external_converters:

const tuya = require('zigbee-herdsman-converters/lib/tuya'); const exposes = require('zigbee-herdsman-converters/lib/exposes'); const e = exposes.presets; const ea = exposes.access;

const definition = { fingerprint: tuya.fingerprint('TS0601', ['_TZ3210_5rta89nj']), model: 'ZC-LP01', vendor: 'Moes', description: 'Sliding Window Pusher', options: [exposes.options.invert_cover()], fromZigbee: [tuya.fz.datapoints], toZigbee: [tuya.tz.datapoints], exposes: [ e.cover_position().setAccess('position', ea.STATE_SET), ], meta: { tuyaSendCommand: 0x04, tuyaDatapoints: [ [102, 'state', tuya.valueConverterBasic.lookup({CLOSE: tuya.enum(0), OPEN: tuya.enum(1), STOP: tuya.enum(2)})], [104, 'position', tuya.valueConverter.coverPosition], [114, 'state', tuya.valueConverterBasic.lookup({CLOSE: tuya.enum(0), OPEN: tuya.enum(1), STOP: tuya.enum(2)})], ], }, extend: [ tuya.modernExtend.dpBattery({dp: 4}), ], };

module.exports = definition;