AMoo-Miki / homebridge-tuya-lan

Homebridge plugin for IoT devices that use Tuya Smart's platform
MIT License
202 stars 51 forks source link

Dual channel dimmers MS-105B #232

Open angyp opened 3 years ago

angyp commented 3 years ago

Hi wondering if somebody else has this working? I am using version V1.5.0-rc.12 and the first channel of the dimmer is working perfectly using a configuration like this.

    {
        "name": "Lounge light",
        "type": "SimpleDimmer",
        "manufacturer": "MOES",
        "model": "2 Gang Dimmer",
        "id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        "key": "xxxxxxxxxxxxxxxxxx",
        "ip": "192.168.15.162",
        "minBrightness": 20,
        "scaleBrightness": 822,
    },

I can also get the second channel working by itself if I specify the dp for power and brightness.

    {
        "name": "Dining Room",
        "type": "SimpleDimmer",
        "manufacturer": "MOES",
        "model": "2 Gang Dimmer",
        "id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        "key": "xxxxxxxxxxxxxxxxxx",
        "ip": "192.168.15.162",
        "minBrightness": 20,
        "scaleBrightness": 822,
        "dpPower": 7,
        "dpBrightness": 8
    },

When I try both in the configuration at the same time I only get the last dimmer in the Home app. I assume the fix is in SimpleDimmerAccessory.js but I am no coder.