Open effoc opened 1 month ago
https://github.com/Koenkk/zigbee2mqtt/issues/22844#issuecomment-2270195989
Copy this in to you're /config/zigbee2mqtt/configuration.yaml
homeassistant: true external_converters:
ZC-LP01.js
Make i file under it and name it ZC-LP01.js /config/zigbee2mqtt/ZC-LP01.js
Coppy this in to you're file
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;
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