cflurin / homebridge-mqtt

Homebridge-mqtt is a Plugin for Homebridge.
Apache License 2.0
229 stars 39 forks source link

Set Accessory Info At Add #48

Closed ihatemyisp closed 6 years ago

ihatemyisp commented 6 years ago

The Home app in iOS 11.2 doesn't update accessory information after caching it. This push adds ability to set the info at adding to combat that behavior. Defaults are used as necessary.

i.e. homebridge/to/add:

{
    "name": "ESPFan_01",
    "service_name": "Ceiling Fan",
    "service": "Fan",
    "manufacturer": "Ian Corbitt",
    "model": "ESPFan",
    "serialnumber": "1",
    "firmwarerevision": "0.0.1"
}
cflurin commented 6 years ago

@iancorbitt Thanks for your PR. I'm working on an urgent project just now but I'll have a look at your PR as soon as possible.

jannnfe commented 6 years ago

Have you found time to look for the mistake? I would also like to change the accessories information. Many thanks in advance :)

ihatemyisp commented 6 years ago

@jannnfe This isn't really a mistake. This is more of a change in the plugin to combat a change in the behavior of Apple's Home app.

If you can't wait for the PR to be merged, you can always install my fork.

npm i iancorbitt/homebridge-mqtt

Note that this will only work with new device additions. Once the Home app cache's the device information from Homebridge, in my testing, it doesn't recache it.