Closed mdiazgoncalves closed 1 year ago
As many Tuya devices there must be a DP for setting the value.
If I have interpreted it correctly from zigbee2mqtt
it could be the DP=0xF003
What is the quirk that the cover currently uses? Could you capture the traces when you power up the device? The Tuya devices usually publishes the values of the configuration DPs when is power up. There should be some message related to DP 0xF003
Yes, I also think the calibration is cluster attribute moesCalibrationTime: {ID: 0xf003, type: dataType_1.default.uint16 } The quirk is ts0601_cover.TuyaMoesCover0601. How do I capture the traces when you power up the device?
Enable the debug log, remove the power from device and power up again. To enable logs:
Most Tuya devices broadcast initial status on power up. Maybe you can get the DP (and value). Also, you can look at the logs when device is operated. Some devices broadcast the current status when are operated from the physical device.
Once you verify the DP and value format, must implement the functions in quirk:
calibration_time
:
https://github.com/zigpy/zha-device-handlers/blob/0163c7ca3dff3508544bca0d57b57d0156342c80/zhaquirks/tuya/__init__.py#L102I'm not familiar with this kind of implementation, but I think that this is more or less what you need.
I'll give it a try. Thanks
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
I'm trying to calibrate a cover switch from Moes, but it's well over my knowledge. Can someone help to implement this feature? It is already in zigbee2mqtt.
https://github.com/Koenkk/zigbee2mqtt/issues/7128#issuecomment-895928027
Thanks