-
Notifications
You must be signed in to change notification settings - Fork 483
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
Missing button map for ZGRC-KEY-009 #3397
Comments
Hello, wich one deconz version have you ? Do you have the json file "button_maps.json" (in /usr/share/deCONZ/devices) ? |
Hi Smanar, |
I don't know at all how work docker. |
You really gotta need to find the file
As the first option is also the directory where your database resides and therefore, should be persistent, you "just" gotta find out where that is in your case. The debug output above looks very promising. Once you found the file, we can guide you for the amendment. |
It took me a little tinkering, but I've got the button_maps.json file and opened it in my notepad++ editor. I can read it a bit, and I'm guessing I need to add the switches and use the debug code. But a little guidance would be nice :) |
There is a line
add your model id inside. |
I downloaded the file and edited it. But a big disadvantage for me is that I'm running deCONZ as an addon in HomeAssistant. Their gituhub is: https://github.com/home-assistant/hassio-addons/tree/master/deconz Original version: Compared to the app version: The rest of the file is the same. I used a compare tool, and the only difference are the missing lines "modelids": and "map":. But to test it all, I placed 'your' github version of the button_maps.json file inside my docker, but that doesn't seem to work When I restart my docker, all files are back to their original version. Right now I'm trying to figure out if there's a way to just restart the deCONZ service, but didn't find a way for that yet. But I did want to post a follow-up. I was under the impression that you guys work closely with the deCONZ-addon for HA - guys, but apparently, that's a wrong assumption. I'm curious if you guys can still assist me now, or if I should take this matter to the people at https://github.com/home-assistant/hassio-addons/tree/master/deconz and make a case there? Thanks a lot for all the help so far! |
Ok so bad luck, they are 1 version late. |
Ok, so from what I see, we would need a new button map for this one. Based on the information so far, it should look like this:
However, I added some assumptions in there. Can it be that you only used short presses? You should also check long and double presses. I added some anticipated commands for your 2nd button row, but that needs to be verified and eventually missing stuff added for the other buttons. The same goes for your other switch. Unfortunately, you're still missing the latest introduced change in this regard so I'm afraid you'll have to wait a little bit longer for this to be available for you. |
You are right. I only did short presses on the buttons. On the ZGRC-KEY-007 switch, I did tried a double press, but that resulted in two registered single presses. So my assumption is that there isn't a double-press option. And knowing missing out on the latest version being the reason for not working correctly, Isn't that bad. Just testing my patience. Seeing how you guys pick up this request for a new switch, makes me happy and confident about the choice I made for Zigbee with deCONZ. |
Hi,
None of the buttons report logging when I double-press them. I've posted ll single press logs in earlier posts, but if it's more convenient for you guys, I can make one big post, containing all logs. To be complete, here's the log from the ZGRC-KEY-007. I'll also update the specific post on that switch.
Double-press on this switch also doesn't register anything. If there's any more info you guys need, or if I need to do some testing, please let me know! |
On the first glimpse, it contains the missing parts. Thanks! Will have a deeper look later and let you know. |
Hi, Thanks in advance! |
You're welcome. For the time being, you need to swap in your local file (button_maps.json). |
I'm so sorry to bug you great guys again! But with the latest deCONZ update in my HomeAssistant the ZRG-007 / ZRG-009 swap was implemented. There unfortunattely is still one problem. Three buttons don't work yet. The error in the debug log is different. The first time it was The three buttons with errors are 5, 7 and 8. Button5: (5002) Button7: (7002) Button8: (8002) I notice the last logs are the same. Is there anything I can test / check? Maybe you need more information? Thanks again for all the help! |
There was indeed a typo easily overlooked for button event 5002, already fixed. For the scenes buttons, I don't really get what the payload of those is. You could give it another go and add |
My apologies it took so long. But I just restarted deCONZ with the |
Hm, I gotte need to see the full ZCL payload for those events to fully understand what's going on and what might be required in addition. A PR of mine was just recently merged to exactly provide that in future. So I guess we need to postpone this a bit and wait for HA to adopt to the upcoming version. Then, we can give it another shot with hopefully a clearer picture. |
Describe the bug
I've got two wall switches that appear to be quite common in Europe. They fit in a normal wall frame and can replace traditional switches. They're marketed under several names, but deCONZ recognizes them as Sunricher ZGRC-KEY-XXX. In a old version of deCONZ I could use the 'deconz_event' service listener in HA, but now they aren't sending the switch presses anymore.
They are recognized correctly in deCONZ (and obviously HA), but the button map seems off.
I've posted this issue in another thread (#1286) and the user SwoopX advised me to file a bug report.
Steps to reproduce the behavior
If the problem is reproducable, list the steps here:
Expected behavior
I'd like to see a button pressed event in HA / deCONZ
Screenshots
Not applicable.
Environment
deCONZ version: 2.05.84 / 14-9-2020
Firmware version: 26660700
deCONZ Logs
There are two rows with each four buttons.
When I press the 'ON' (Top left) button, this debug log is written:
[INFO] - No button map for: ZGRC-KEY-009 endpoint: 0x01 cluster: ONOFF (0x0006) command: ON (0x01) payload[0]: 000
When I press the 'OFF' (Top right) button, this debug log is written:
[INFO] - No button map for: ZGRC-KEY-009 endpoint: 0x01 cluster: ONOFF (0x0006) command: OFF (0x00) payload[0]: 000
When I press the second button from the top on the left (Brighter), this debug log is written:
[INFO] - No button map for: ZGRC-KEY-009 endpoint: 0x01 cluster: LEVEL_CONTROL (0x0008) command: STEP_WITH_ON_OFF (0x06) payload[0]: 000
When I press the second button from the top on the right (Dim), this debug log is written:
[INFO] - No button map for: ZGRC-KEY-009 endpoint: 0x01 cluster: LEVEL_CONTROL (0x0008) command: STEP_WITH_ON_OFF (0x06) payload[0]: 001
When I press the third button from the top on the left (White), this debug log is written:
[INFO] - No button map for: ZGRC-KEY-009 endpoint: 0x01 cluster: COLOR_CONTROL (0x0300) command: MOVE_TO_COLOR_TEMPERATURE (0x0A) payload[0]: 0B9
When I press the third button from the top on the right (Color control), this debug log is written:
[INFO] - No button map for: ZGRC-KEY-009 endpoint: 0x01 cluster: COLOR_CONTROL (0x0300) command: MOVE_TO_COLOR (0x07) payload[0]: 0CE
When I press the bottom button from on the left (S1), this debug log is written:
[INFO] - No button map for: ZGRC-KEY-009 endpoint: 0x01 cluster: SCENES (0x0005) command: RECALL_SCENE (0x05) payload[0]: 000
When I press the bottom button from on the right (S2), this debug log is written:
[INFO] - No button map for: ZGRC-KEY-009 endpoint: 0x01 cluster: SCENES (0x0005) command: RECALL_SCENE (0x05) payload[0]: 000
Additional context
It's an eight-button switch. I've also got a two-button version, and I've posted a separate bug report (#3396) for this one.
I've used ZHA for a few weeks, but it was so unstable, opposed to the 1 1/2 year + stability of deCONZ, I quickly built everything back. ZHA recognized the button actions correctly, so I hope it can be fixed in deCONZ too.
If any more info is needed, please let me know.
The text was updated successfully, but these errors were encountered: