-
Notifications
You must be signed in to change notification settings - Fork 507
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 request - TS0601 / TZE200_nkjintbl #2879
Comments
I raised #2884 today but I've just re-powered my switch and read the data from it via the deCONZ GUI and it's identical to yours (the latter bit of the manufacturer name is per-device I think); Mine are Lonsonho-branded but they are also branded as Lerlink and Zemismart. There are tonnes of these things around so it'd be great to get them in deCONZ. |
But they are light, so they can work natively, the device is not visible at all in the API ? If you are sure the device is not present in the API, can you re-lanch deconz in debug mode, perhaps we have a missing information than block inclusion. |
I appreciate we are having a cross platform discussion as I’m also discussing this on Discord but how do we check if the device is in the API and as I also mentioned, the device isn’t showing any clusters to allow the device to be controlled (e.g. on/off) - is that normal? |
OK still learning but I think calling http://x.x.x.x:xxxx/api/XXXXXXXXXX/sensors is how you call the API directly? If so, no, the device isn’t there. I’ve also checked the light list (as I’d seen it mentioned the switch presents itself as a light) but it’s not there either. |
Yes was exactly that. So can you run deconz in debug mode and make a new inclusion pls ? Edit: No information how this remote make request to other devices ? |
I seem to have an email for a reply that’s no longer here. The last email was about a code fix and testing... I’m fairly competent compiling the source if I can test it for you? |
Yep, I have edited my post. I m searching info on other zigbee projecy atm. |
Great, thank you so much for looking into this. If I can do anything I’m happy to help. As I mentioned on Discord I have the 2 and 3 switch models so can test those if/when you find a solution. |
Found this article on decoding the Tuya cluster format; It’s linked from the zigbee2mqtt repository so you’ve probably already stumbled upon it but adding here for anybody else who is interested. |
Yep it s that , I m on a modification on xml file to test. We will use the Ef00 cluster. |
Ok so now there is job for you ^^ https://github.com/Smanar/deconz-rest-plugin/blob/master/general.xml It's just an xml file to edit, so you just need a text editor and reload deconz. If I m right on your node on cluster EF00 previously "unknow" you will have now something new. Status : always 0 For the moment you can only send command, not receive them, ofc the switch need to be wired with a bulb to test. I m not sure at all for values, for the data for exemple IDK if you need to use hexa or not. |
There's a typo (I think?) in your cluster ID (0xfc00) which I presume should be 0xef00 - amended and reloaded and the cluster shows up. |
Oups my bad, Wrong number Smanar@d2498dc |
n/p I manually amended it when I saw it looked odd. Cluster is there now. Will see what it does. |
Will be hard with random mode, sorry. But later I will make something to retreive value from the device, will be easier to find missing information. |
Tried sending some data in both decimal and hex and the device didn’t respond I’m afraid. I will have a play later when my kids have gone to bed. |
You most likely need to have a binding for that cluster as well, otherwise you don't necessarily see everything. |
Yep, but this command will at least turn the light off or on, even without return. I don't have enought time today, but tomorrow I will make the code write some log according to cluster return, will be usefull, because using "magic number" ..... |
Ok so first try https://github.com/Smanar/deconz-rest-plugin/tree/tuya If someone can try this code ? Realy experimental, but nothing hard to understand. With this code, you will have debug line in log with informations when you press a button on the device, try to mimic the value in the deconz GUI. |
So I'm running deCONZ with the debug options? What level is required? From the wiki; deCONZ --dbg-info=1 --dbg-aps=1 --dbg-zcl=1 --dbg-zdp=1 ...but that seems very busy - is that level necessary? |
I m using -dbg-info=1 for my debug message. All my log will start by "Tuya debug" and a number, you can use that as filter. You haven't problem for compilation ? Because I haven't tested the code on my side, so I can have make mistake. |
No it compiled fine. Going to go and connect the light and see what I get back. |
If I grep the output by "Tuya debug" will that capture what we're looking for? Even with -dbg-info=2 the output is very chatty. EDIT: -dbg-info=1 is much less busy. |
NP, I think "-dbg-info=1" is enought for my log, you can try "=0" on other, IDK the defaut value. But yes I know, if you have lot of devices, it s a real problem. |
Mmm I'm not seeing any debug output from the switch.
|
No, you can use the general.xml you want, better to use the modified one. And no you don't need to delete and re-include the device, and from the link it works without bind. You have take the code in the tuya branch ? not the master ? When you use the GUI to try to send a command, you have error message ? |
So;
I don't get any Tuya related debug at level 1 or 2. |
Wait a momnt. Not compiling.
Imho 'setManufacturerName' must be instead. |
Ha right setManufacturerName is for light and setManufacturer for sensor, but why a difference ? |
So need to switch branch to 'tuya' back, right? |
It s the official PR, the other, "tuya2" have too much change, but ATM they are the same. |
Kind of a necroposting :) I've also tried .so which I successfully run three weeks before upgrade. but with same result. |
Tuya code is still in waiting list (with switch modification for exemple)
This is worrying. If yes, do you have log when you have restarting deconz ? |
Ha yes there is one more thing to do with last version deconz > version 82 Now user can edit themself button value, in a json file. So on new deconz version you need to copy the file button_maps.json
But it don't prevent node be loaded, so this can't cause your issue. |
I'm run 2.05.81, so must be ok without button_maps.json. |
All the lightnode part was skipped. You light device are all from the same manufacture ? Manufacture code = 0x0000 or 0x1002 |
No, manufacturers different, but most devices have Manufacturer code 0x0000 or 0x1002. But there is one smart plug with |
I have made another branch "tuya3" with more debug line. |
Nothing. No "debugtuya" at all May be something in DB layer changed in 81 -> 82. |
Yeah you realy have something bad. The log "DBG_Printf(DBG_INFO, "Debugtuya 1");" is at the start of the fonction, before the tuya code, you need to have this one. You haven't an old backup ? (database backup) ? |
I did DB backup just before upgrade. |
Tried with DB from backup. Same result, no "Debugtuya" in log. Yep. Master branch have the same issue. No LightNodes at all. |
You are the only one with this issue for the moment, so I don't think at a compatibility problem. ATM you have lightnode with version 81 but not with version 82 ? But if you have lighnode in your database (I can check inside if you are not sure) and nothing appear in log it's strange. |
I think I am only one who did this mix :) I'll make screenshot for clusters. |
There is too some problem on an old 82 version but corrected ATM > #3273 |
Update! I've got "Debugtuya"! |
You have too the problem on sensor ? Lot of them miss the name. Because you miss so much thing in your log like
In fact I realy don't see any log about the database (except the first one), it s like you are not using database at all.
|
I do not think I have sensors problem too. Some of them are reporting, I think same which names appeared - MotionSensor1 and MotionSensor2. RestAPI show full sensors set. btw, for comparsion. log from starting .81 deconz. Looks the same, except LightNodes: |
Set DBG_INFO level2. Some of blackmagic. Restarted deConz. Near of 4:07 I started "Add new lights" from Phoscon webapp, and start join on SmartSocket3, and almost all of LighNodes added back! But the magic ends here. After deConz restart - all LighNodes disappeared again. Ahh. Sorry, previously wrong named "Unknown32" - it is OnOff created for Coordinator, not Router. |
And a last for today: Can it be related to deconz libs version in my build environment? Will test tomorrow. Sorry for inconvenience :( |
Lol, np, bad result are always usefull to prevent them. But yes compilation is system dependant, so if you compile the code on a system (software and hardware, virtual or real) it will be incompatible on another. |
IDK too :) |
Hey,
I got new zigbee wall switches, but they are not supported by deconz.
Is there any chance to add support for those switches?





The text was updated successfully, but these errors were encountered: