sean9keenan / homebridge-bigAssFans

A Homebridge plugin for Big Ass Fans
MIT License
28 stars 15 forks source link

Haiku fans show up in Lutron app all in the same room duplicated #26

Open wojo opened 4 years ago

wojo commented 4 years ago

Not sure if this problem is on the Homebridge BigAssFans side, or Lutron side, but this is really weird:

When I have my 6 Haiku fans set up in Homebridge, synced to HomeKit in different rooms, they all end up showing up in my Lutron app in one room, duplicated (all six entries are the same fan), and randomly change from one fan to the next. It also causes the Lutron app to hang up and slow down.

Here's an example of one moment in time. It'll randomly change the fan represented to Guest Room, then Master Bedoom, etc for all the entries (yet stay in the same room next to each other) once in a while.

Controls do sort of work, I was able to get my fan to spin up to 100%, back to 0%, etc with the Luton quick set buttons.

image

So a few things that are odd:

Thoughts? I'm going to email Lutron as well but I don't expect to get a lot of traction from them on debugging and/or fixing this.

sean9keenan commented 4 years ago

Interesting - I would believe that SN's/unique identifiers are being used differently in the Lutron app vs the Home app, however I'm not sure what the proper way to report the SN through homebridge is (if there even is a way to report it such that it'll be picked up by Homekit - I think it might be by specifying serialNumber here).

I also couldn't find "Default-XXX" in the homebridge repo - but there is an issue where others mention that string. Maybe it's a default that's populated on apple's side in the case the accessory doesn't report it.

Sorry I can't be more help on this

wojo commented 4 years ago

@sean9keenan appreciate the response, I'm going to go ahead and get one level deeper on this. Perhaps assigning serial numbers based on the MAC/IP address, etc.

pponce commented 4 years ago

I think this serial number issue is the cause of issues in the eve app as well. See issue #27 . Other apps will set the serial number, model number and manufacturer name. Here is now homebridge-camera-ffmpeg does it. ` var cameraAccessory = new Accessory(cameraName, uuid, hap.Accessory.Categories.CAMERA); var cameraAccessoryInfo = cameraAccessory.getService(Service.AccessoryInformation);

  if (cameraConfig.manufacturer) {
    cameraAccessoryInfo.setCharacteristic(Characteristic.Manufacturer, cameraConfig.manufacturer);

  }

  if (cameraConfig.model) {
    cameraAccessoryInfo.setCharacteristic(Characteristic.Model, cameraConfig.model);
  }

  if (cameraConfig.serialNumber) {
    cameraAccessoryInfo.setCharacteristic(Characteristic.SerialNumber, cameraConfig.serialNumber);

  }`