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

Tuya TS0012 Switch (qs-zigbee-s04-2c-l) #5347

Closed
igreg opened this issue Oct 4, 2021 · 18 comments
Closed

Tuya TS0012 Switch (qs-zigbee-s04-2c-l) #5347

igreg opened this issue Oct 4, 2021 · 18 comments

Comments

@igreg
Copy link

igreg commented Oct 4, 2021

Device

  • Product name: qs-zigbee-s04-2c-l (made by Lonsonho)
  • Manufacturer: _tz3000_llfaquvp
  • Model identifier: TS0012
  • Device type :
    • Light
    • Switch (2 Gang, no neutral, wired switch)

The device does not show in the Photoscon app. I used the app to make the node join the cluster; to be able to query the data with the DeCONZ application. There seem to be other manufacturer for this model (TS0012) so perhaps it is just a mapping that's missing somewhere?

Screenshots

lonsonho qs-zigbee-s04-2c-l

Node Info

Basic

Basic Cluster

Identify

Identity Cluster

Alarms

n/a

Device Temperature

n/a

Groups

Groups Attributes

Scenes

Scenes Attributes

On/Off

01
On/Off 01
02
On/Off 02

@SwoopX
Copy link
Collaborator

SwoopX commented Oct 5, 2021

Could you please change the title to something more talkative? 😉

@Smanar
Copy link
Collaborator

Smanar commented Oct 5, 2021

I think it s because your device is an end device and the other a router.
Have you a linux machine with full OS to test code modifications ?

@igreg igreg changed the title Device name Tuya Switch qs-zigbee-s04-2c-l Oct 6, 2021
@igreg
Copy link
Author

igreg commented Oct 6, 2021

I think it s because your device is an end device and the other a router. Have you a linux machine with full OS to test code modifications ?

I have a mac on which I could install a linux VM. My setup is just a raspberry pi with home assistant so I'm not working with deconz manually; but if there is a guide I can follow I should be able to get a dev environment up and running.

I did come across this notion of router vs end-devices while I was looking for an issue matching my problem but I couldn't figure out whether 1) my devices were actually end-devices and 2) if this was a limitation to get them working with deconz/photocon.

I can toggle the state of the switch manually, from the deconz interface so I feel hopeful that it can work somehow?

@igreg igreg changed the title Tuya Switch qs-zigbee-s04-2c-l Tuya TS0012 Switch (qs-zigbee-s04-2c-l) Oct 6, 2021
@igreg
Copy link
Author

igreg commented Oct 6, 2021

I actually have the same exact problem with the 1-gang version of the switch.

  • Product name: 1CH Zigbee Switch Module-L (no neutral line)
  • Manufacturer: _TZ3000_jir4araar
  • Model identifier: TS0011
  • Device type :
    • Light
    • Switch (1 Gang, no neutral, wired switch)

Pretty much the same than above except it does not have the On/Off "Light mode 2"

@Smanar
Copy link
Collaborator

Smanar commented Oct 6, 2021

Ok so first try

You have the procedure here https://github.com/dresden-elektronik/deconz-rest-plugin/wiki/Compiling-the-REST-plugin-for-device-specific-testing
So for you, after having installed deconz :

sudo apt install deconz-dev
git clone --branch tuya_switch_7 https://github.com/Smanar/deconz-rest-plugin.git
cd deconz-rest-plugin
qmake && make -j2
sudo cp ../libde_rest_plugin.so /usr/share/deCONZ/plugins

This code just add the manufacture 0x1141 in whitelist to permit "light" device creation for end device.

@github-actions
Copy link

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.

@github-actions github-actions bot added the stale label Oct 28, 2021
@github-actions
Copy link

github-actions bot commented Nov 4, 2021

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.

@github-actions github-actions bot closed this as completed Nov 4, 2021
@blazejpawlak
Copy link

Is anyone planning on adding this switch to supported ones in the upcoming release?

@Smanar
Copy link
Collaborator

Smanar commented Dec 2, 2021

Nop, have not found someone to test the last change, and ATM adding new device using c++ code is disabled, waiting for DDF core.

@blazejpawlak
Copy link

I can do that. Is this enough to complete it?

@Smanar
Copy link
Collaborator

Smanar commented Dec 3, 2021

If you have a recent deconz version I can help you to make a DDF file to use this device (I think the core is advanced enought for this kind of device).

The problem is ATM all new device addition are blocked, to not add code that will be removed when ddf will be ready. So even If I finish the PR, not sure it will be validated.

@blazejpawlak
Copy link

That would be great. I'm running deconz v2.12.06 / 8/19/2021 with firmware 26680700.

About adding the device to a releasable version — is it because some major deconz overhaul is coming?

@Smanar
Copy link
Collaborator

Smanar commented Dec 4, 2021

About adding the device to a releasable version — is it because some major deconz overhaul is coming?

Yes https://dresden-elektronik.github.io/deconz-dev-doc/modules/ddf/

Are you able to update your deconz version to the lasted beta to test DDF file ? (V v2.13.2)

@blazejpawlak
Copy link

I'll have to make a clone of my RPi's sdcard and try. Soonest I can try is after the 20th Dec. I'll keep you posted.

@koenheemskerk
Copy link

Have you made progress?

@Smanar
Copy link
Collaborator

Smanar commented Mar 4, 2022

Wana make a try with DDF ? https://github.com/dresden-elektronik/deconz-rest-plugin/wiki/DDF-cheat-sheet
Just drag and drop 2 on/off light, set one on the endpoint 0x01 and the second on the endpoint 0x02

You will probably state return, but will be the next step.

@blazejpawlak
Copy link

I can confirm that this switch now works with deconz in version 2.20.01 / 9/19/2022 with Conbee II running firmware in version 26780700.

One funny thing though, when I press both buttons of the physical "dumb" switch connected to this device via L1 and L2 only one of them turns on connected to L2. When I press only one switch (connected to either L1 or L2) and then another one both lights come up.
So if I press both buttons of the switch (connected to L1 and L2), only L2 light comes up. Individually (pressing one button of the switch, waiting a second, then pressing the other button) both lights come up.

Ideas?

@Smanar
Copy link
Collaborator

Smanar commented Feb 21, 2023

Yep, an other issue was created here #6325

For your issue IDK, have made a search on z2m, it don't seem this device have something special (a tuya unlock sequence for exemple)

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

5 participants