Skip to content
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

Trying to get support for new switch #2340

Closed
anonomouse opened this issue Jan 18, 2020 · 100 comments · Fixed by #3119
Closed

Trying to get support for new switch #2340

anonomouse opened this issue Jan 18, 2020 · 100 comments · Fixed by #3119

Comments

@anonomouse
Copy link

The switch i am trying to add pair is a 6A-RC-ZAB-H0
They come with an Ecosmart bulb, i have several so am willing to send one out to someone smarter than myself to get these implemented. Bulb and remote combo was $9 USD so it seems like a very inexpensive option.

@jensflorian
Copy link

Is this the Zigbee 3.0 Leedarson switch you mentioned ? https://zigbeealliance.org/zigbee_products/leedarson-4keys-remote-controller/

Did you reset the remote before pairing with DeConz? https://fccid.io/2AB2Q6A-RC-ZAB-H0/User-Manual/Users-Manual-3703128 If nothing shows up in the deConz GUI, I would also attempt to touchlink the device with a lamp already included and post the usual screenshots (https://github.com/dresden-elektronik/deconz-rest-plugin/wiki/Request-Device-Support) here.

@anonomouse
Copy link
Author

Yes that is the switch in question, I have tried pairing / resetting remote and bulb combo many times.
the bulb and remote will function together (out of network). While pairing the remote the bulb drops from deconz so i can not pull any info for you sorry. Also if i go to add the bulb back into deconz the remote stops functioning.

@Smanar
Copy link
Collaborator

Smanar commented Jan 20, 2020

It's something normal, you can't pair the bulb wit the switch/remote without deconz else they leave the deconz network.
You need to pair the switch, pair the bulb, and put the bulb on the same group than the remote.
But you need lot of thing before that.
first of them is pair the switch with deconz, it can be invisible on phoscon, so you need to take a look in deconz.

@anonomouse
Copy link
Author

I have looked in deconz gui an do not see any unknown devices, i have tried pairing a different remote, same model, to the bulb and i also tried to the usb stick directly, i have not been able to find the device.

@thedannymullen
Copy link

thedannymullen commented Feb 20, 2020

This the same remote, I believe the cluster info is included in the issue #2181

#2181

I believe the needed info might be included. I have the switch sited in 2181 and it is from ecosmart.

@anonomouse
Copy link
Author

anonomouse commented Feb 20, 2020 via email

@thedannymullen
Copy link

I was hoping these could be added. Apparently they have not yet been. The other thread appeared to have info but no work was done that I am aware of.

@anonomouse
Copy link
Author

anonomouse commented Feb 21, 2020 via email

@thedannymullen
Copy link

@jensflorian @Smanar the cluster info is in Issue #2181. Is there more info needed to add this device?

The device request form states something about a debug log, is this required or suggested.

@Mimiix
Copy link
Collaborator

Mimiix commented Jun 5, 2020

It seems this issue is inactive / resolved. If it is not, please re-open or create another issue!

@Mimiix Mimiix closed this as completed Jun 5, 2020
@raz0rf0x
Copy link

raz0rf0x commented Jun 7, 2020

This issue is not resolved. Remote cannot be paired to deconz. Please reopen and find a solution to the problem.

@Smanar
Copy link
Collaborator

Smanar commented Jun 7, 2020

Hello, can you make the same capture than in the other issue to compare the model id for exemple ?

@thedannymullen
Copy link

Screenshot 2020-07-02 08 57 35
homedepot-remote

Here are cluster info capture for this remote. Let me know if I need to provide another one.

@Smanar
Copy link
Collaborator

Smanar commented Jul 2, 2020

Ok the switch already included is the "ZBT-Remote-ALL-RGBW", it s the one with color.
The one you have seem easier, and yes I think the cluster list will be usefull.

@anonomouse
Copy link
Author

anonomouse commented Jul 2, 2020 via email

@thedannymullen
Copy link

@Smanar I did not fully understand your response. Did I provide the correct cluster information?

@Smanar
Copy link
Collaborator

Smanar commented Jul 2, 2020

Yep sure, but the cluster list will be usefull too.
It appear when you click on the second circle in the node title, you already have opened it to access basic attributes.

@thedannymullen
Copy link

thedannymullen commented Jul 3, 2020

Screenshot from 2020-07-03 07-11-00
Screenshot from 2020-07-03 07-11-33
Screenshot from 2020-07-03 07-12-24
Screenshot from 2020-07-03 07-12-31

@thedannymullen
Copy link

@Smanar hopefully I captured the correct ones this time. Please let me know if you need anything. See above post and this last screen shot.
Screenshot from 2020-07-03 07-18-54

@Smanar
Copy link
Collaborator

Smanar commented Jul 3, 2020

lol, so much capture this time ^^
I think I will need some more information later for the battery, but I have enought to start something this WE.
Just 2 questions.

  • I m seeing the color control cluster, but why ? this remote have just on/off, light +/ - and a strange button at bottom ?
  • I will need you compile the code and give me some return to have button values, do you have an Unix machine and not Hassio ?

@thedannymullen
Copy link

I have access to a Linux machine. Ubuntu or raspian.

I can get the info when needed if one of these machines will work.

@thedannymullen
Copy link

E5CCF13A-488A-4C59-9A0C-2B5331DB6035

Picture of remote. The light it was purchased had a color temperature of white, but no colors except white.

@Smanar
Copy link
Collaborator

Smanar commented Jul 4, 2020

Ha, it s not exactly the same I have see on the first link.
IDK if the color cluster will be usefull. So I have a code to test (but take care I haven't enought time to compile it on my side, so if you have compilation error, stop the procedure).

You have the procedure here https://github.com/dresden-elektronik/deconz-rest-plugin#install-deconz-development-package-optional-linux-only
Just change the step 1 by
git clone --branch LDS https://github.com/Smanar/deconz-rest-plugin.git

The battery will not work yet.
The device can be included in the API.
But need to configure button. For that Run deconz in debug mode "--dbg-info=2" will be enought, and press a button , you will see something like that

08:03:33:302 no button map for: XXXX ep: 0x01 cl: 0x0006 cmd: 0x0A pl[0]: 000

or if you are lucky

22:11:55:679 button 3001 0 long press

I just need the button you have pressed, if its long press or short press, and the message according to it.

@Smanar
Copy link
Collaborator

Smanar commented Jul 7, 2020

Some problem to compile code ?

@thedannymullen
Copy link

Thanks for asking. I have not had access to the computer I need. In the process of some home remodels.

I plan to try tomorrow. Apologize for the delay!

@thedannymullen
Copy link

@Smanar yes I had trouble to compile the code.

On my raspian-lite install, qmake was not installed so I installed the package: qt4-dev-tools. Qmake will run now but I get an error in the compile.

[11:08:39] mullen@treasurebox:~/deconz-rest-plugin$ qmake && make 
make -f Makefile.Release
make[1]: Entering directory '/home/mullen/deconz-rest-plugin'
/usr/lib/arm-linux-gnueabihf/qt4/bin/uic de_web_widget.ui -o ui_de_web_widget.h
g++ -c -pipe -Wno-attributes -Wno-psabi -Wall -O2 -Wall -W -D_REENTRANT -fPIC -DDECONZ_DLLSPEC=Q_DECL_IMPORT -DARCH_ARM -DARCH_ARMV7 -DGW_SW_VERSION=\"2.05.78\" -DGW_SW_DATE=1593861989 -DGW_API_VERSION=\"1.16.0\" -DGIT_COMMMIT=\"802188c20b12ace030de1bf71384aad0c32fd24d\" -DGW_AUTO_UPDATE_AVR_FW_VERSION=0x260b0500 -DGW_AUTO_UPDATE_R21_FW_VERSION=0x26420700 -DGW_MIN_AVR_FW_VERSION=0x26350500 -DGW_MIN_R21_FW_VERSION=0x26580700 -DGW_MIN_DERFUSB23E0X_FW_VERSION=0x22030300 -DGW_DEFAULT_NAME=\"Phoscon-GW\" -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I../.. -I../../common -Irelease -I. -o release/authorisation.o authorisation.cpp
authorisation.cpp:12:10: fatal error: QMessageAuthenticationCode: No such file or directory
 #include <QMessageAuthenticationCode>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile.Release:354: release/authorisation.o] Error 1
make[1]: Leaving directory '/home/mullen/deconz-rest-plugin'
make: *** [Makefile:34: release] Error 2

On my ubuntu install qmake was not installed I installed package qt5-qmake, but I still have a qmake not found issue.

@thedannymullen
Copy link

sorry it was a typo supposed to be line 3022:

sensor->modelId().startsWith(QLatin1String("Bell")) ||//<<--- my correction// Sage doorbell sensor
        sensor->modelId().startsWith(QLatin1String("ZBT-CCTSwitch-D0001")) || //LDS Remote
        sensor->modelId().startsWith(QLatin1String("902010/23"))) // bitron remote

