Zacknetic / HomebridgeMagicHome-DynamicPlatform

Homebridge Plugin for MagicHome LED controllers and light bulbs
Apache License 2.0
61 stars 11 forks source link

[BUG] Unable to assign controller during the Discover step #119

Open Phoenigore opened 2 years ago

Phoenigore commented 2 years ago

Hello Everyone. I've got an issue when trying to assign controller to homebridge. You'll find all requested informations just below. Thanks for help by advance.

Logs

Homebridge.log.txt

Describe the bug

After connecting my led strip controller to my network by MagicHomeApp, the Homebridge plugin can Discover the controller but can't associate it into Homebridge due to Version problem

To Reproduce

Steps to reproduce the behavior:

  1. Add led strip controller to MagicHome App and connect it to the network
  2. Install HomebridgeMagicHome-DynamicPlatform
  3. Restart Homebridge
  4. Waiting Discover

Expected behavior

My led strip controller should recognized by Homebridge

Additional context

Trying with 1.9.7 and 1.9.8.Beta of HomebridgeMagicHome-DynamicPlateform versions

Host Hardware

Homebridge and MagicHome

Screenshots

If applicable, add screenshots to help explain your problem.

Phoenigore commented 2 years ago

I added this item in the LightMap.js array and it seems to be working


  [
        0x08,
        {
            controllerLogicType: types_1.ControllerTypes.DimmerStrip,
            convenientName: 'Dimmer',
            simultaneousCCT: true,
            hasColor: true,
            hasCCT: true,
            hasBrightness: true,
        },
    ],