Skip to content
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

Looking forward to Covers Type accessories implementation. #27

Closed
Aekung opened this issue Jun 29, 2020 · 4 comments
Closed

Looking forward to Covers Type accessories implementation. #27

Aekung opened this issue Jun 29, 2020 · 4 comments
Labels
enhancement New feature or request

Comments

@Aekung
Copy link

Aekung commented Jun 29, 2020

Is your feature request related to a problem? Please describe.

It's more like the feature request and there's no problem about it. I just happened to have 3 tuya covers from 2 manufacturer and I am now having to use the RF Signal to control it in homekit by bridging it with broadlink rm plugin. It would be a whole lot better experience to control it with Tuya Web API since the state of the device can be reported correctly along with the % of opening and closing. Since Tuya API supports Covers, just which it could be implemented in the plugin.

Describe the solution you'd like
I want to be able to control covers by homekit natively without relying on RF Signal since RF doesn't report the current state of the devices.

Describe alternatives you've considered
Staying with RF Signal would be what I would do. But as said, the real state of the devices are not reported so it's quite a mess sometimes.

Additional context
I do have 3 covers from 2 manufacturers that use Tuya Web API. I am currently using Smart Life app. My only computer in my house is Macbook Air (I don't have Window) so if I can help extracting any useful information from you, please kindly instruct and I will do so.

@Aekung Aekung added the enhancement New feature or request label Jun 29, 2020
@hugozheng2017
Copy link

I have a tuya web garage door.also hope to support it.

@milo526
Copy link
Owner

milo526 commented Jun 30, 2020

Hello, thank you for your interests.

Please follow the steps outlined in the readme under: How to check whether the API this library uses can control your device?

@Aekung
Copy link
Author

Aekung commented Jul 3, 2020

Hello, thank you for your interests.

Please follow the steps outlined in the readme under: How to check whether the API this library uses can control your device?

Thanks for the reply.

This is what I got from the test on Repl

{
   "header":{
      "code":"SUCCESS",
      "payloadVersion":1
   },
   "payload":{
      "devices":[
         {
            "data":{
               "online":True,
               "state":3,
               "support_stop":True
            },
            "dev_type":"cover",
            "ha_type":"cover",
            "icon":"https://images.tuyaus.com/smart/product_icon/cl.png",
            "id":"52003233ecfabca9fdce",
            "name":"Window Cover for Front Door"
         },
         {
            "data":{
               "online":True,
               "state":True
            },
            "dev_type":"switch",
            "ha_type":"switch",
            "icon":"https://images.tuyaus.com/smart/program_category_icon/kg.png",
            "id":"138766762cf432caa04b",
            "name":"Bedroom Light"
         },
         {
            "data":{
               "online":True,
               "state":3,
               "support_stop":True
            },
            "dev_type":"cover",
            "ha_type":"cover",
            "icon":"https://images.tuyaus.com/smart/product_icon/cl.png",
            "id":"10670875bcddc2b0e398",
            "name":"Window Cover for Garden"
         },
         {
            "data":{
               "online":True,
               "state":2,
               "support_stop":True
            },
            "dev_type":"cover",
            "ha_type":"cover",
            "icon":"https://images.tuyaus.com/smart/program_category_icon/cl.png",
            "id":"630777045002914b3123",
            "name":"Window Cover for Home Theater"
         }
      ],
      "scenes":[

      ]
   }
}

I think it's supported but as it's a cover type, it's not supported by this plugin yet. Hopefully it could work soon.

@milo526
Copy link
Owner

milo526 commented Jul 4, 2020

Thank you for this information, it turns out that support for the cover accessory is already tracked in #18

Closing this issue to prevent duplicating information.

@milo526 milo526 closed this as completed Jul 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants