主权项 |
1. A method executable by a controller device, the method comprising:
receiving, at the controller device, a user input requesting an interaction with an accessory device, wherein the interaction includes determining an aspect of accessory state of the accessory device or changing an aspect of accessory state of the accessory device; determining whether the controller device is currently able to communicate directly with the accessory device; in response to determining that the controller device is currently able to communicate directly with the accessory device, communicating directly with the first accessory device to perform the requested interaction; and in response to determining that the controller device is currently unable to communicate directly with the accessory device:
identifying a proxy device that is configured to communicate with the accessory device, wherein the controller device has previously established a pairing with the proxy device;establishing communication with the proxy device, wherein establishing communication with the proxy device includes establishing a pair-verified session with the proxy device based on the previously established pairing, the pair-verified session having a session key;generating a request message to the accessory to perform the requested interaction with the accessory; andcommunicating, via the pair-verified session, the request message to the proxy device to perform the requested interaction with the first accessory device, wherein the proxy device relays the request message to the accessory device. |