Skip to content

Commit

Permalink
Add Alexa mapping along side a channel mapping (#1249)
Browse files Browse the repository at this point in the history
* Add Alexa mapping along side a channel mapping

It took me a while to find this https://community.openhab.org/t/tagging-devices-for-alexa-support/98155/3 on the Forum and its not clearly documented in the openHAB Amazon Alexa Smart Home Skill or here in Item Metadata.
I originally suggested this as an update to the openHAB Amazon Alexa Smart Home Skill documentaion, but it fits better here, then other integrations using metadata (e.g. HomeKit or Google Assistant) could refer to it as well.

* Update items.md
  • Loading branch information
LeeC77 committed Jul 15, 2020
1 parent c04237d commit 2d3e3de
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions concepts/items.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,11 @@ There can be metadata attached to an Item for as many namespaces as desired, lik

Switch MyFan "My Fan" { homekit="Fan.v2", alexa="Fan" [ type="oscillating", speedSteps=3 ] }

The metdata can be included with the channel linking, an Alexa metadata mapping is added after the channel linking separated with a comma in the example for a ZWave switch below.
```
Switch LightSwitch "Light Switch" {channel="zwave:device:22c99d1e:node3:switch_binary", alexa="PowerController.powerState"}
```

The metadata can be maintained via a dedicated REST endpoint and is included in the `EnrichedItemDTO` responses.

Extensions which can infer some metadata automatically need to implement and register a `MetadataProvider` service in order to make them available to the system.
Expand Down

0 comments on commit 2d3e3de

Please sign in to comment.