Closed smarthomemakers closed 1 year ago
Have you tried to add your device to the TuyaMoesCover0601
quirk?
If you are not familiar, there are some guides about it. Maybe the most popular can be:
Hiya @javicalle !
Thanks for commenting my understanding is the following:
Mostly, yes.
Copy all the ts0601_cover.py
file in the custom_zha_quirks
folder:
Better add your manufacturer in the TuyaMoesCover0601
list:
MODELS_INFO: [
("_TZE200_zah67ekd", "TS0601"),
("_TZE200_xuzcvlku", "TS0601"),
("_TZE200_rddyvrci", "TS0601"),
("_TZE200_nueqqe6k", "TS0601"),
("_TZE200_gubdgai2", "TS0601"),
("_TZE200_yenbr4om", "TS0601"),
("_TZE200_5sbebbzs", "TS0601"),
("_TZE200_xaabybja", "TS0601"),
("_TZE200_hsgrhjpf", "TS0601"),
("_TZE200_68nvbio9", "TS0601"),
("_TZE200_zuz7f94z", "TS0601"),
("_TZE200_ergbiejo", "TS0601"),
("_TZE200_uzinxci0", "TS0601"),
],
Save & restart.
Then check if device signature changes, that would mean that the device loads the quirk.
Need adding the key map in tuya INIT (in the HA docker container) for the device or you is getting errors then loading the quirk or using it.
Hiya @MattWestb I'm running HA with supervisor where can I get access to the Tuya init file? Have you got example of the key map change I need to make? Thanks a lot!
Install SSH access add-on for getting CLI to the HA container if you is running OS and if running not blocked supervisor install portainer and you can open CLI to the HA container.
One option is patching the quirk for reading the INIT from the custom quirk folder but i dont knowing how to doing it but im sure @javicalle can helping patching that.
Need adding the key map in tuya INIT (in the HA docker container) for the device or you is getting errors then loading the quirk or using it.
Ouuch! Yes, that's true.
You can try to copy the tuya.__init__.py
file in your custom_zha_quirks
folder:
Add your manufacturer to the array (in the __init__.py
file):
# For most tuya devices 0 = Up/Open, 1 = Stop, 2 = Down/Close
TUYA_COVER_COMMAND = {
"_TZE200_zah67ekd": {0x0000: 0x0000, 0x0001: 0x0002, 0x0002: 0x0001},
"_TZE200_fzo2pocs": {0x0000: 0x0002, 0x0001: 0x0000, 0x0002: 0x0001},
"_TZE200_xuzcvlku": {0x0000: 0x0000, 0x0001: 0x0002, 0x0002: 0x0001},
"_TZE200_rddyvrci": {0x0000: 0x0002, 0x0001: 0x0001, 0x0002: 0x0000},
"_TZE200_3i3exuay": {0x0000: 0x0000, 0x0001: 0x0002, 0x0002: 0x0001},
"_TZE200_nueqqe6k": {0x0000: 0x0000, 0x0001: 0x0002, 0x0002: 0x0001},
"_TZE200_gubdgai2": {0x0000: 0x0000, 0x0001: 0x0002, 0x0002: 0x0001},
"_TZE200_zpzndjez": {0x0000: 0x0000, 0x0001: 0x0002, 0x0002: 0x0001},
"_TZE200_cowvfni3": {0x0000: 0x0002, 0x0001: 0x0000, 0x0002: 0x0001},
"_TYST11_wmcdj3aq": {0x0000: 0x0000, 0x0001: 0x0002, 0x0002: 0x0001},
"_TZE200_yenbr4om": {0x0000: 0x0000, 0x0001: 0x0002, 0x0002: 0x0001},
"_TZE200_5sbebbzs": {0x0000: 0x0000, 0x0001: 0x0002, 0x0002: 0x0001},
"_TZE200_xaabybja": {0x0000: 0x0000, 0x0001: 0x0002, 0x0002: 0x0001},
"_TZE200_hsgrhjpf": {0x0000: 0x0000, 0x0001: 0x0002, 0x0002: 0x0001},
"_TZE200_iossyxra": {0x0000: 0x0000, 0x0001: 0x0002, 0x0002: 0x0001},
"_TZE200_68nvbio9": {0x0000: 0x0000, 0x0001: 0x0002, 0x0002: 0x0001},
"_TZE200_zuz7f94z": {0x0000: 0x0000, 0x0001: 0x0002, 0x0002: 0x0001},
"_TZE200_ergbiejo": {0x0000: 0x0000, 0x0001: 0x0002, 0x0002: 0x0001},
"_TZE200_nhyj64w2": {0x0000: 0x0000, 0x0001: 0x0002, 0x0002: 0x0001},
"_TZE200_uzinxci0": {0x0000: 0x0000, 0x0001: 0x0002, 0x0002: 0x0001},
}
In your ts0601_cover.py
file, replace all the zhaquirks.tuya
imports (at the beginning of file) with:
# from zhaquirks.tuya import (
from . import (
TuyaManufacturerWindowCover,
TuyaManufCluster,
TuyaWindowCover,
TuyaWindowCoverControl,
)
I believe that this would be enought.
And before restart, delete any __pycache__
subfolder in your custom_zha_quirks
.
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.
Is your feature request related to a problem? Please describe.
Request and placehoder for information about the Tuya Tubular Roller Blind motor > specfically:
https://www.ajaxonline.co.uk/product/zignito-zigbee-roller-blind-motor/
Describe the solution you'd like
ZHA support :)