Comments (7)
Hi @Koenkk, the same happens to me, I am developing a converter for Smart Circuit breaker TOQCB2-80.
In the log appears the following message:
error 2024-04-02 10:12:31: Failed to load external converter file 'toqcb2_80.js' (Cannot find module 'zigbee-herdsman-converters/lib/extend'
Require stack:
- /app/dist/util/utils.js
- /app/dist/util/settings.js
- /app/index.js)
error 2024-04-02 10:12:31: Probably there is a syntax error in the file or the external converter is not compatible with the current Zigbee2MQTT version
error 2024-04-02 10:12:31: Note that external converters are not meant for long term usage, it's meant for local testing after which a pull request should be created to add out-of-the-box s>
I think the problem is in the following line of the converters:
const extend = require('zigbee-herdsman-converters/lib/extend');
I have checked that this file extend is not longer present in the lib folder of your source repository.
thank you.
from zigbee-herdsman-converters.
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.
from zigbee-herdsman-converters.
@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!
Thank you so much.
Issue closed.
@Koenkk I'm still adjusting the converter for _TZE200_g5xqosu7. Want to make sure it'll adapt all features. Once I'm done and convinced all is OK I'll let you post you the file so you can release it.
Thank you.
from zigbee-herdsman-converters.
Good that you found the issue, please make a PR to add out-of-the-box support for these devices ๐
from zigbee-herdsman-converters.
@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!
Thank you so much.
Issue closed.
@Koenkk I'm still adjusting the converter for _TZE200_g5xqosu7. Want to make sure it'll adapt all features. Once I'm done and convinced all is OK I'll let you post you the file so you can release it.
Thank you.
from zigbee-herdsman-converters.
@Koenkk this is the final converter that woks with _TZE200_g5xqosu7 curtain motor
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 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'),
e.binary('motor_fault', ea.STATE, true, false),
],
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)})],
[12, 'motor_fault', tuya.valueConverter.trueFalse1],
],
},
};
module.exports = definition;
from zigbee-herdsman-converters.
Added, thanks!
Changes will be available in the dev branch in a few hours from now.
from zigbee-herdsman-converters.
Related Issues (20)
- Blitzwolf BSHP13 "No converter available for" HOT 1
- NodOn SIN-4-RS-20 - Add value `8` to `windowCoveringMode` HOT 1
- Vesternet VES-ZB-REM-013 multiple commands for on and off action HOT 1
- Incorrect attribute "occupancy" for iHORN LH03121 door contact sensor HOT 1
- Sonoff TRVZB attributes are not marked with device_category as configuration entities HOT 5
- New device template for SODA Circle S8 window handle `_TZE200_j7sgd8po` HOT 16
- The compiled zcl folder is missing. HOT 1
- Sonoff TRVZB exposes battery_low but never updates it HOT 2
- tuya ZG-204ZM setting motion detection mode fails (pull request #7553) HOT 6
- converter for Homr Multisensor
- Please add support for frient SIRZB-111
- Mรผller Tint GU10 blub is missing light entity HOT 1
- Fix /device/qa.ts definitions not loading HOT 1
- Add support for TS0601 _TZE200_d0yu2xgi LTECH CCT SE-20-250-1000-W2Z2 HOT 1
- Ubisys C4 - Commands not correctly sent to coordinator
- RTCGQ11LM is missing several values HOT 1
- Add support to Yale YMC420 HOT 1
- Support for Kwikset SMARTCODE_DEADBOLT_10 HOT 1
- Busch-Jaeger 6735/6736/6737: Make polling interval configurable HOT 10
- TUYA _TZ3000_ljhbw1c9 shown as battery powered
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zigbee-herdsman-converters.