Help defining items for OpenHAB v3 Alexa Skill

  • Platform information:
    • Hardware: RPI3+
    • OS: Raspbian GNU/Linux 9 (stretch)
    • openHAB version: 2.4.0-1
  • Issue of the topic:

I have openhab-alexa v3 is running and would like to take advantage of the v3 syntax. I’ve read through the Usage documentation found here: https://github.com/openhab/openhab-alexa/blob/v3/USAGE.md but can’t find anywhere in the documentation where or how to include the item channel.

For example, how would these be defined using v3 syntax:

Dimmer OfficeLight "Office Light" ["Lightning"] {channel="zwave:device:c912238a:node2:switch_dimmer"}
Dimmer OfficeFan "Office Fan" ["Switchable"] {channel="zwave:device:c912238a:node3:switch_dimmer"}

Thanks, Goody

From my point of view you have to exchange the

["Switchable"]

with the new metadata

{alexa="Switchable"}

or the longer version

{alexa="PowerController.powerState"}

So would it look like this:

Dimmer OfficeLight "Office Light" {alexa="PowerController.powerState,BrightnessController.brightness", channel="zwave:device:c912238a:node2:switch_dimmer"}

How would I use this with my fan:

channel="zwave:device:c912238a:node3:switch_dimmer

Group Fan     "Fan"          {alexa="Endpoint.Other"}
Number Speed  "Speed"  (Fan) {alexa="RangeController.rangeValue" [supportedRange="1:10:1",presets="1=@Value.Minimum:@Value.Low:Lowest,10=@Value.Maximum:@Value.High:Highest",friendlyNames="@Setting.FanSpeed,Speed"]}
Switch Power  "Power"  (Fan) {alexa="ToggleController.toggleState" [friendlyNames="@DeviceName.Fan"]}

Thanks, Glenn