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

Linkind Button Wireless Switch Support #949

Closed
SirGc opened this issue Mar 10, 2021 · 7 comments
Closed

Linkind Button Wireless Switch Support #949

SirGc opened this issue Mar 10, 2021 · 7 comments

Comments

@SirGc
Copy link

SirGc commented Mar 10, 2021

Issue

The button is not supported.
There is one button. Similar to the Aqara wireless switch. According to the Amazon listing (https://www.amazon.com/gp/product/B07V5VLRNL), it supports a one tap event and a tap and hold event.

Log Messages

Homebridge Log Event:

Phoscon: /sensors/7: warning: ignoring unknown ZHASwitch sensor {"config":{"battery":82,"group":"16394","on":true,"reachable":true},"ep":1,"etag":"93a83746da23e90f65f9b2b6b3729462","lastseen":"2021-03-10T22:45Z","manufacturername":"lk","mode":1,"modelid":"ZBT-DIMSwitch-D0001","name":"Switch","state":{"buttonevent":1002,"lastupdated":"2021-03-10T22:45:51.996"},"swversion":"2.22","type":"ZHASwitch","uniqueid":"08:6b:d7:ff:fe:fc:a4:39-01-1000"}

DeConz INFO Log Event:
This is for one tap

[INFO] - Button 2002 - ZBT-DIMSwitch-D0001, broadcast to: 0x400A, endpoint: 0x01, cluster: ONOFF (0x0006), action: Off, payload: None, zclSeq: 77

This is for the next one tap

[INFO] - Button 1002 - ZBT-DIMSwitch-D0001, broadcast to: 0x400A, endpoint: 0x01, cluster: ONOFF (0x0006), action: On, payload: None, zclSeq: 98

This is a tap and hold

17:15:07:802 [INFO] - Button 1001 - ZBT-DIMSwitch-D0001, broadcast to: 0x400A, endpoint: 0x01, cluster: LEVEL_CONTROL (0x0008), action: Move up, payload: 007F0000, zclSeq: 114
17:15:07:948 skip binding for attribute reporting of ep: 0x00 cluster 0x1000 (end-device might sleep)
17:15:08:948 skip binding for attribute reporting of ep: 0x00 cluster 0x1000 (end-device might sleep)
17:15:09:948 skip binding for attribute reporting of ep: 0x00 cluster 0x1000 (end-device might sleep)
17:15:10:623 [INFO] - Button 1003 - ZBT-DIMSwitch-D0001, broadcast to: 0x400A, endpoint: 0x01, cluster: LEVEL_CONTROL (0x0008), action: Stop, payload: 0000, zclSeq: 115

Debug Files

Homebridge Log file: https://d.pr/f/bk7YB8

@SirGc SirGc changed the title Linkind Button Linkind Button Wireless Switch Support Mar 10, 2021
@ebaauw
Copy link
Owner

ebaauw commented Mar 13, 2021

I don't understand: this is a one-button device, but deCONZ exposes two buttons?

Linking dresden-elektronik/deconz-rest-plugin#2321.

ebaauw added a commit that referenced this issue Mar 13, 2021
- Add support for Hue wall switch module, see dresden-elektronik/deconz-rest-plugin#4566;
- Add support for Linkind 1-Key Remote Control, see #949.
@SirGc
Copy link
Author

SirGc commented Mar 14, 2021

Yes there’s only one physical button. That looked like the relevant lines from the log. Is there a better way I could give you more info about the device?
I looked at that other linked issue. It sounds like the same button. I’m new to working in DeConz, but I’m willing to learn and help getting any info you need.

@ebaauw
Copy link
Owner

ebaauw commented Mar 14, 2021

Support in v0.13.2, but only for the first button. I think the Off and Move Down commands should be mapped to 100x as well, but this needs to be fixed in deCONZ.

@SirGc
Copy link
Author

SirGc commented Mar 15, 2021

Ya. This worked great. Are you able to map deCONZ button 1002 and 2002 to the same Homekit single press button? The Long press works perfect how you have that configured.

ebaauw added a commit that referenced this issue Mar 16, 2021
Workaround for deCONZ bug exposing Linkind 1-Key Remote Control as two buttons, see #949.
@ebaauw
Copy link
Owner

ebaauw commented Mar 16, 2021

Actually, I can (with considerably less effort than I feared). Not too happy about this, though - it really should be fixed in deCONZ.

@ebaauw
Copy link
Owner

ebaauw commented Mar 16, 2021

In v0.13.3.

@SirGc
Copy link
Author

SirGc commented Mar 17, 2021

I created an issue with deCONZ: dresden-elektronik/deconz-rest-plugin#4598

Thanks for your help @ebaauw

@ebaauw ebaauw closed this as completed Mar 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants