-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
[Model Certification] - MOES Star Ring Curtain Switch #71
Comments
can you please switch to a development branch
restart plugin remove the existing pairing, in order to redo the Curtain switch pairing from scratch (make sure that no remaining widgets in Domoticz, and no device in the plugin) Then redo the pairing |
I did as requested: But it does not work. The device is still not optimized. The weird thing is that if I do a git show from my plugin directory I do see that I am on wip-stable7-7.1.13, but the plugin version from the UI is still at 7.1.012 [5298] even after a couple of restart commands. I might have done something wrong... I have included the export.json file from after the repairing. I have also included the _PluginZigbee_13.log, because we can see the latest commit included in the plugin, as well as the creation in domoticz issue (I had turned on in domoticz the accept new device to be sure before pairing): |
Kindly redo then you need to redo the pairing from scratch |
OK, that did it, I moved to 7.1.012 [5299]. Don't know if it can help, but I have other MOES curtain modules that work fine (TS130F-_TZ3000_1dd0d5yi), but for that place I needed a switch too so this is why I got a MOES Star Ring Curtain Switch. In domoticz the TS0601-Moes-Curtain does not display as the TS130F-_TZ3000_1dd0d5yi. It only has the Open/Close button, when the TS130F-_TZ3000_1dd0d5yi also has a progress bar like a dimmer switch, but maybe it's because it does not have this capability. I have included the export.json and the _PluginZigbee_13.log from the plugin. |
This is not the same MOES curtain module. This one is a cheap OEM from Tuya, which does not follow Zigbee standard, but which is a Tuya manufacturer implementation. Can you kindly enable debug Tuya0601 in the Tools->Debug Then use the Domoticz Widget to action Open, Stop, Close, Percentage Then drop the Plugin log here |
can you redo
and redo the pairing from scratch. I have update the Domoticz widget to be similar as your TS130F one ... |
Ok, I did all you asked. It's a bit better ! Now in domoticz the widget is the same as my MOES TS130F-_TZ3000. When I use the percentage bar from the domoticz widget it works if I do not pull it all the way to 0% or 100%. The other values do make the curtain move open or close. And in domoticz I get the log: I have attached the export.json file as well as the _PluginZigbee_13.logwith the debug for the tuya001 activated. |
Several points:
And then provides the plugin logs |
I have done the git pull and restarted the plugin. I have attached the _PluginZigbee_13.log. |
From the Log, when doing a set Level 0 or 100, it is translated by Domoticz into Close and Open, so we have a consistent behaviour. In the logs, I found a potential mismatch where I was expecting to use a Boolean type and it looks like it expects a bitmap data type. Can you |
Almost there ! |
If you can do a |
Just a couple of things are strange. I will probably give you too many info, so don't hesitate to tell me where to focus:
I have attached the _PluginZigbee_13.log. |
I push an update of the Device configuration so you need 5.302, as well as an update of the code. So you need to do :
For the calibration I'm afraid that you are right, I didn't understood how this one work. Do you have any documentation with the Module, which can then explain how calibration works. It looks like we need to put the module in calibration, the I guess you have to do some Open/Close, and then you have to stop the calibration. If that is the case, I would have to create a New Widget to put the module in Calibration or not. Your inputs are more than welcome |
Last update, please update
Then remove the existing Widget, and redo the pairing from scratch. Kindly check how Open/Close and Stop behave then You should have a Calibration Switch widget, If you put it to On, I guess you should do an Open, followed by a Close and finaly you can test the Level. Let me know and provide me the logs |
@adruet29 alors ca donne quoi ? |
Désolé je suis en déplacement jusqu'à ce soir, je ne pouvais donner de feedback plus tôt. J'essaie de faire ce soir si je ne rentre pas trop tard. |
I didn't see the calibration at first, so I did twice the delete of the device and repairing. |
what about the device documentation ? do they mentioned calibration ? |
I just pushed an update to use a different Data Type for Calibration. This could be good to test. I had a look to the log, and I see a progress from 99% to 64% and then it stopped because the blind was fully Open, and then vice-versa it went from 64% to 99%. So we have a calibration issue. Can you try with the latest update ( no need of re-pairing). However I have no clue what is the cailbration procedure. That is why the device documentation might give what is the overall procedure |
Your screenshot link did not work (you probably clicked too quickly on comment before the upload was finished ;) ), it points to this issue but no image. I have found another discussion where it seems that they hit the same issue with a workaround but no solution: Again, at this stage the device works well enough for me, don't need more features. But if you want I don't mind getting you one regarding all the time you spend for your wonderful work on this plugin. |
@adruet29 Can you try once more ?
then restart the plugin. No need for re-pairing Enable the Calibration, do Open/Close/Open, then Disable Calibration and try the PercentLevel Here after is 2 calibration mode ( Accurate and Quick) that seems available from the SmartLife App ![]() |
After git pull / upgrade /restarting the plugin the calibration switch does not work anymore from Domoticz. |
@adruet29 My mistake, sorry. Can you update and try again |
Ok, so now after update I was able to turn calibration On. Sent open/close/open commands, and switched off calibration. |
From the logs, I found a communication issue, which has nothing to do with the plugin changes. Can you do the following (1) update
(2) restart the plugin, you must be on 5.304 (3) remove the 2 widgets (Calibration and Curtain), check that the device is not in the Plugin devices anymore, or remove it (4) restart the plugin once more (5) redo the pairing |
You were right, just before updating I tried to close the curtain and it worked. So it was just a communication issue. I did the entire testing protocol you asked, but could not go ahead with calibration, the widget does not turn on when I click on it. I do have this log in domoticz: |
It looks much better. The calibration switch works. |
then restart the plugin and play with % |
For the calibration, you might want to try the following
|
ok, here are some news. |
What I wonder is if the Percentage level provided by the device shouldn't be inverted ? Like 90% reported should be set to 10% on the widget . And when commanding 90% from the Widget we should request 10% |
@adruet29 Found some interesting things in the log. You Set Level at 97% ( 0x61), and we see the level moving from 82% (I guess previous stage) to 97%. I need more logs, and I would appreciate if you could enable debug 'Widget'. You might enable it just before doing the tests, and disabling it just after the test, as this will generate quiet some logs. I suspect an issue in an other place of the plugin and those logs would be good. Thanks in advance
|
@adruet29 if you can do a |
I did a git pull, but not sure that it updated anything: |
So I did a little test protocol after the git pull and restart of the plugin (maybe I should have done the upgrade :s ), but don't know if that's relevant regarding my previous comment. You will find the logs attached with the widget debug activated: |
my bad, I didn't push the update. I expect to have fixed the 1% status issue |
no problem. Here are the logs. I did not go through calibration process, just did a close / open , then percentage and another percentage, then close. The widget does display the open status now, that is good ! The progress bar is still buggy, will do more tests tomorrow evening. |
The device is providing the data, but I'm strugling to find why it is not behaving correctly. |
can you get a try with the latest update ( git pull and restart ) |
Ok, so I did the update, deleted the log files because it was 120MB big, restarted the plugin, and added the Widget and WidgetUpdate debug logs. |
are you sure that you have done the |
I wasn't sure, but checking my history I think I did: I just did a git pull again, and it detects those changes: It's todays modification correcting a syntax issue for the Level control of the widget, looks good ;) Anyway, I have updated the plugin, restarted it, added the debug log for widget and widget update, then I restarted the plugin again to be sure. So now the progress bar of the plugin does work correctly, the percentage moves as the curtain goes up or down. |
One potential issue, is that the device is sending % step by step, which could be slower than the physical curtain, and so we could have a delay between the real position and the position reported in the widget. |
I do confirm that when you switch Calibration it does send a command to the device, as we get a response confirming the command. There is one remaining DataPoint 0x0e which is a 1 bytes (0 to 255) number that we do not change. In the documentation they were refering to Accurate Calibration ( Boolean) and Quick Calibration ( number of second) (picture here: #71 (comment) ) In the present case this second data point is either 0 or 2. 0 When Calibration is On and 2 when Calibration is Off |
I don't think I can do more on this one. If you have the possibility to send me one, I can check with the Tuya apps what it does and reproduce with the plugin. I had spend some time on the net and even wonder if this is not the application itself which managed the % time. But in that case, I don't know what would be the purpose of those 2 data points. I'm trying to reach the MOES support, but not sure this will go somewhere. |
Yeah, you've already corrected many things, thank you very much. |
received the device. Hope to be able to work on it soon |
Can you do the following test: (1) get the latest branch wip-stable7-7.1.13 (2) update the python modules (3) restart the plugin The calibration procedure is the following: (4) Switch the Calibration widget to on to enable the calibration mode.
(5) Switch the Calibration widget to off to disable the calibration mode |
so I pulled the latest branch wip-stable7-t1.1.13, updated the python modules and restarted the plugin. |
looks like I still have some jet lag. Can you update (git pull) and redo the calibration process. |
I pulled the latest commits and retried the calibration. |
The error message could be linked to not having the latest Certified Db. SO make sure to do a full update
and then to restart the plugin Kindly make sure to use the Physical device switch for opening and closing the curtain in Calibration mode. Do not use Domoticz switchs, as in the logs it looks like you did use Domotciz. 2024-10-24 12:46:23,842 INFO :b'mgtCommand : Switch ON Calibration on 9a1a/01' |
I have redone a full update:
restarted the plugin (actually I did it at least twice to be sure and waited a bit). After restarting the plugin I still see this error in the logs: I still redid the calibration, paying attention to using the physical switch to open / close (I'm pretty sure I did it also with the physical switch last time). Here are the logs: |
Please do provide device information such as Brand and Model name.
Provide the URL where you have purchase the device
Document as much what works, what doesn't work, what do you miss, what do you need:
In the zigbee plugin I go to Tools \ command, I can select the object as a router but no command is present in the drop down list which displays "no items found".
Got to the Tools Menu
Select Plugin Raw Devices (json)
Export
This will create an export.json file that you can save.
Thank you !
The text was updated successfully, but these errors were encountered: