[homekit] add support for QR code based pairing (#9475)
* add support qrcode based pairing Signed-off-by: Eugen Freiter <freiter@gmx.de> * add screenshots Signed-off-by: Eugen Freiter <freiter@gmx.de> * fix typo Signed-off-by: Eugen Freiter <freiter@gmx.de> * update config only if differnt to prevent endless update loop Signed-off-by: Eugen Freiter <freiter@gmx.de> * clean up Signed-off-by: Eugen Freiter <freiter@gmx.de> * add support qrcode based pairing Signed-off-by: Eugen Freiter <freiter@gmx.de> * add screenshots Signed-off-by: Eugen Freiter <freiter@gmx.de> * fix typo Signed-off-by: Eugen Freiter <freiter@gmx.de> * update config only if differnt to prevent endless update loop Signed-off-by: Eugen Freiter <freiter@gmx.de> * clean up Signed-off-by: Eugen Freiter <freiter@gmx.de> * incorporate review feedback Signed-off-by: Eugen Freiter <freiter@gmx.de> * fix Nullable based on feedback Signed-off-by: Eugen Freiter <freiter@gmx.de> * correct the java hap version Signed-off-by: Eugen Freiter <freiter@gmx.de> * Update bundles/org.openhab.io.homekit/pom.xml * adapt groupid Signed-off-by: Eugen Freiter <freiter@gmx.de> * incorporate review feedback Signed-off-by: Eugen Freiter <freiter@gmx.de> Co-authored-by: Eugen Freiter <freiter@gmx.de> Co-authored-by: J-N-K <J-N-K@users.noreply.github.com>
This commit is contained in:
@@ -34,6 +34,40 @@ HomeKit integration supports following accessory types:
|
||||
- Carbon Dioxide Sensor
|
||||
- Carbon Monoxide Sensor
|
||||
|
||||
## Quick start
|
||||
|
||||
- install homekit binding via UI
|
||||
|
||||
- add metadata to an existing item (see [UI based configuration](#UI-based-Configuration))
|
||||
|
||||
- go to scan QR code from UI->Setting-HomeKit Integration
|
||||
|
||||

|
||||
|
||||
- open home app on your iPhone or iPad
|
||||
- create new home
|
||||
|
||||

|
||||
|
||||
- add accessory
|
||||
|
||||

|
||||
|
||||
- scan QR code from UI->Setting-HomeKit Integration
|
||||
|
||||

|
||||
|
||||
- click "Add Anyway"
|
||||
|
||||

|
||||
|
||||
- follow the instruction of the home app wizard
|
||||
|
||||

|
||||
|
||||
Add metadata to more item or fine-tune your configuration using further settings
|
||||
|
||||
|
||||
## Global Configuration
|
||||
|
||||
Your first step will be to create the `homekit.cfg` in your `$OPENHAB_CONF/services` folder.
|
||||
@@ -93,8 +127,30 @@ Complex accessories require a tag on a Group Item indicating the accessory type,
|
||||
|
||||
A HomeKit accessory has mandatory and optional characteristics (listed below in the table).
|
||||
The mapping between openHAB items and HomeKit accessory and characteristics is done by means of [metadata](https://www.openhab.org/docs/concepts/items.html#item-metadata)
|
||||
e.g.
|
||||
|
||||
### UI based Configuration
|
||||
In order to add metadata to an item:
|
||||
- select desired item in mainUI
|
||||
- click on "Add Metadata"
|
||||
|
||||

|
||||
|
||||
- select "Apple HomeKit" namespace
|
||||
|
||||

|
||||
|
||||
- click on "HomeKit Accessory/Characteristic"
|
||||
|
||||

|
||||
|
||||
- select required HomeKit accessory type or characteristic
|
||||
|
||||

|
||||
|
||||
- click on "Save"
|
||||
|
||||
|
||||
### Textual configuration
|
||||
```xtend
|
||||
Switch leaksensor_metadata "Leak Sensor" {homekit="LeakSensor"}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user