0x5e / homebridge-tuya-platform

Make homebridge-tuya-platform great again.
MIT License
218 stars 67 forks source link

Can´t Hide switch_backlight ? #452

Open flyingphoenix0 opened 6 months ago

flyingphoenix0 commented 6 months ago

Prerequisite

Cache

Version

1.7.0-beta.53

Device Infomation JSON File

{
    "name": "Tuya",
    "options": {
        "projectType": "2",
        "accessId": "",
        "accessKey": "",
        "countryCode": 43,
        "username": "",
        "password": "",
        "appSchema": "smartlife",
        "deviceOverrides": [
            {
                "id": "bf89a1db54aa78eec3ipmp",
                "unbridged": false,
                "schema": [
                    {
                        "code": "switch_inching",
                        "hidden": true
                    },
                    {
                        "code": "switch_backlight",
                        "hidden": true
                    }
                ]
            }
        ],
        "debug": false
    },
    "_bridge": {
        "username": "",
        "port": 
    },
    "platform": "TuyaPlatform"
}

Device Control Mode

DP Instruction

Logs

No response

Other Infomations

Hey everyone! I am fairly new at the whole Gitub/Homebridge topic.

My problem is that I can´t hide switch_backlight or to put it better the DP_Code from switch_backlight. It worked for switch_inching without problems. I understood it from the introductions that you can hide every DP_Code or am I wrong?

Is it not possible to hide switch_backlight or is there some roundabout way ?

tomzt commented 5 months ago

umm. Me too can't hide device. @0x5e Any suggestions ?

tomzt commented 5 months ago

Try using the Device ID from the Tuya ito platform instead of the device name. I tried it and it worked. But you have to wait a while for an update from the Tuya ito platform and plugin first. "deviceOverrides": [ { "id": "dgdgdfgdfgdfg69fnl7x", "category": "hidden" }, { "id": "dgdgdfgdfgwerwroyz", "category": "hidden" } ] },

flyingphoenix0 commented 5 months ago

With this method I would hide the whole switch. I just want to hide the DP Instruction "switch_backlight" not the whole switch. It works for the DP Instruction "switch_inching" but not backlight.

tomzt commented 5 months ago

I think switch_inchin can't hide.