-
Notifications
You must be signed in to change notification settings - Fork 503
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
[Device Support Request] Zemismart 3 Gang Remote Switch (2nd attempt) #3524
Comments
Hello, so I have made a mistake on PR and removed a part of code, can you try this code pls. To test it, you need an Unix OS, and take a look here https://github.com/dresden-elektronik/deconz-rest-plugin#install-deconz-development-package-optional-linux-only with a modification for step 1
|
Thanks Smanar, I will try to set up a test environment. I have done this in the past. This has caused problems as I only have one Conbee and have to bring down the production environment. Some of the devices get confused and have trouble pairing properly when I try to restore them to production. |
If you have an unix machine, no danger, just make a backup of the file lib (in other folder), and you just need 10s to rollback, the code don't change anything to c,onfig. |
Hi Smanar, Should I uninstall the stable version of deconz? |
Hello, no depend of the deconz version you have, but there is a major modification on deconz core for button gestion (use now a json file), so I think it s better if you can install the last beta (if you have no issue with it) Then after yes https://github.com/dresden-elektronik/deconz-rest-plugin#install-deconz-development-package-optional-linux-only So it will be for you
If you want to avoid re-installation, you can make a backup of the file "libde_rest_plugin.so", in another folder, so if you have problem, the rollback just take 30s. |
Thanks for the instructions. Test environment is working using your branch for the plug-in. The Zemismart switch now appears in the Phoscon App as three "On/Off lights." I think they are supposed to act like a switch with each of the three buttons having single press, long press, and hold. |
Sorry my bad, was wired device in my mind. Pls make a new try, will be faster
|
Ok. I loaded your new code. Not sure exactly what to check for testing. Each of the three buttons still show up in Phoscon App as an on/off light. |
You have deleted them, before the new inclusion ? |
Ok I think I have found the problem, the tuya hack was working if you have only 1 endpoint, can you make another try pls ? |
Hi Sameer, I then put the switch in pairing mode. The Phoscon app does not detect or display when I choose add new lights, switches, or sensors. However, the switch is visible as a node in the deConz gui, not connected to other nodes. The light on the switch continues to flash indicating that it did not leave pairing mode. I see the cluster info for three different on/off switches. Separately, I connected the switch to a non-deConz controlled Zigbee network. This also detected the three clusters as on/off switches. I didn't see a way to detect single press, long press, hold. |
Can you make a try.
The device will to be visible in sensor part but invisible in phoscon. |
I m sorry but I need to finalize the code sunday if I want it be in next beta. I just need to know if the "switches group" is working (mean all buttons are working in the same entry), else I will make a roolback to have 1 sensor device by endpoint. |
@Smanar release will be today. |
testing now |
When you say "device will be visible in sensor part". Do you mean in the API? |
I performed a git pull from the Tuya branch listed above. The switch shows up in the sensors section of the API. Three entries.
} |
@Mimiix I have ask manup, I have until tonight. @stevewull It s strange, on other issue the user have the 3 entries grouped with the same code, BTW if it s working it s the principal, thx. |
As there hasn't 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. |
You have a battery device ? |
I have exactly same 3button controller as in this case: |
Ok is the battery powered one, you nned to have a sensor entry with "buttonevent". |
Not normal at all, you haven't 0x0006 cluster so to have on/off .... |
Yes. You're right. Lights not working. |
It s not your fault ^^. |
@Smanar Okay I did what you asked, now I have the manufacturer's name. |
All seem fine. |
Okay it seems to work now, though it is still invisible in Phoscon (not a big deal for me). I also have the "double event" issue. Thanks for your help ! :) |
@clovisdivay I don't think it will change something, but can you show me the long during the double event too pls. |
Right, hard to see something usefull. |
Sorry, no :( I use deconz as a plugin in Home Assistant (I think it uses pydeconz) and I can't chose the version. |
Hello @Smanar, first of all, thank you all the work on these Tuya switches! I have a Zemismart 3gang switch and tried everything you described, but never saw the sensor in the Rest API. Might it be because of the manufacturer name? Mine is "_TZ0300_qzjcsmar", which is not in your list. Model identifier is correct, TS0043. |
If is a battey one, yes. |
Just added here #4157 |
Awesome, that was quick! |
Yep, you probably need to make 2 inclusions, without deleting the old one (you can have a light entry created first) |
Depend of the version you are using. So if you use this branch it will work, (no need to remake the inclusion) Edit : |
Really appreciate your help, thanks a lot! I already use this branch with the changes in button_maps.json and de_web_plugin.cpp. This is how I did it: Included it two times in Phoscon, see it as a switch (not as light, not as sensor). It seems, that everything is recognized correctly, just the buttonevent has no value at all.. Here a screenshot from my iobroker: |
Tuya are boring to include, it s ok now ^^, stop to include it. Your method is good, the result too, else you will be not able to see it in the API, you are not using docker ? Else if you have the GUI, can you take a look in log when pressing a button ? in deconz/help/log with "info" and "info_l2" |
Ok, so I think I got it to work now. Thank you again @Smanar (is there a way to support your work?)! If anyone has the same issues, this is all I did:
|
Hello @Smanar, Thanks and sorry for the newbie question. Jiri |
I think it will be in the master in 1 week, but after need to wait for the master be official. |
Thank you for the details. I'm running in under HA in a container so will need to look into how to "patch" it. I'm not that familiar with that |
Hu ^^, I had a disagreement recently with an user about docker, so it s possible to patch the file inside the docker, but realy not easy. And honnestly I m not familiar with docker too. |
Thank you Smanar, I'll play with other wired switches and will look into the docker patching later if still needed. |
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. |
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. |
Device
Listed here: https://zigbee.blakadder.com/Zemismart_ZM-ZS3.html
Purchased here: https://www.aliexpress.com/item/4000460643839.html?aff_platform=link-c-tool&cpt=1579460387259&sk=_sPA71V&aff_trace_key=1ea588879adf4a71b69472fcc8469bea-1579460387259-01187-_sPA71V&terminal_id=5ab3b3bf703c438dac102dcfef054d7e
I have the three gang version
Screenshots
Switch 01:
Switch 02:
Switch 03:
The text was updated successfully, but these errors were encountered: