sibartlett / homebridge-wink3

Homebridge plugin for wink.com
https://sibartlett.github.io/homebridge-wink3
ISC License
53 stars 20 forks source link

Fans vs Lights #93

Open stevenleija opened 6 years ago

stevenleija commented 6 years ago

I have dimmers for fan switches which work perfectly with wink but they only come up as light modules in homekit. Is there a way to force a device to think it's a fan to change the icon?

sibartlett commented 6 years ago

You need to add an fan_ids option to your config.json. The ID for the switch can be found in the Home app; as the accessory's Serial Number.

An example:

{
  "platforms": [
    {
      "platform": "Wink",
      "name": "Wink",
      "client_id": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
      "client_secret": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
      "fan_ids": [
        248563
      ]
    }
  ]
}
sibartlett commented 6 years ago

Did my reply help?

christensonautohome commented 6 years ago

works for me! Thank you for posting this update. Though i did have to put my fan ids in quotes:

"platforms": [ { "platform": "Wink", "name": "Wink", "client_id": "XXX", "client_secret": "XXX", "access_token": "XXX", "refresh_token": "XXX", "fan_ids": [ "serial number here", "serial number here", "serial number here" ] }

mreassassin commented 5 years ago

Where do you find the serial numbers for the fans? My fans are all on regular switches but I’d like for them to show up as a fan icon if possible.