Skip to content

Batch updating? #164

Description

@lukescott

Looking at the protocol it seems that it might be possible to capture a batch of updates destined for an Accessory. Currently all the HomeKit libraries just distribute the characteristic updates to each service making it difficult to know if it came from a batch or a single request.

What I mean by "batch" is lets say you issues a Siri command "Hey Siri, Turn Off all the Lights". From what I can tell iOS collects all the changes and sends it to the Bridge Accessory responsible for those lights. Compared to "Hey Siri, Turn Off the Living Room Light" would be a single update.

The reason why I am looking into this is because issuing multiple requests over the Z-Wave protocol is expensive. If you have 20 lights to turn off it takes a long time to complete the request.

With the Z-Wave protocol you can broadcast a command to the entire network. And one thing I'm specifically looking into is multicast (addressing a range of devices). If I was able to get HomeKit to give me a batch of updates I could compose a single command rather than 20.

Does this sound about right? If so, is this something you would accept the PR for?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions