0x5e / homebridge-tuya-platform

Make homebridge-tuya-platform great again.
MIT License
206 stars 57 forks source link

Tuya smart dual water timer #471

Open ofir0610 opened 3 weeks ago

ofir0610 commented 3 weeks ago

Prerequisite

Cache

Version

v1.7.0-beta.49

Device Infomation JSON File

No response

Device Control Mode

None

Logs

No response

Other Infomations

hi

been trying to add Tuya dual water valve to my homebridge.

after hours of no luck, been able to add it via @monkeycatdog plugin.

the problem is that it only shows and control valve no. 1

i cant see or control valve no.2...

any help?

monkeycatdog commented 3 weeks ago

@ofir0610 did you try override configs?

something like this


                "id": "bfa1114980d0fbb83bt00x",
                "category": "sfkzq",
                "schema": [
                    {
                        "code": "status_crane_group_1",
                        "newCode": "switch",
                        "type": "Boolean"
                    },
                    {
                        "code": "floor_cleaning_flag",
                        "newCode": "switch_1",
                        "type": "Boolean"
                    },
                    {
                        "code": "status_crane_group_2",
                        "hidden": true
                    },
                ]
            }```
ofir0610 commented 3 weeks ago

Thanks for the quick reply

Im not very familiar with coding but have tried this:

Maybe im doing something wrong…

Apricate your help

"deviceOverrides": [

        {

            "id": "bf81e3eeb3d44aa4batjeq",

            "category": "ggq",

            "schema": [

                {

                    "code": "switch_1",

                    "newCode": "switch_1",

                    "type": "Boolean"

                },

                {

                    "code": "switch_2",

                    "newCode": "switch_2",

                    "type": "Boolean"

                },

                {

                    "code": "countdown_1",

                    "newCode": "countdown_1",

                    "type": "Integer",

                    "property": {

                        "min": 0,

                        "max": 1440,

                        "scale": 0,

                        "step": 1

                    }

                },

                {

                    "code": "countdown_2",

                    "newCode": "countdown_2",

                    "type": "Integer",

                    "property": {

                        "min": 0,

                        "max": 1440,

                        "scale": 0,

                        "step": 1

                    }

                }

            ]

        }

    ],

    "debug": false

},

"platform": "TuyaPlatform"

}

From: monkeycat @.> Sent: Friday, 7 June 2024 17:43 To: 0x5e/homebridge-tuya-platform @.> Cc: ofir0610 @.>; Mention @.> Subject: Re: [0x5e/homebridge-tuya-platform] Tuya smart dual water timer (Issue #471)

@ofir0610 https://github.com/ofir0610 did you try override configs?

something like this

            "id": "bfa1114980d0fbb83bt00x",
            "category": "sfkzq",
            "schema": [
                {
                    "code": "status_crane_group_1",
                    "newCode": "switch",
                    "type": "Boolean"
                },
                {
                    "code": "floor_cleaning_flag",
                    "newCode": "switch_1",
                    "type": "Boolean"
                },
                {
                    "code": "status_crane_group_2",
                    "hidden": true
                },
            ]
        }```

— Reply to this email directly, view it on GitHub https://github.com/0x5e/homebridge-tuya-platform/issues/471#issuecomment-2154990323 , or unsubscribe https://github.com/notifications/unsubscribe-auth/BJAQG45HIDGIMO3ODVBOFQDZGHBGTAVCNFSM6AAAAABI6NYKH2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJUHE4TAMZSGM . You are receiving this because you were mentioned. https://github.com/notifications/beacon/BJAQG44RLAIIEXVM6A7FLPLZGHBGTA5CNFSM6AAAAABI6NYKH2WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUAOKFPG.gif Message ID: @. @.> >