Skip to content

Commit

Permalink
Merge branch 'crxporter-power-strip' of https://github.com/NRCHKB/NRC…
Browse files Browse the repository at this point in the history
…HKB.github.io into crxporter-power-strip
  • Loading branch information
Shaquu committed Feb 8, 2022
2 parents 37812bc + ae87fa7 commit 2bda224
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions content/wiki/service/service-label/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,24 @@ service:
contributors: ["crxporter"]
---

Service Label is kind of an open box for HomeKit devices. So far I (@crxporter) have seen it used in two places - a [multi-button stateless programmable switch](https://nrchkb.github.io/wiki/service/stateless-programmable-switch/#multi-button-example) and a power strip. Surely it can be used in more places but this is what I've seen so far.
Service Label is kind of an open box for HomeKit devices. So far I (@crxporter) have seen it used in two places - a [multi-button stateless programmable switch]({{< ref "/wiki/service/stateless-programmable-switch/#multi-button-example" >}} "Stateless Programmable Switch") and a power strip. Surely it can be used in more places but this is what I've seen so far.

## Examples

These examples are meant to be copied into your Node-RED system and adapted to your setup.

### Power Strip

This example shows a power strip type accessory where multiple on/off items (works best with `Outlet`, `LightBulb`, or `Fan`) will be merged to show a set of small buttons in the Home app. The example will include 4 devices: two outlets, one fan, and one bulb. Any number of these may be added in a similar manner to have more devices shown, simply add the device with the same parent accessory.
This example shows a power strip type accessory where multiple on/off items (works best with `Outlet`, `LightBulb`, or `Fan`) will be merged to show a set of small buttons in the Home.app. The example will include 4 devices: two outlets, one fan, and one bulb. Any number of these may be added similarly to have more devices shown, simply add the device with the same parent accessory.

The setup of this will require the use of a Parent/Linked setup.

The setup of this will require use of a parent/linked setup.
* **Parent Service** will be `ServiceLabel`
* **Linked Services** will be `Outlet`, `Lightbulb`, or `Fan` (others may be possible with mixed results)

**Parent Service**

Simply create a service named however you like using `ServiceLabel` service - this is the parent for all of your incoming devices.
Simply create a service named however you like using the `ServiceLabel` service - this is the parent for all of your incoming devices.

**Linked Services**

Expand Down

0 comments on commit 2bda224

Please sign in to comment.