moifort / homebridge-create-fan

Connect your create ceiling fan into homekit
Apache License 2.0
6 stars 3 forks source link

Disable Lighting #7

Closed ostpol closed 1 year ago

ostpol commented 1 year ago

Is your feature request related to a problem? Please describe: No.

Describe the solution you'd like: An option to disable the lighting part of the HomeKit accessory for fans without lighting.

Describe alternatives you've considered: It's already possible to seperate both functions in Home App, but this isn't as convenient as the described solution.

Additional context: Thank you for building this Plugin! :)

moifort commented 1 year ago

I get your need, I'll see if I can help.

moifort commented 1 year ago

Can you test the version 0.0.61, you can add inside config hasLight: false like below:

"platforms": [ {
  "name": "Create Ceiling Fan",
  "devices": [
    {
        "id": "bx48",
        "key": "bla",
        "name": "Chambre",
        "hasLight": false
     },
     {
         "id": "bx49",
         "key": "bla",
         "name": "Salon",
         "hasLight": true
      }
    ],
}]
ostpol commented 1 year ago

Tested it, still lighting and fan.

        {
            "name": "Deckenventilator",
            "devices": [
                {
                    "id": "imnotreallysmart",
                    "key": "reallynot!",
                    "name": "Deckenventilator",
                    "hasLight": false
                }
            ],
            "platform": "HomebridgeCreateCeilingFan"
        }

IMG_507114980428-1

moifort commented 1 year ago

Test with v0.0.63, don't forget to remove your accessories from cache /settings/Cache Accessories

ostpol commented 1 year ago

That solved it. Thanks for the fast implementation!