-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
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
Local External converter for covers _TZE200_g5xqosu7 #7308
Comments
Hi @Koenkk, the same happens to me, I am developing a converter for Smart Circuit breaker TOQCB2-80.
I think the problem is in the following line of the converters:
I have checked that this file extend is not longer present in the lib folder of your source repository. thank you. |
Hi Sorry @Koenkk, Problem solved removing the line const extend = require('zigbee-herdsman-converters/lib/extend'); I imagine is not longer needed. Sorry for disturb you. |
@true9741 :) You are treasure! You came to this discussion as a gift for me :) I'm not that skilled IT and don't know how you figured it out but it works for me as well! |
Good that you found the issue, please make a PR to add out-of-the-box support for these devices 😄 |
@true9741 :) You are treasure! You came to this discussion as a gift for me :) I'm not that skilled IT and don't know how you figured it out but it works for me as well! |
@Koenkk this is the final converter that woks with _TZE200_g5xqosu7 curtain motor const fz = require('zigbee-herdsman-converters/converters/fromZigbee'); const definition = { |
Added, thanks! Changes will be available in the dev branch in a few hours from now. |
Dear @Koenkk , I set up an external converter for my curtains since natively are not supported in Z2M. I got it up and working yesterday. This morning I install a the new update for Zigbe2mqtt and the curtain motor came "unsupported" again. It seems that the update caused the issue. I can't confirm that but I didn't do any changes to my setup only the Z2M update that popped up in HA. Here is my converter. Can you please check where may be the problem, please?
'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 tuya = require('zigbee-herdsman-converters/lib/tuya');
const definition = {
// Since a lot of TuYa devices use the same modelID, but use different datapoints
// it's necessary to provide a fingerprint instead of a zigbeeModel
fingerprint: [
{
// The model ID from: Device with modelID 'TS0601' is not supported
// You may need to add \u0000 at the end of the name in some cases
modelID: 'TS0601',
// The manufacturer name from: Device with modelID 'TS0601' is not supported.
manufacturerName: '_TZE200_g5xqosu7',
},
],
model: 'TS0601_new',
vendor: 'TuYa',
description: 'Cover motors',
fromZigbee: [tuya.fz.datapoints],
toZigbee: [tuya.tz.datapoints],
configure: tuya.configureMagicPacket,
options: [exposes.options.invert_cover()],
exposes: [
e.cover_position().setAccess('position', ea.STATE_SET),
e.enum('reverse_direction', ea.STATE_SET, ['true', 'false'])
.withDescription('Reverse the motor direction'),
],
meta: {
tuyaDatapoints: [
[1, 'state', tuya.valueConverterBasic.lookup({'OPEN': tuya.enum(0), 'STOP': tuya.enum(1), 'CLOSE': tuya.enum(2)})],
[2, 'position', tuya.valueConverter.coverPositionInverted],
[3, 'position', tuya.valueConverter.coverPositionInverted],
[5, 'reverse_direction', tuya.valueConverterBasic.lookup({'true': tuya.enum(0), 'false': tuya.enum(1)})],
],
},
};
module.exports = definition;`
Thank you.
The text was updated successfully, but these errors were encountered: