We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://www.zigbee2mqtt.io/devices/ZB-Sm.html
don`t know how to find
I tried some external definition, but it doesn`t work.
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 tuya = require('zigbee-herdsman-converters/lib/tuya'); const legacy = require('zigbee-herdsman-converters/lib/legacy'); const e = exposes.presets; const ea = exposes.access; const definition = { zigbeeModel: ['TS0601'], model: 'TS0601', vendor: '_TZE200_xtrnjaoz', description: '5', fromZigbee: [legacy.fromZigbee.tuya_cover, fz.ignore_basic_report], toZigbee: [legacy.toZigbee.tuya_cover_control, legacy.toZigbee.tuya_cover_options], onEvent: tuya.onEventSetTime, // Add this if you are getting no converter for 'commandMcuSyncTime' configure: tuya.configureMagicPacket, exposes: [ e.cover_position().setAccess('position', ea.STATE_SET), e.composite('options', 'options', ea.STATE_SET) .withFeature(e.numeric('motor_speed', ea.STATE_SET) .withValueMin(0).withValueMax(255).withDescription('Motor speed')) .withFeature(e.binary('reverse_direction', ea.STATE_SET, true, false) .withDescription('Reverse the motor direction'))], meta: { tuyaDatapoints: [ [1, 'state', tuya.valueConverterBasic.lookup({'CLOSE': tuya.enum(2), 'STOP': tuya.enum(1), 'OPEN': tuya.enum(0)})], [2, 'position', tuya.valueConverter.coverPositionInverted], [3, 'position', tuya.valueConverter.coverPositionInverted], [4, 'opening_mode', tuya.valueConverterBasic.lookup({'tilt': tuya.enum(0), 'lift': tuya.enum(1)})], [7, 'work_state', tuya.valueConverterBasic.lookup({'standby': tuya.enum(0), 'success': tuya.enum(1), 'learning': tuya.enum(2)})], [13, 'battery', tuya.valueConverter.raw], [101, 'motor_direction', tuya.valueConverterBasic.lookup({'left': tuya.enum(0), 'right': tuya.enum(1)})], [102, 'set_upper_limit', tuya.valueConverterBasic.lookup({'start': tuya.enum(1), 'stop': tuya.enum(0)})], [107, 'factory_reset', tuya.valueConverter.setLimit], ], }, extend: [ // A preferred new way of extending functionality. ], }; module.exports = definition;
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Link
https://www.zigbee2mqtt.io/devices/ZB-Sm.html
Database entry
don`t know how to find
Comments
I tried some external definition, but it doesn`t work.
External definition
The text was updated successfully, but these errors were encountered: