-
Notifications
You must be signed in to change notification settings - Fork 97
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
[Accessory Request] Cover accessory #18
Comments
Not an exact date but it should not be more than a few days after somebody makes a pull request or sponsors me so I can buy a Tuya cover accessory and create it myself 😄. Where you able to test if the |
Understood. Thought it might help, or at least provide any clue. |
Just receive this data from somebody using the covers, if you yourself have some Tuya cover devices and want support please also drop your device config here!
|
Hi, I posted in another thread but I am posting it here once again for the device config. Hopefully it would help.
Let me know if I missed something or you want me to do something more. |
My house still does not have any Tuya cover devices, this makes it hard for me to develop for this accessory. Therefor the first part of this comment still applies 😉. I hope you understand that the motivation to make something is severely reduced if the creator cannot enjoy the fruits of their labour. Not to say that I will never add support for this device but with the current setup it will take quite some time and I will require a lot of help from people who do have a cover accessory. |
I have a cover device that I would be interested in testing for. I would really like to see cover support added. My config is below, (at the moment I'm overriding the default to make it behave as a switch, which is irritating because it is stateless switch and I can't make it stateful)
|
@Pelagious Hello and thank you for your interest in this plugin, could you please enable debugging in homebridge and upload the debug logs? |
Sure, operating off of phone. Let me know if I need to repost this properly from a computer for better formatting
|
Let me know if you need me to do config changes. I'm currently running the blinds as a switch-scene and imported the tuya scenes for opening and closing the blinds, since for whatever reason, when I override the blinds from a cover to a switch it is irritatingly stateless. Which really ruins a lot of automations |
Yeah what I suspect to be the best way would be - allow users to define how many seconds it takes to open or close. And based on the percentage (or difference in percentage) perform the open (or close) action for a certain amount of time. Which is freaking ugly |
i'll wait until you roll the update out, since i'm using hoobs. |
i have implemented this ugly method in my ewelink plugin. if you wanted some code 😅 |
Yeah it's up to the user from there on. And one way or another the questions always end up here 😛 and I am mostly the one to answer them and fix the issues. The proposed solution is very wonky at best, I suspect that it will trigger a lot of errors, bugs, unhappy users. I'd rather take the "Apple approach" of giving the users a little less flexibility but a better experience. |
i get that, but you could add the implementation and let the user play with it a bit. i mean how bad can it be i.e. 0 (infinite) seconds up / 0 seconds down as default and can be edited in the plugins settings if needed. lastly when are you planning to roll the update? today? tomorrow ? no rush, just asking. |
@milo526, Thank you for your effort, but my curtain still not work. it show the below error message. it still not able to get the currect position status. Or [12/21/2020, 7:55:39 AM] [TuyaWebPlatform] [窗簾] - Unsetting debouncedDeviceStateRequestPromise |
Cover works on 0.6.3! Only have the option to open and close the cover. Would love to have the option to open the cover half way or something like that! Any possibility? The Tuya app has the option, I think the Home Assistant thing had the option, although idk if the API has it |
@milo526 can you let me know when you're planning to update the plugin on hoobs? still shows the 0.4.8 as of today |
Please read the rest of this thread 😉 We already discussed that this is unlikely to happen soon. @costispavlou there is no reason to ask this so often. Please remember that I am working on this alone, voluntarily, in my free time. But just so you know, it was just release, it will probably take a day to show up in hoobs. |
My bad, thank you! I appreciate you working on this plugin! |
@milo526 apologies if my comment sounded pushy. I was only wondering. I know and appreciate the effort you've put in this. |
I haven't really looked into the API (can't find any documentation), but I know that I had to update the 'schedule time', because my cover wasn't opening all the way. Maybe you can use this value to determine how far 50% is? I don't think you can fetch the current percentage from the API, right? If you have any documentation, can you share it? Maybe I can help you looking in to it. |
I see that there is some unclarity here and that is partly on me for not being clear myself. I will not add support for opening a window a certain percentage anytime soon. This is mainly because it is very hard for me to actually test this since I do not own any of these Tuya-based window coverings. If somebody else wishes to work on this (@sybrendotinga ?) please feel welcome. The closest thing to "documentation" is the PaulAnnekov/tuyaha repository. It has a python implementation for this API. It is also used by the Home Assistant integration. From there you should take a look at the |
I tried to fork your repo this summer and tried to implement it myself, but I got stuck at the same things as you: bad documentation and I expected a lot of (external influenced) issues/side-effects based on the "time to open" solution. |
there might be a way to get percentage based open and close to work since somebody might be willing to sponsor me a curtain device. For the ones of you that see This way I can hopefully buy such a device that has the required characteristics. |
How/where can I receive this information? Is it this script? |
Thanks @milo526, hopefully this helps:
Maybe you can share your thoughts so we can discuss your solution. |
So @sybrendotinga your device does support the stop functionality (The "Zonnescherm" device), could you post a link to the device that you use? So I can also buy it and ensure that I have a device with the proper functionality. |
I would not recommend that ;-) It is to control my sunscreen ;-) Maybe @Pelagious, @taaa22 or @Aekung can share theirs? |
Smart Automatic Curtain Motor Track System |
Hello, Thank you for the plugin. I'm new to HomeBridge, so please forgive me if I've done anything wrong. I've successfully installed HomeBridge and your plugin, the accessories have been discovered and they appear in HomeKit on my iDevices. The problem I have is that the status shown in the Home application is not always correct. In fact, after looking at the logs and the code (I'm not Typescript fluent, sorry about that…) it appears that the status of the accessories is updated by requesting their state from the cloud. The state can be either 1, 2 or 3 on this accessory. But if I understand the code of This is why, even if my covers are open, their states turn to "closed" after a few minutes, because the motor is stopped (state 3) and the plugin thinks that the cover is closed. |
Thanks for that update @bSr43, this is exactly the issue with me not yet owning one of these devices 😛. |
I have used the
When I have generated the JSON, some covers were opened, others were closed. But every cover has the state "3" because the motor was not running. When I start the motor by using the physical switch, the state is updated accordingly to my previous explanation, ie when the cover is opening (until the motor stops), the state is "1", and when the cover is closing, the state is "2". As soon as I hear the click which indicated that the cover switch has finished its work, the state is "3". I really appreciate the time you are spending on this project, and cannot even imagine how hard it could be to write support for something you don't even own! Thank you for that! |
I just release a pre-release with some improvements for cover devices. How to install a pre-release version. |
Thank you for this update.
|
Hi,
After moving from vitramirs fork to this one, I receive the following messages:
My cover devices do not work
The text was updated successfully, but these errors were encountered: