openHAB with amazon voice control (Amazon Alexa Smart Home Skill) won't delete item

Using OH 4.2.1-release on openHABian.

I replaced one amazon-powered device (wifi switch, via amazon echo control) with one tasmota-powered device (also wifi switch, via mqtt).

After I deleted the amazon meta-data for the old item and added the amazon meta-data for the other, and let amazon alexa search for new devices, I have now both items in alexa. I removed and relinked the openHAB Cloud again in myopenhab.org and after that, I still are not able to remove the old item. What’s even worse: the naming of the old item superseeds the one of the new one (“Kaffeemaschine”) - so I’d have to remember a new word for turning my daily coffee addiction on… :wink:

Two questions:

  • Is there a way to get an overview over all cloud-exposed items? I remember having something like this on myopenhab a long time ago, but seem to not find this anymore?
  • how can I delete the old item for good? If I’ll try it in my alexa App, it won’t let me do it.

I’m not going to be much help here but I can offer a couple of things:

The only way I know of is by searching your Items for those with the appropriate Item metadata (which you can do from the developer sidebar).

That was way back when to expose Items to IFTTT required configuring the Cloud Connector add-on to specifically tell it which Items to expose. Support for doing that was removed a long time ago as everyone was exposing all their Items that way whether or not they were using IFTTT and it overwhelmed the cloud server. Alexa and Google Assistant integration uses a different implementation that doesn’t impact the cloud server in the same way, but it means the cloud server doesn’t have as much insight into what Items are exposed or not since all it does is scan for those Items that have the expected Item metadata.

Sometimes orphaned links and stuff like that can make an Item appear to still be there when it’s been removed. From the API Explorer or the karaf console you can search for and remove orphaned links.

And just in case, you can grep through your conf folder and JSONDB folder for the old Item name to see if it’s otherwise hanging around as part of some other config like the orphaned links.

Once you are certain the old Item doesn’t appear anywhere in OH, I’m sure there is a way to sync devices in Alexa to refresh the list of devices. In GA you just ask GA to “sync devices”. I don’t know how it works in Alexa.

hmm. there’s no “amazon alexa” - metadata available. You can search (and find) for everything in the “Code” tab of said Metadata, but of course, I’m using different “values” for my Alexa devices (e.g. “CoffeeMaker” or “Shutter”, which are offered by Alexa API). But sadly no overview for “which item has an Alexa Metadata”…

I did indeed not delete the old item, I just removed the “Amazon Metadata”, which should lead to removing the item from Alexa.
I also deleted the old item just now and after “Alexa search for devices” (just like GA: “sync devices”), it is still there…

The metadata namespace used by Alexa integration is alexa.

You can always find the namespace for “well known” Item metadata by clicking on that metadata on the Item and looking at the page. The last part of the URL is the namespace and at the top where is says “Edit item Metadata: alexa” also shows the metadata namespace.

Therefore searching for “alexa” will show all the Items with “alexa” metadata. Search also includes the namespace, not just the contents of metadata.

1 Like

ah! Thanks! I searched for “amazon alexa”. Of course “Alexa” is a bit broad a search term, but works really well. Thanks! found my 89 items (and not the deleted one)