Here are all my steps to get it running:
Prerequisite: openHAB Cloud Connector (openhabcloud), configuration see here: openHAB Cloud Connector
You do NOT have to expose ANY item!
ALSO NOT MANDATORY: hueemulation, homekit
Before you start “tagging” your .items file please check the following:
You need a “clean” https://myopenhab.org/rest/items/
EDIT: If you already have tagged your .items file, you can also use this method to detect, if it’s correct!)
Login to https://myopenhab.org
Then go to: https://myopenhab.org/rest/items/
search this site if there are any tags!! Search for the following: tags":["
and check right beside your highlighted hit if you find: Lighting, heating, Switchable, Thermostat, TargetTemperature, CurrentTemperature, and so on…
Also check the same line, if there is a label!
In my case I found the following automatically created from “Simple Item Linking” (and many others!!):
{"link":"https://myopenhab.org/rest/items/hue_0100_0017882971e8_8_brightness","state":"0","type":"Dimmer","name":"hue_0100_0017882971e8_8_brightness","tags":["Lighting"],"groupNames":[]}
{"link":"https://myopenhab.org/rest/items/hue_0100_0017882971e8_1_brightness","state":"0","type":"Dimmer","name":"hue_0100_0017882971e8_1_brightness","tags":["Lighting"],"groupNames":[]}
{"link":"https://myopenhab.org/rest/items/hue_0100_0017882971e8_2_brightness","state":"0","type":"Dimmer","name":"hue_0100_0017882971e8_2_brightness","tags":["Lighting"],"groupNames":[]},
As you can see, there were no labels !! (please check your .items file again, if you never have used “Simple Item Mode”!)
To get rid all these “wrong” tagged items do the following: (in my case!!)
Go to PaperUI: Configuration --> System
or set \conf\services\runtime.cfg
org.eclipse.smarthome.links:autoLinks=false
Then in PaperUI go to: Configuration --> Things
Delete ALL your hue things, delete ALL your max things. And maybe others you found above…
Do this procedure as long as you cannot find any tags in https://myopenhab.org/rest/items/
If there is NO tag left, then go to (PaperUI): Configuration --> Inbox --> + (Search for your hue and max, and so on, again…) If you have a corresponding .item file, the channels will be linked automatically to your items.
Now check https://myopenhab.org/rest/items/ again! Are there any tags??
If none, then you are now ready to tag your .items file.
But be carefull with the syntax! You should start only with ONE tag, e.g. [ “Switchable” ].
Example;
Switch KitchenSocket "Kitchen Socket" <light> (gKitchen) [ "Switchable" ] {channel: your channel definiton}
Save your .items file and check if it also appears here: https://myopenhab.org/rest/items/
If so, then go to Alexa APP and start discovering your devices!
Now you should see: “Kitchen Socket” (from example above).
Done it!!
The correct semantic or syntax for further tags can be found here: HomeKit Add-on
BUT, attention!!
If you want to use tag [ “Thermostat” ] then it is MANDATORY to use ALL 4 tags like in this example:
Group gDownstairsThermostat "Downstairs Thermostat" (gFF) [ "Thermostat","Fahrenheit" ]
Number DownstairsThermostatCurrentTemp "Downstairs Thermostat Current Temperature" (gDownstairsThermostat) [ "CurrentTemperature" ]
Number DownstairsThermostatTargetTemperature "Downstairs Thermostat Target Temperature" (gDownstairsThermostat) [ "TargetTemperature" ]
String DownstairsThermostatHeatingCoolingMode "Downstairs Thermostat Heating/Cooling Mode" (gDownstairsThermostat) [ "homekit:HeatingCoolingMode" ]
Tags NOT running with Alexa are: [ “CurrentHumidity” ] and standalone [ “TargetTemperature” ] !!
Have fun…