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

Add support for the cover that uses zz to open and fz to close #1826

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

HEAlex
Copy link

@HEAlex HEAlex commented Oct 18, 2024

My motorized cover that is supported by tuya uses 'zz' to open and 'fz' to close unlike the existing available configs. This PR adds support for such devices:

Here is my config:

[
    {
        "name": "Shtora",
        "id": "eb3edd413785e7c432tyvj",
        "key": "<key_replaces>",
        "mac": "1c:90:ff:46:a3:2e",
        "uuid": "8a90dbe6926ad3f9",
        "sn": "10009365101364",
        "category": "cl",
        "product_name": "\u7a97\u5e18\u7535\u52a8\u8f68\u9053",
        "product_id": "p1fiefpamvaqek4u",
        "biz_type": 0,
        "model": "BCM700D",
        "sub": false,
        "icon": "https://images.tuyaus.com/smart/icon/ay1529376107687pwiLb/4fcdd29eebd945d6748f7e027ecf2ae3.png",
        "mapping": {
            "101": {
                "code": "position",
                "type": "Integer",
                "values": {
                    "unit": "%",
                    "min": 0,
                    "max": 100,
                    "scale": 0,
                    "step": 1
                }
            },
            "102": {
                "code": "mach_operate",
                "type": "Enum",
                "values": {
                    "range": [
                        "ZZ",
                        "FZ",
                        "STOP"
                    ]
                }
            },
            "103": {
                "code": "opposite",
                "type": "Boolean",
                "values": {}
            }
        },
        "ip": "192.168.50.123",
        "version": "3.3"
    }
]

Looks like some people in the community have the same issue:
https://community.home-assistant.io/t/local-tuya-cover-options/442017/3

My motorized cover that is supported by tuya uses 'zz' to open and 'fz' to close unlike the existing available configs.
This PR adds support for such devices:

Here is my config:
```
[
    {
        "name": "Shtora",
        "id": "eb3edd413785e7c432tyvj",
        "key": "<key_replaces>",
        "mac": "1c:90:ff:46:a3:2e",
        "uuid": "8a90dbe6926ad3f9",
        "sn": "10009365101364",
        "category": "cl",
        "product_name": "\u7a97\u5e18\u7535\u52a8\u8f68\u9053",
        "product_id": "p1fiefpamvaqek4u",
        "biz_type": 0,
        "model": "BCM700D",
        "sub": false,
        "icon": "https://images.tuyaus.com/smart/icon/ay1529376107687pwiLb/4fcdd29eebd945d6748f7e027ecf2ae3.png",
        "mapping": {
            "101": {
                "code": "position",
                "type": "Integer",
                "values": {
                    "unit": "%",
                    "min": 0,
                    "max": 100,
                    "scale": 0,
                    "step": 1
                }
            },
            "102": {
                "code": "mach_operate",
                "type": "Enum",
                "values": {
                    "range": [
                        "ZZ",
                        "FZ",
                        "STOP"
                    ]
                }
            },
            "103": {
                "code": "opposite",
                "type": "Boolean",
                "values": {}
            }
        },
        "ip": "192.168.50.123",
        "version": "3.3"
    }
]

```
@HEAlex
Copy link
Author

HEAlex commented Oct 18, 2024

@rospogrigio Can you please have a look on this PR adding config option to support move covers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant