I can’t get Alexa to find the items that I want it to. Steps:
- added OpenHAB cloud connector
- created myopenhab account with UUID and secret from /var/lib/openhab2/…
- picked items to expose in the cloud connector config in Paper UI
- Enabled the OpenHAB Alexa skill and linked Alexa to the myopenhab account
- Did device discovery
What I got was Alexa discovered my groups - gDimmer, gMotion, etc. and nothing else. What I expected was Alexa would find the list of 25 lights / dimmers that I configured in the cloud connector config and to which alexa metadata was added in items. The items are indeed listed correctly under “Items” in the myopenhab control panel.
Here is an excerpt from the items file for them:
Dimmer LivingRoom_Cans "Living Room cans [%d %%]" (gDimmer) {omnilink="unit:7", alexa="Lighting"}
Dimmer LivingRoom_Lamp "Living Room lamp [%d %%]" (gDimmer) {omnilink="unit:8", alexa="Lighting"}
Dimmer DiningRoom_Overhead "Dining Room pendant [%d %%]" (gDimmer) {omnilink="unit:9", alexa="Lighting"}
Guessing there is something wonky with my items.
For completeness, here is the section of items that Alexa did find:
Group:Switch:OR(ON, OFF) gLight "Light" <light> (Home) ["Lighting", "Switchable"]
Group:Dimmer:AVG gDimmer "Dimmer" <light> (Home) ["Lighting", "Switchable"]
Group:Number:AVG gTemperature "Temperature" <temperature> (Home) ["Temperature"]
Group:Number:AVG gHumidity "Humidity" <humidity> (Home) ["Humidity"]
Group:Switch:OR(ON, OFF) gPower "Power Outlet" <poweroutlet> (Home) ["Switch", "Switchable"]
Group:Contact:OR(OPEN, CLOSED) gWindow "Window" <window> (Home) ["Window"]
Group:Contact:OR(OPEN, CLOSED) gDoor "Door" <door> (Home) ["Door"]
Group:Switch:OR(ON, OFF) gAirCon "Air Conditioner" <snow> (Home) ["HVAC", "Switchable"]
Group:Number:AVG gHeating "Heating" <heating> (Home) ["HVAC"]
Group:Switch:OR(ON, OFF) gMotion "Motion Sensor" <motion> (Home) ["MotionDetector", "Switchable"]
Group:Switch:OR(ON, OFF) gButtons "Buttons" <button> (Home) ["Buttons"]
Alexa found the groups that were marked “Switchable”. Is the interface confused because I have Omnilink metadata too?
I tried reversing the order of the metadata, made no difference. I tried multiple lines for the same item, one for Omnilink and one for Alexa, but that results in a duplicate item error on refresh. I tried adding “Switchable” to the metadata and that didn’t help either. What am I missing?
Any feedback appreciated.