ebaauw / homebridge-rpi

Homebridge plugin for Raspberry Pi.
Apache License 2.0
308 stars 18 forks source link

The Pi itself is exposed as an accessory even if it's configured to be hidden #172

Closed delingren closed 7 months ago

delingren commented 7 months ago

While exploring this plugin, I found this potential bug. I configured the plugin not to expose the Pi, and all the statuses related to the Pi:

{
    "name": "RPi",
    "hosts": [
        {
            "host": "localhost:8888",
            "name": "Doors & Windows",
            "hidden": true,
            "noFan": true,
            "noPowerLed": true,
            "noSmokeSensor": true,
            "usbPower": false,
            "devices": [
              ...
            ]
        }
    ],
    ...
}

However, when I add it to Home app on iOS, it reports an accessory which seems to be the Pi. The details sheet shows:

Manufacturer   Sony UK
Model          Raspberry Pi 3A+

In the room view, it shows "Not Supported". Not that it's a big deal, but it sounds like a bug to me.

ebaauw commented 7 months ago

See #27, that is conform spec: the hidden setting removes the service, but not the accessory itself (as it's needed for Homerbidge RPi to function). It's an "empty" accessory, with only the Accessory Information service, which Apple's Home app shows as Not Supported.