dresden-elektronik / deconz-rest-plugin

deCONZ REST-API plugin to control ZigBee devices
BSD 3-Clause "New" or "Revised" License
1.9k stars 502 forks source link

eWeLink ZG-2001 2 Channel ZigBee Switch DC5-32v #5541

Closed DubbyMcDubs closed 2 years ago

DubbyMcDubs commented 2 years ago

Device

Screenshots

image

Basic

01: image 02: image

Identify

image

Groups

image

Scenes

ON/OFF

image

Mimiix commented 2 years ago

Can you please add all screens?

DubbyMcDubs commented 2 years ago

Can you please add all screens?

Which additional screens would you like?

Smanar commented 2 years ago

Hello, wich one deconz version are you using ? Can you use the last one (that support DDF) ?

DubbyMcDubs commented 2 years ago

v2.12.6

Qt: 5.11.3 GCC: 8.3.0 (C++ 201402)

Commit: d39d01 Firmware: 0x26660700

Smanar commented 2 years ago

So you are on HA too ? Can't use a recent one ?

DubbyMcDubs commented 2 years ago

I’m not sure what HA is, but if you have a link to download the version you want me to run I will install.

On Sat, 4 Dec 2021 at 5:06 am, Smanar @.***> wrote:

So you are on HA too ? Can't use a recent one ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dresden-elektronik/deconz-rest-plugin/issues/5541#issuecomment-985723819, or unsubscribe https://github.com/notifications/unsubscribe-auth/AANCHFCVIZ6DZUAQZBEXL6DUPEBL7ANCNFSM5JECG3EQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Smanar commented 2 years ago

HA = home automation, they use docker so they always have older versions. What is your OS and your installation method ? You need to switch to beta branch and just update package, it will use the lastest version

Mimiix commented 2 years ago

Home assistant *

DubbyMcDubs commented 2 years ago

No I am not using that. I use homebridge. Rasbian.

Smanar commented 2 years ago

Home assistant *

Oupssss, sorry.

So on pure raspian, no problem to use the beta version. You have the procedure here to switch to beta branch https://phoscon.de/en/conbee2/install#raspbian

A short description about the DDF here https://github.com/dresden-elektronik/deconz-rest-plugin/wiki/DDF-cheat-sheet

Try to start a DDF and show the preview or say where you are blocked.

For information you will need to drag and drop 2 on/off plugin unit, one by endpoint (the 0x01 and the 0x02). And use the cluster 0x0006 (on/off) , attribute 0x0000 (onoff)

DubbyMcDubs commented 2 years ago

Thank you.

I have updated it to the beta version and can see the DDF edidtor successfully.

I have made the changes but they dont appear to be taking effect in deCONZ, retaining its existing configuration. Are there any more steps? Attempted to repair but same issue, it still appears as two lights instead of outlets, however when I right click on the device in deConz app and select "Edit DDF" it auto selects the correct DDF file I saved.

Here is the preview:

{ "schema": "devcap1.schema.json", "manufacturername": "eWeLink", "modelid": "ZB-SW02", "product": "ZB-SW02", "sleeper": false, "status": "Gold", "path": "/devices/eWeLink/zb-sw02.json", "subdevices": [ { "type": "$TYPE_ON_OFF_PLUGIN_UNIT", "restapi": "/lights", "uuid": [ "$address.ext", "0x01" ], "items": [ { "name": "attr/id" }, { "name": "attr/lastannounced" }, { "name": "attr/lastseen" }, { "name": "attr/manufacturername" }, { "name": "attr/modelid" }, { "name": "attr/name" }, { "name": "attr/swversion" }, { "name": "attr/type" }, { "name": "attr/uniqueid" }, { "name": "state/on", "refresh.interval": 5 }, { "name": "state/reachable" } ] }, { "type": "$TYPE_ON_OFF_PLUGIN_UNIT", "restapi": "/lights", "uuid": [ "$address.ext", "0x02" ], "items": [ { "name": "attr/id" }, { "name": "attr/lastannounced" }, { "name": "attr/lastseen" }, { "name": "attr/manufacturername" }, { "name": "attr/modelid" }, { "name": "attr/name" }, { "name": "attr/swversion" }, { "name": "attr/type" }, { "name": "attr/uniqueid" }, { "name": "state/on", "refresh.interval": 5 }, { "name": "state/reachable" } ] } ] }

DubbyMcDubs commented 2 years ago

UPDATE:

It appears to only take effect when Control panel is set to "Strict". After that it seems to take effect even after restarting deConz and that setting reverting back to "Disabled". Is that expected?

Also had a number of crashes when removing sub-devices/units and then hot loading. Hot loading in DDF disabled mode also only seems to work when adding devices but crashes when removing. This again is once you have tricked it into use the DDF by running at least once in strict mode.

Smanar commented 2 years ago

It appears to only take effect when Control panel is set to "Strict". After that it seems to take effect even after restarting deConz and that setting reverting back to "Disabled". Is that expected?

IDK for the strict, it need to work with the "Normal", but yes it s disabled at every restart, the feature is still beta, it s a security to don't broke a network.

Also had a number of crashes when removing sub-devices/units and then hot loading. Hot loading in DDF disabled mode also only seems to work when adding devices but crashes when removing. This again is once you have tricked it into use the DDF by running at least once in strict mode.

Crash ? deconz is closing with segmentation fault error ?

DubbyMcDubs commented 2 years ago

It appears to only take effect when Control panel is set to "Strict". After that it seems to take effect even after restarting deConz and that setting reverting back to "Disabled". Is that expected?

IDK for the strict, it need to work with the "Normal", but yes it s disabled at every restart, the feature is still beta, it s a security to don't broke a network.

Also had a number of crashes when removing sub-devices/units and then hot loading. Hot loading in DDF disabled mode also only seems to work when adding devices but crashes when removing. This again is once you have tricked it into use the DDF by running at least once in strict mode.

Crash ? deconz is closing with segmentation fault error ?

I will give it another go using normal to make sure but I did try a few times with no result until I switched to strict.

Yes it is crashing without presenting any errors.

Smanar commented 2 years ago

And BTW there is a command to force DDF be enabled "dev-test-managed" https://github.com/dresden-elektronik/deconz-rest-plugin/wiki/deCONZ-command-line-parameters

github-actions[bot] commented 2 years ago

As there has not been any response in 21 days, this issue has been automatically marked as stale. At OP: Please either close this issue or keep it active It will be closed in 7 days if no further activity occurs.

github-actions[bot] commented 2 years ago

As there has not been any response in 28 days, this issue will be closed. @ OP: If this issue is solved post what fixed it for you. If it is not solved, request to get this opened again.

cobch commented 2 years ago

Hi @DubbyMcDubs I was wondering if you managed to make working the relay with deconz? I will need one like that to make a project for my projector. Great to hear if I can order one soon. Thanks!

DubbyMcDubs commented 2 years ago

Hi @DubbyMcDubs I was wondering if you managed to make working the relay with deconz? I will need one like that to make a project for my projector. Great to hear if I can order one soon. Thanks!

Hi @cobch, yes I did get it working using the recommendations above, so that it appears inside Homebridge correctly. I also ended up writing a custom plugin for Homebridge to make it appear as garage doors. I have not made it public yet, but may in the future.

While the relay is very good and works well, one thing to look out for is the double firing of the output when it is using its one shot mode. Sometimes it stops my doors when opening and closing. My fix is to control it myself in the code.

Are you going to use this to trigger your projector to turn on? Home theater is my main hobby so may be able to help you acheive that without using the device, as there are many options.

cobch commented 2 years ago

Great to hear. My plan is to use the interlock mode for running an linear actuator dc motor in order to drawn my UST projector from the wall to the desire distance. I will create a custom drawer so it does not need to be far from the wall when I am not looking a movie... I will order the same model and keep in touch with you in the futur if I have problem with deconz (-; Thanks a lot for your answer!

carryonrewardless commented 11 months ago

Did you need to do anything special to get this device to pair in Deconz? I am using a Conbee II but have not had success with pairing.

Smanar commented 11 months ago

Realy old issue ^^ You have tried the DDF ?

carryonrewardless commented 11 months ago

Sorry. I don't understand how I can use the DDF editor when it has not established a connection by the pairing process. Are the some steps I need to know to do this when not paired? I have tried with Deconz and also ZHA in Home Assistant. Is there another approach I could take to get this device paired? Thanks

Mimiix commented 11 months ago

Sorry. I don't understand how I can use the DDF editor when it has not established a connection by the pairing process. Are the some steps I need to know to do this when not paired? I have tried with Deconz and also ZHA in Home Assistant. Is there another approach I could take to get this device paired? Thanks

Please open a topic on the forums:)