@Smanar
Copy link
Collaborator

Smanar commented Jul 23, 2020

Yep, nice, corrected, thx.

@thedannymullen
Copy link

jul23-2.txt

Here is the latest attachment. I pressed buttons one at a time down the remote. I did a short press and a long press on button 2 and 3.

@Smanar
Copy link
Collaborator

Smanar commented Jul 24, 2020

86527-17:49:24:767 button 1002 Off

89101-17:49:27:840 button 2002 Dim short
92002-17:49:30:393 button 2001 Dim long press
93823-17:49:31:963 button 2003 Dim long release

111024-17:49:42:705 button 3002 Temperature short
125443-17:49:47:246 button 3001 Temperature 3
135542-17:49:48:920 button 3001 Temperature 2

155858-17:49:53:132 button 4001 Button 4

We miss an action or there is a bad one ? Button 1 and 4 haven't long press.

@thedannymullen
Copy link

The only question was if button 3 had a short and long press. If it only has a short press then looks correct. I tried to do a short press and long press on button 3. For long press I only see 3001 and not the 3003.

@Smanar
Copy link
Collaborator

Smanar commented Jul 25, 2020

So for button 3 you have short press = 3002, long press = 3001, but you have two 3001, one called "temperature 3" and the other called "temperature 2", one of them is not the long press release ?

@thedannymullen
Copy link

That is correct. The long press release does not show.
My next question is what is the next step? The remote appears to have most functions working.

@Smanar
Copy link
Collaborator

Smanar commented Jul 25, 2020

So if the long press doesn't show what is temperature 3 and 2 ?

The api just detect when you use a remote button, and you can do what you want with them using automation.
If you want to use native remote fonction, you need to check if a remote group is created using it (I don't remember if I have disabled it) put a bulb in the group and test the remote.

@thedannymullen
Copy link

I think the purpose of button three is to cycle through color temperatures on the light bulb. Like the button on the 5 button ikea remote.

I did not plan on using the native function but if available I see it can Be useful.
I can test the remote group if that’s is available. To do that do I need the remote added to phoscon or can I manage through the rest api?

@Smanar
Copy link
Collaborator

Smanar commented Jul 25, 2020

I hope not ^^.
On ikea the color cycle don't work with direct bind, not possible, it can only work using automation.

Just take a look on group in phoscon, if you have a group with the remote name, this group is created in same time than the remote inclusion.
Sometime group are hidden, but you can see them all using the old webapp (in phoscon/help/old webbapp)

So if the long press doesn't show what is temperature 3 and 2 ?

@thedannymullen
Copy link

I found the remote group in the old web app. I added a light to the group and tried the remote.

All the buttons work for the remote as expected with the light.
Button 1 is on/off
Button 2 is dimming it cycles through up then down.
Button 3 looks to be color temperature it cycles through the different whites.
Button 4 does the same thing as three but looks like it has some type of different white order.

So the remote appears to work with the light control as expected and will bind to the lights and work if deconz is not running.

I also see the different commands in the rest api like 1002/ 2002/ etc...

I would say looks like time for an initial release. What are your thoughts?

@Smanar
Copy link
Collaborator

Smanar commented Jul 28, 2020

I m waiting for you ^^.

I don't remember if the battery is working ?
I need to know wich one is the long press for button 3, to change name

125443-17:49:47:246 button 3001 Temperature 3
135542-17:49:48:920 button 3001 Temperature 2

@thedannymullen
Copy link

I will get the info later today. I can check if battery working, I have not looked in latest release.

@Smanar
Copy link
Collaborator

Smanar commented Jul 28, 2020

For battery return.
Check in deconz, the cluster 0001 POWER_CONFIGURATION_CLUSTER_ID, witch one attribute is used for battery level. (using "read" button and make the sensor awake)

@thedannymullen
Copy link

thedannymullen commented Jul 28, 2020

562a2e88-f1d6-4c50-8e02-82ffa1fb39de.pdf
Screenshot from 2020-07-28 11-45-22
longpressonly.txt
shortpressonly.txt

I uploaded 4 files.

  1. Picture of power config with battery. Please let me know if you need more information.
  2. short press only. In the short press only file you will see temperature short this shows when I short press
  3. long press only. In this file you will see temperature 2 and temperature 3. These two items appear to toggle when I long press.
  4. Manual for remote and light. Page 5 discusses memory button(4), page 3 has button map. I posted for information only, I am uncertain if it provides any information that is useful. I downloaded to try to see what the intended button use was.

@Smanar
Copy link
Collaborator

Smanar commented Jul 28, 2020

Ok, so I think the battery is working, check in the Json but I think you will have it using the attribute 0x021.

I have updated the code for Button text (when you press them), but don't loose your time with it if the battery is not working yet.

long press only. In this file you will see temperature 2 and temperature 3. These two items appear to toggle when I long press

It s not long press and release ? Or first long press is "temperature 2" and the second one is "temperature 3" ?

@thedannymullen
Copy link

It appeared that first long press was two then the second was three. I could be fooled by logs, but that was what it appeared to be.

@Smanar
Copy link
Collaborator

Smanar commented Jul 28, 2020

And It when you press or when you release ?
And I m sorry but there is no event beetween

151759-11:10:20:309 button 3001 Temperature 2
175473-11:10:25:580 button 3001 Temperature 3

So It will be long press OR release.

But you have choose, do you want a toggle return, for exemple 3002/3003/3002/30003 or always the same value as return 3002/3002/3002 ?

@thedannymullen
Copy link

thedannymullen commented Jul 29, 2020

I would leave the number the same 300x every time. If a long press isn’t different then shortness press then I would say 3003.

I looked further using the rest api. I am not sure what the deconz standards are for these things, I dont have a specific preference.

Here is what I noticed:

if last button pressed was not 3 then the long press appears to be detected on the press.

If the last button press was 3 then the long press appears to show on the release.

The battery does work in the rest api json.

@Smanar
Copy link
Collaborator

Smanar commented Jul 29, 2020

I would leave the number the same 300x every time. If a long press isn’t different then shortness press then I would say 3003.

Done , but you will have a value for long press and one for short press, but now no toogle value for long press, always the same now.

I have finalized the code (and removed all debug line), if you want to try the last version.

@thedannymullen
Copy link

I will try the code tomorrow. Sorry for delayed response been tied up with more home construction.

@thedannymullen
Copy link

@Smanar I checked all commands in the rest api. They appear to be working!

Thanks for all the help!

@Smanar
Copy link
Collaborator

Smanar commented Aug 2, 2020

NP, this device have take long time, thx for patience ^^.
I will make the PR in 3/4 days, if you find other problems ...

@anonomouse
Copy link
Author

anonomouse commented Aug 2, 2020 via email

@thedannymullen
Copy link

thedannymullen commented Aug 3, 2020

NP, this device have take long time, thx for patience ^^.
I will make the PR in 3/4 days, if you find other problems .

I should say thanks for your patience also! I am new at compiling this code but you did a great job walking me through!! Thanks @Smanar

@Smanar Smanar mentioned this issue Aug 5, 2020
@Mimiix Mimiix linked a pull request Aug 5, 2020 that will close this issue
@mrpreston28
Copy link

Hi there, I'm having trouble connecting this remote.
Setup is Deconz docker with conbee II stick
I have remotes, lights, and other sensors connected and working, so I do know how to connect things, just cant get this one to pair.
Any help would be much appreciated.
Thanks

@SwoopX
Copy link
Collaborator

SwoopX commented Dec 24, 2020

Can you please open a seperate issue for this one? The information we request there should help us to better understand and evaluate your situation. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants