A Boolean that indicates whether the accessory is accessed through a bridge.
- iOS 8.0+
- tvOS 10.0+
- watchOS 2.0+
A bridge is a special type of accessory that allows you to communicate with accessories that can’t communicate directly with HomeKit. For example, a bridge might be a hub for multiple lights that use a communication protocol other than HomeKit Accessory Protocol.
Bridged accessories have the
is property set to
true and depend on the bridge to communicate with HomeKit. All other accessories, including the bridge itself, have an
is property setting of
To add a bridge to a home, use the home’s
add method, as you would for any other accessory. The accessories behind the bridge are automatically added to the home as well. The home’s delegate doesn’t receive a
home(_: delegate message for the bridge, but does receive one for each accessory behind the bridge.
When you add a bridge to a room, the accessories behind the bridge are not automatically added to the room because the bridge and its accessories might be located in different rooms. Manage each accessory’s room independently.
If you remove a bridge from the home, all of its accessories are also removed. On the other hand, you can’t directly remove a bridged accessory from the home. You can only remove the bridge.
In all other respects, you treat the accessories behind a bridge in the same way as any other accessory in a home. They appear in the home’s
accessories array like non-bridged accessories, and respond to all the same commands.