Comments (2)
On your local network, homekit accessories (like a thermostat) communicate directly with a controller (e.g. an iPhone), like this:
[thermostat] <--HAP--> [iPhone]
For devices that don't support homekit directly, you can use bridge which handles the homekit protocol (HAP). For example devices that use zigbee, it would look something like this:
[light bulb] <--ZIGBEE--> [zigbee bridge] <--HAP--> [iPhone]
However when you're roaming (not on your local network), the iPhone cannot communicate to your local devices, as they are not exposed to the public internet. This is where a home hub comes into play. In short; the home hub is an Apple TV or iPad that's on your local network and signed in to the same Apple ID as your iPhone. The home hub and the iPhone will then communicate, presumably through iCloud, to control your devices. For example in the case of the thermostat:
[thermostat] <--HAP--> [home hub] <--iCloud--> [iPhone]
This package provides an implementation of HAP, where it can act on behalf of a device. So in the diagrams above, it'll be on the left side of the <--HAP-->
link. As far as I know, the communication between the home hub and iCloud is proprietary and is certainly not something this package provides.
from hap.
So if I understand this correctly, you can have multiple HAPs, each controlling its own device?
from hap.
Related Issues (20)
- TargetHumidifierDehumidifierState wrong enum HOT 2
- Async get characteristic HOT 5
- valid values HOT 5
- Help using Accessory.Television HOT 1
- Links in README return 404 HOT 1
- How to group accessories ? HOT 2
- Project doesn't run on command line HOT 2
- deprecated warnings when compiling HOT 2
- How to set value of characteristic in a client app? HOT 2
- SecuritySystem - Show as Single Tile HOT 4
- Dynamically add/remove services?
- Characteristic Function not called when updating powerState or brightness of a Accessory.Lightbulb subclass HOT 4
- Getting Illegal instruction on Raspberry Pi4
- Xcode 13 - Package Target Integrity Error HOT 3
- Compatibility with Matter HOT 2
- Adaptive lighting HOT 1
- Cut a new Release?
- When internet drops and comes back, app needs to be restarted. HOT 2
- Are you still working on this package at all? HOT 1
- Not responding accessory HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hap.