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

New device support request: Linkind 1 key Remote Control / ZS23000178 #2321

Closed
madbrain- opened this issue Jan 15, 2020 · 28 comments · Fixed by #3073 or #3213
Closed

New device support request: Linkind 1 key Remote Control / ZS23000178 #2321

madbrain- opened this issue Jan 15, 2020 · 28 comments · Fixed by #3073 or #3213
Labels
Backlog This label is assigned if it is implemented later. Device Request

Comments

@madbrain-
Copy link

Hi,
thank you for this product, I really love it. Works great until now.
How can I add this device to Phoscon? It gets recognized in deconz:

Model ZS23000178
FCC ID 2ASHKZS23000178
https://www.amazon.de/dp/B07V53MLNT/ref=cm_sw_em_r_mt_dp_U_x3WhEbP0WFG06
bought it for about 10 € a few weeks ago

Bildschirmfoto vom 2020-01-14 22-30-21
Bildschirmfoto vom 2020-01-14 22-28-50
2020-01-14-222108_1280x1024_scrot

Here is a Log, that may be related to a push on the button:
22:38:59:921 APS-DATA.indication srcAddr: 0x04f8, srcEp: 0x01 dstAddrMode: 1, profile: 0x0104, cluster: 0x0006, lqi: 151, rssi: -72

But if I use the phoscon-app and search for new switches it doesn't get recognized. I assume, it has to be added to the API or soething like this?
Maybe I could help. I'm very interested in the Zigbee Bridge, maybe I could help to integrate the switch.

Let me know, if you need more information!

Thanks!
regards, Thomas

@madbrain- madbrain- changed the title Support for Linkind 1 key Remote Control / ZS23000178 New device support request: Linkind 1 key Remote Control / ZS23000178 Jan 28, 2020
@madbrain-
Copy link
Author

madbrain- commented Apr 8, 2020

I read somewhere, that if the search in Phoscon is active and the basic cluster gets read, some more Information are shown. I did that with this button and the output of the basic cluster changed:

image

Can somebody point me in the right direction, what has to be done to get this Button in phoscon / iobroker? Maybe I can do that on my own, but I can't find any documentation how to add a new device.

Thanks!
regards, Thomas

@Mimiix
Copy link
Collaborator

Mimiix commented Jun 6, 2020

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

@Mimiix Mimiix closed this as completed Jun 6, 2020
@madbrain-
Copy link
Author

madbrain- commented Jun 9, 2020

Hi @Mimiix,
it is not solved as I did never got an answer here. How can I help to integrate this switch?

edit: I can't reopen this issue

@Mimiix Mimiix reopened this Jun 9, 2020
@Mimiix
Copy link
Collaborator

Mimiix commented Jun 9, 2020

@madbrain- i can ;)

@SwoopX Is there anything that is missing?

@madbrain-
Copy link
Author

Thanks :-)

@SwoopX
Copy link
Collaborator

SwoopX commented Jun 9, 2020

Power configuration cluster would be helpful as well. Later on, we'd require some additional debug output from deconz for finetuning...

@madbrain-
Copy link
Author

Here is the power configuration cluster:

grafik

Thank you for your help!

@stale
Copy link

stale bot commented Jul 1, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jul 1, 2020
@madbrain-
Copy link
Author

What can I do to help with the integration? Can I find somewhere a developer documentation?

@stale stale bot removed the stale label Jul 1, 2020
@stale
Copy link

stale bot commented Jul 25, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jul 25, 2020
@Mimiix Mimiix added the Backlog This label is assigned if it is implemented later. label Jul 25, 2020
@stale stale bot removed the stale label Jul 25, 2020
@OrbitingOcelot
Copy link

I would also be interested in seeing support for this.

@SwoopX
Copy link
Collaborator

SwoopX commented Jul 29, 2020

Can someone compile the rest plugin and test?

@madbrain-
Copy link
Author

I can try it on the weekend. Great to hear some news! Thank you very much! :-)

@madbrain-
Copy link
Author

I tried to compile the plugin. I did the following:
sudo apt install deconz-dev
git clone https://github.com/dresden-elektronik/deconz-rest-plugin.git (master)
qmake && make -j2
cp ../libde_rest_plugin.so /usr/share/deCONZ/plugins
reboot

I assume the plugin got loaded? How can I check that?

But I can't see the device in the Phoscon App nor in the rest api.

@SwoopX
Copy link
Collaborator

SwoopX commented Aug 3, 2020

I assume the plugin got loaded? How can I check that?

I assume your deconz is still working, that's the check since you've overwritten your previously installed version of the plugin.

But I can't see the device in the Phoscon App nor in the rest api.

Yes, because it is not supported. I just asked if you can do it, not to do it 😉

@madbrain-
Copy link
Author

madbrain- commented Aug 4, 2020

I assume your deconz is still working, that's the check since you've overwritten your previously installed version of the plugin.

Yes, everything is working, as far as I can notice until now.

Yes, because it is not supported. I just asked if you can do it, not to do it wink

okay :-)

@SwoopX SwoopX linked a pull request Aug 7, 2020 that will close this issue
@SwoopX
Copy link
Collaborator

SwoopX commented Aug 8, 2020

Hey @madbrain-

Haven't forgotten about you, but was busy to finish a new feature. So, I got some code prepared for you to test now, but it will require some doings on your end.

Here are the steps to download and compile my version:

sudo systemctl stop deconz
sudo systemctl stop deconz-gui
git clone --branch linkind https://github.com/SwoopX/deconz-rest-plugin.git linkind
cd linking
qmake && make -j2
cp button_maps.json .local/share/dresden-elektronik/deCONZ/
sudo cp /usr/share/deCONZ/plugins/libde_rest_plugin.so /usr/share/deCONZ
sudo cp ../libde_rest_plugin.so /usr/share/deCONZ/plugins
/usr/bin/deCONZ --dbg-info=2 > debug

Then, start Phoscon sensor search and pair the button. Make sure to has been properly reset before. When the device has paired, do all button push variations the device should support. Note their order and ideally, what the button press should have done, if known.

@madbrain-
Copy link
Author

madbrain- commented Aug 9, 2020

Thank you @SwoopX ,
great to hear some progress, thank you very much!
I will try that immediately after I got my new disk. I had a disk failure on my pi and I am waiting for the new one.

@mralex07
Copy link

Hi, @SwoopX
I run latest deconz plugin in docker. There is what i can see in container terminal:
22:43:21:256 no button map for: ZBT-DIMSwitch-D0001 ep: 0x01 cl: 0x0006 cmd: 0x00 pl[0]: 000 -- first short click on button
22:43:21:955 no button map for: ZBT-DIMSwitch-D0001 ep: 0x01 cl: 0x0006 cmd: 0x01 pl[0]: 000 -- second short click on button
22:43:26:151 no button map for: ZBT-DIMSwitch-D0001 ep: 0x01 cl: 0x0008 cmd: 0x01 pl[0]: 000 -- long press on button
22:43:26:882 no button map for: ZBT-DIMSwitch-D0001 ep: 0x01 cl: 0x0008 cmd: 0x03 pl[0]: 000 -- release button

@SwoopX
Copy link
Collaborator

SwoopX commented Aug 21, 2020

Ah, crap. I blew it. Anyway, we can make it on point with that info. Thanks!

So, it has single, double and long press...?

@SwoopX SwoopX reopened this Aug 21, 2020
@mralex07
Copy link

has no double, just single and long press

@madbrain-
Copy link
Author

madbrain- commented Aug 24, 2020

Hi thank you all for the work. My deconz is working again. The instruction manual of the button says it has on/off/dimming:
"press the button to turn the light on or off. Keep pressing to dim the light to max/min brightness smoothly"

@SwoopX
Copy link
Collaborator

SwoopX commented Aug 30, 2020

@madbrain- @mralex07 This here implies that there's more commands the device can issue:

Keep pressing to dim the light to max/min brightness smoothly

As per feedback provided here: #2321 (comment) , the debug output translates into the following:

Off command - no button map for: ZBT-DIMSwitch-D0001 ep: 0x01 cl: 0x0006 cmd: 0x00 pl[0]: 000 -- first short click on button
On command - no button map for: ZBT-DIMSwitch-D0001 ep: 0x01 cl: 0x0006 cmd: 0x01 pl[0]: 000 -- second short click on button
Move up command - no button map for: ZBT-DIMSwitch-D0001 ep: 0x01 cl: 0x0008 cmd: 0x01 pl[0]: 000 -- long press on button
Stop command - no button map for: ZBT-DIMSwitch-D0001 ep: 0x01 cl: 0x0008 cmd: 0x03 pl[0]: 000 -- release button

In that sense, I'd at least expect to see in addition:

ep: 0x01 cl: 0x0008 cmd: 0x01 pl[0]: 001 -> Move down command
ep: 0x01 cl: 0x0008 cmd: 0x03 pl[0]: 001 -> Stop command for move down

Can you guys please double check the logs and try to force the move down? Maybe the manual gives hints on that. Please also take double press + hold into consideration.

@SwoopX SwoopX linked a pull request Aug 31, 2020 that will close this issue
@mralex07
Copy link

mralex07 commented Aug 31, 2020

Hi, @SwoopX
You are right, i`ve checked logs, here its are:
ep: 0x01 cl: 0x0008 cmd: 0x01 pl[0]: 001 -> first long press start
ep: 0x01 cl: 0x0008 cmd: 0x03 pl[0]: 000 -> release
ep: 0x01 cl: 0x0008 cmd: 0x01 pl[0]: 000 -> second long press start
ep: 0x01 cl: 0x0008 cmd: 0x03 pl[0]: 000 -> release

double press:
ep: 0x01 cl: 0x0006 cmd: 0x00 pl[0]: 000
ep: 0x01 cl: 0x0006 cmd: 0x01 pl[0]: 000

double press + hold (on second click):
ep: 0x01 cl: 0x0006 cmd: 0x01 pl[0]: 000
ep: 0x01 cl: 0x0008 cmd: 0x01 pl[0]: 001
ep: 0x01 cl: 0x0008 cmd: 0x03 pl[0]: 000

@mathieg2
Copy link

Hi - I have this device, It is detected in phoscon, but I'm unable to assign any actions to it - it seems I can only get it's battery level. Pressing the button does generate activity in debug log:

/usr/bin/deCONZ --dbg-info=2 >debug.log

Is there some instructions I can look up to find out if I am doing something wrong? I'm on version 2.09.

Graeme

@Mimiix
Copy link
Collaborator

Mimiix commented Jan 15, 2021

@mathieg2 phoscon needs to add support for it too.

You can use it with the rest api

@ebaauw
Copy link
Collaborator

ebaauw commented Mar 13, 2021

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

@SwoopX
Copy link
Collaborator

SwoopX commented Mar 22, 2021

@ebaauw

What should it be then? Twice short, long and hold on button 1?

"linkind1keyMap": {
            "vendor": "Linkind",
            "doc": "1 button remote ZS232000178",
            "modelids": ["ZBT-DIMSwitch-D0001"],
            "map": [
                [1, "0x01", "ONOFF", "ON", "0", "S_BUTTON_1", "S_BUTTON_ACTION_SHORT_RELEASED", "On"],
                [1, "0x01", "ONOFF", "OFF", "0", "S_BUTTON_2", "S_BUTTON_ACTION_SHORT_RELEASED", "Off"],
                [1, "0x01", "LEVEL_CONTROL", "MOVE", "0", "S_BUTTON_1", "S_BUTTON_ACTION_HOLD", "Move up"],
                [1, "0x01", "LEVEL_CONTROL", "STOP", "0", "S_BUTTON_1", "S_BUTTON_ACTION_LONG_RELEASED", "Stop"],
                [1, "0x01", "LEVEL_CONTROL", "MOVE", "1", "S_BUTTON_2", "S_BUTTON_ACTION_HOLD", "Move down"],
                [1, "0x01", "LEVEL_CONTROL", "STOP", "0", "S_BUTTON_2", "S_BUTTON_ACTION_LONG_RELEASED", "Stop"]
            ]
        },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backlog This label is assigned if it is implemented later. Device Request
Projects
None yet
7 participants