-
Notifications
You must be signed in to change notification settings - Fork 499
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
Device request - Moes MS-105Z / _TZE200_la2c2uo9 #5152
Comments
Hello, do you have a linux machine to test code modification ? |
Not directly no, it is running in a docker container within a LXC container. It might be possible to directly compile within the LXC container but haven’t tried that yet. |
Yep if you can try, else if you can't, I can make the PR in blind mode (1 line to add), but I can't be sure it will work. You have the procedure with docker ? #4841 (comment)
|
Thank you, I will look into this tonight too see if I can test this in a docker test container. |
Ok so my bad, have forget some code lines, have updated the branch. If it relay don't work you are sure for typo I don't make mistake with I or L ? PS: |
Just checked the last update of the branch, but still it is recognized as fairy light and not as a dimmable light and the only action I can perform is switching it off. I deleted the existing entry and paired the device again, but no luck. The type number seems to be correct, I also crosse checked that already with the number in your commit |
Even after a new inclusion ? Can you share the device Json pls ? |
Yes even after a new inclusion, sometimes it also shows the general plug symbol and sometimes it shows the light symbol. |
Yep the git commit is the same. Have you tried 2 inclusion without deleting the device (to use previous data) ?
And with the same JSON ? The detection is event based, so it can be different at every inclusion, it depend of event order. Can you share the log during the inclusion if it still not working pls ? with "info" and "info_l2" ? |
Checked both by deleting and adding it as a new device as well as a 2nd time including it whilst it still exists. Both didn't succeed. Did a full reset of the gateway and started fresh with only adding this dimmer switch, but it is still recognized as a smart plug. This took a while because I had to move the dongle to a location where it could directly communicate with the dimmer switch. JSON file when recognized as smart plug: JSON when recognized as dimmer, with a dimmable light icon in the phoscon app: Attached a log file of adding the device in a clean environment after just starting the container, no other device present. |
The second one have worked, look at the JSON
This device can be a little boring to include, because the entry is created in database before having all data, it s for that the double inclusion can help.
But from log it seem working
So first you need to have the second Json, with the light icon in phoscon. But after that can you show log when using the device ? It s the 1 gang or the 2 gang you have ? |
Talking about boring and impossible to get connected, took me again half an hour to get the thing connected and recognized as dimmable light. Got it setup, but still I can only turn off the lights from the GUI, changing brightness doesn't work as well as turning on. Only physically I can turn them on. I have the 1 gang version In the log file, _deconztest_logs.txt, it seems that a cluster is called which doesn't exist:
The it doesn recognize physically turning on the lights:
After changing the brightness from the GUI it seems to complain about another cluster and also giving an API error:
|
Good news, you never need to re-include it now ^^
On log it do !
For "off"
Same when you tru to change the brighness
This error is normal when are using tuya cluster
You are sending the request to the device
Return from the device 816 *254 /100 = 207
Good value is set in the websocket.
This device don't use classic cluster, so it don't use 0x0006 or 0x0008, and not possible to use the tuya cluster with the GUI. So need to use third app or Phoscon.
Have added some code for this error
And ofc, no need to re-include the device, just restart deconz. |
Sorry my dutch spell correction was probably changing some words:
|
Yep, not possible to use the GUI for this device, he use the tuya cluster. You need to use direclty the API with phoscon or third app (but update your code first for the "transitiontime" error) |
Ahh ok, good to know. Give me an hour or so and I will update the container and retest. |
Ok updated the container with the latest commit and the error doesn't seem to come along anymore. And indeed control from home assistant is completely possible. Thank you for the support! |
Ok so all is working ? |
Yes, all is working! |
Hi, I was waiting for this fix for days, because i have several of those dimmers. I was always able to turn the light on and off through iobroker, just no dimming. The new release 2.12.5 does not fix anything for me though. I tried deleting&readding as well as 2-times-adding. What process part am I missing? My devices title Moes ZigBee Dimmer Module and require the N-wire. 10x times button press gets me to the paring mode (loud beeps). Is this the right thing? Maybe there are different devices with same id out there? Phoscon shows me the vendor as _TZE200_la2c2uo9 but the model always as Fairy lights. No matter how I try to add the light. Any ideas? |
Hello, yes, I think it s good, else you will not see the device in the API. Remember when you re-include a second time, don't delete the previous entry. Can you use the GUI ? |
Hi Smanar, But finally the JSON looks like this:
I was puzzled seeing that Dimmable light there. This morning ioBroker was also correctly reporting a bunch of new states for this light, including a dimmer level. So, it works now, but I don't really understand what has triggered the correct state, I have to repeat this with 8 more devices soon, maybe I can tell more after that. Did I coincidentally bought this one hard to pair device, or is this common with ZigBee implementations from different brands? And why is the light still announced as a Fairy light in phoscon (despite the icon showing a dimmable bulb)? |
Lol, magic ^^ No in reality it's something bad. The device inclusion is ATM event based, so code part are not trigger chronologically, and can depend of lot of thing, it s realy something chaotic. The tuya brand is not realy zigbee compliant, so need to use "hacks", and thoses hack depend of event order too. So it explain why full zigbee compliant device are easier to include, but can fail too. It's realy a weakness in deconz, but the "good" new, is the future API will be better to do that, so yes for the moment we are playing with "double inclusion without deleting with pray on pair day", waiting for something more robust. Don't delete previous entry can help because some code part can re-use old data previously get by deconz.
This is a phoscon problem, it s the application that choose to display this name, as you can see there is no "Fairy light" in the Json. |
Well, that answers all my questions to satisfaction: Thank you!
|
You have unlocked something I think. Explanation here #5868 And your logs mix 2 devices
and
|
@6Ocy6 or anyone else, how did you get Phoscon to see it as a dimmable light? My log shows the info below, and this even after trying to include it multiple times and even trying to delete and adding it again multiple times. It keeps labelling it as type smart plug. "16": { Did anyone try the steps below from @Smanar succesfully? Can try like the other user.
This can update existing device as the device is in permit join mode. Just tried the steps above from @Smanar but unfortunately within Phoscon nothing seems to change. |
Hello, can you try this DDF (I m using defaut value for the moment)
|
@Smanar , maybe a real newbee question but is this a new file or do I have to edit a specific file and can you please direct me to the right documentation on how/where to place a DDF file. I read you can do it through VNC to Deconz but am not sure. Thanks in advance. Contra --Edit-- I found you own explanation here: https://forum.phoscon.de/t/how-to-add-edit-a-ddf-on-home-assistant-using-text-editor/1839 |
And maybe this is the difference, my product number is not Moes MS-105Z but Moes MS-105 seeing it is a 1 gang and not a 2 gang. But I see that name nowhere in Deconz |
@Smanar , I have made a file in /usr/share/deCONZ/devices/moes called ms-105.json using apt-get update and apt-get nano to install nano and be able to edit the file. After that I used VNC to hot reload. Do I need to do anything else like re-add the device? |
I have just copied the issue title ^^
You have found other DDF in the folder ? (just to be sure you are on the good folder ?) And yes after you just need to re include the device and the DDF will be used to reconise it. |
@Smanar , check. I will re include the device first thing tomorrow morning and report back. Thanks in advance. |
@Smanar , yeah it is in a folder with multiple folder. I have created a new folder named moes and then created a file with the name ms-105.json and copies your content into it. Unfortunately it is not working, I even tried an extra re include again: |
Here it s phoscon ("fairy lights" don't exist in the API), can you take a look in the API |
It still reports as a smart plug: "18": { |
The DDF haven't worked. You are the 4th today with that .... Have you the complete deconz application ? with the GUI ? If it s still not working, can you do same but with loging enabled ? no need to share, just look for something usefull like an error message. Can try with "error" and "error_l2" then "DDF" "info" and "info_l2" ? BTW what is your deconz version ? |
I’ll check what you are asking when I get home tonight. But I was thinking that it may be file rights related. I will check that as well. |
IDK, I have so much problem with DDF not reconised thoses lasts days ... |
I'm running deconz in a docker. So I can VNC to it, don't know if that is the "GUI" you mean. I did a hot reload the first time and it did not work. I looked at the logging but I'm only seeing below in regards to the DDF change, so I don't think there is a real error there it's just not picking it up: 21:21:59:408 update ddf TS0601 index 44 Version info: Qt: 5.9.5 Commit: 28575b Rights wise it all seems to be ok as well. All files, even the new one are root root with rw-r-r. |
I haven't see this field
So the DDF have worked, you had not this field on the first json. Because I can see state/alert on the last json, and this field was removed from the DDF. Perhaps some field are not updated. |
I removed it from the phoscon GUI, but will try again but from deconz. |
Unfortunately the same result:
|
Ok so can you try with this DDF
Have tried on my side, can just use "hot relaod" (but will need to delete the device to remove the fake entry later) |
Same problem, deleted it in deconz and added it in phoscon: “20": { |
What is your deconz version ? Can you share logs with "DDF" just when making a "hot reload" ? (can use a screen capture) |
Arf, have tried too on my side with all debug, and can have only
So apart the path and file name with "info" there is realy nothing usefull on "hot reload". You are sure not having something new or strange on the API in the "light" section ? |
I’m sure, checked the GUI as well as the API Information page. |
I don't have more ideas, when you go on the DDF editor for this node, you can see "2 parts" on the left column ? |
I’ll update and try again, first without DDF and then with. —edit— updated my docker but am not getting further then stable version 2.15.3 Will test adding the dimm with and without DDF file tomorrow. |
Omg…. Updated deconz and only using the read basic attributes when adding new lights is clicked it is now showing as dimmable light without DDF. After a reload on HA it also shows a light there. It is now using a draft DDF: Sorry for using your time, but seeing my version was from 2022 and this thread was older I thought that my version was recent enough… |
DDF are something news that move a lot, a recent version is usefull for last features. But take care:
|
Your DDF got lost when creating the new docker seeing it is not located in the config folder. So I’m using another and just got the one entity and that one is working from Home Assistant so I’m happy :) |
Device
Screenshots
Node Info
Clusters
Basic
Groups
Scenes
Tuya specific cluster
OTAU
The text was updated successfully, but these errors were encountered: