-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 TS0601 _TZE200_pw7mji0l Cover Motor: Open and Close state not working properly in Home Assistant #19665
Comments
I have the same issue with the roller TZE200_bv1jcqqu it all worked normally until the last update. Now all my automation are broken and work randomly. It seems related to this issue |
i have the same issue for all tuya homeetec covers, checked the converters (i added them almost a year ago), nothing change in them but it now throws errors as described above |
adding more details, devices:
seems that the issue is not as described here, pls ignore my comments |
I am seeing this behaviour as well, has anyone identified the source of the problem? |
@Koenkk how can we take an integrated device from .ts and use that to in a local .js external converter? I'd like to see if I can find a way around this but the only way I can see is starting from scratch. The devices position updates OK so somehow just need the state to reflect the position regardless of if it is operated by ZigBee or RF remote. |
Could you check if the issue is fixed with the following external converter:
external_converters:
- ext_converter.js
|
Thanks - I have added this external converter and I get no errors in my logs, however the blind description is still external converter is showing in the GUI settings, so config seems to be working OK. |
OK I updated this line: The external converter was loading but the white label line was preventing the description form updating |
Unfortunately no - using the external converter, the position expose doesn't update at all anymore. |
temporary workaround: This will create a new cover entity in HA that interacts with the Z2MQTT created cover entity, but updates state based on the reported position in Z2M. in my very short testing this seems to be working for me until the converter issue is figure out.
|
Could you provide the debug log when changing the position of the cover and it not being updated? See this on how to enable debug logging. |
Here you go. FYI I opened the blind at 10:58 using the RF remote - I have trimmed the log from before that to reduce irrelevant content.
You can see from this screenshot that the Z2M provided entity is still reporting as 'closed' even though it's now open with position at 100. The other entity is from the template cover as per post above. |
I updated https://gist.github.com/Koenkk/ea7f0f705ad78880088b84ac380415f4, can you try again? |
Unfortunately with this converter the position value doesn't get populated. The state doesn't change on cover movement either. |
I updated https://gist.github.com/Koenkk/ea7f0f705ad78880088b84ac380415f4, can you provide the logging when changing the position again? |
Have tested again, here are the logs: Z2M was throwing this: |
I believe that these lines (2640 on) capture the blind reaching the open position from an external input, returning state open but the state in Z2M is shown as
Seems to have logged those values this time. Same behaviour and noticed that |
Updated https://gist.github.com/Koenkk/ea7f0f705ad78880088b84ac380415f4, can you try again? |
🎉 this does appear to have fixed it for me. Do you need logs or anything from me? edit: I can switch to dev version easily and test once the PR is merged. I've removed my workaround here and can confirm this is now working as expected in both Z2M and the HA entities. |
I updated https://gist.github.com/Koenkk/ea7f0f705ad78880088b84ac380415f4, could you do one more check? |
Quick test - all seems to be working OK both with commands from Z2M, HA and RF remote. I see the changes are in the 'invert cover' which I didn't see any issue with either in this version or previous. I'll update here if I come across any issues but I think you've fixed this issue. |
Edit: ignore that - all was working and ran in to issues but it seems to be more widespread than the covers. Lights are affected too. I think the external converter is still ok. |
Probably not new, but saw that zemismart supply the zigbee driver for these: |
Integrated the fix, thanks for testing! Changes will be available in the dev branch in a few hours from now. |
Hi @Koenkk These devices are all working as expected but noticed that I am getting errors pop up in the Z2M UI whenever the exposes are interacted with, (for example, pressing stop, or refreshing position. I don't think this was happening when using the external converter. Any clues to what has introduced this in the logs?
|
Tuya devices doesn't support reading, so that's why the refresh fails. Disabled that now. Changes will be available in the dev branch in a few hours from now. |
The fix works great! thanks for the work! |
Just find _TZE204_r0jdjrvi is experiencing the same issue. If press open, the motor will move to open,but the position does get updated (still stays at 0), and the other way around. |
I have the same problem involving the engines |
What happened?
The "open" and "closed" states reported to Home Assistant are not working as expected. They seem to be based on whatever you set on the "state".
What did you expect to happen?
I would like the reported state of the covers to be always based on the position, not on what the user can randomly change.
How to reproduce it (minimal and precise)
No response
Zigbee2MQTT version
1.33.2-dev commit: c8dcd71
Adapter firmware version
20220219
Adapter
Sonoff ZBDongleP (CC2652P)
Debug log
No response
The text was updated successfully, but these errors were encountered: