openHAB Skill for Amazon Alexa New Metadata Syntax Beta Test

Room awareness. Does it work for all things or just some things?

For example. … I have Amazon smart plug in a room plus blind and light control. There is an echo in the same room. I can get the smart plug to turn on and off without having the room name in my command by making the request in the room with the assigned echo. For the blinds and lights commands I always have to be more specific and state the room. If I don’t then Alexa will say there is more than one which do I want.

At which level is this failing to work; Amazon, skill or its a feature and not a bug? What is making the difference between the the smart plug and my OH binding.

OH3.2 latest snapshot, RPi4

Only a couple device types are supported such as lights, switches or televisions. Last time I tested, window blinds didn’t work yet.

This is handled on the Amazon. I wouldn’t say failing to work but more supported unless it’s a an Alexa configuration issue. Also, make sure you don’t have duplicate named devices.

It depends on how you setup your Alexa groups.

Since the new skill is now live, this beta test is now closed.

Since the Beta is closed, Alexa isn’t finding any of my devices anymore…
Do i have to change something on Openhab side?

I also have trouble finding devices. While this works:

Switch GA_Gehweg_Alexa “Gehweg” (gAlexa) {alexa=“Switch”, homekit=“Switchable”}

this does not and is blocking the discovery process at all:

Dimmer GA_Sonnenschirm_di_Alexa “Sonnenschirm” (gAlexa) {alexa=“Light”}
or
Dimmer GA_Sonnenschirm_di_Alexa “Sonnenschirm” (gAlexa) {alexa=“Lighting”}

I am on OH 3.2.0.M5 with Alexa Skill being updated 22hours ago.

As mentioned in my last reply, the new skill went live yesterday:

As far as the issue you are experiencing, can you please provide some more information about your existing setup and what you are trying to achieve?

First, what do you mean by blocking? Do you have other items not being discovered? Secondly, have you tried to delete the relevant device if not all OH-related from your Alexa account prior to triggering the discovery?

The item definition you provided looks good. So I wouldn’t expect any discovery issue with the one you provided.

Yes, there are many more. E.g. I managed to discover over 90 Switch-Items. As long as there is no Light-Item the Switch-Items are been discovered. With the Light-Item in between or at the end of the list, none of the item gets found.
Yes, i deleted all items from the Alexa account before starting the search.

Hi, I second that. I participated in the beta test. Since the update of the alexa skill, an “alexa, find new devices” does not find any openhab devices anymore. I had over a hundred devices of different kinds which worked flawlessly before the skill has been updated. It stopped working roughly a day ago, when some alexa devices stopped responding.

I am on 3.2M4 on a synology docker container.

What did I try?

deleted non functional devices on alexa and try to rediscover them → did not work
restarted OH several times → did not work
removed my account connection from the alexa OH skill several times (disabled skill and reconnected it) → did not work
removed all devices, in the hope it would then somehow recover → did not work.

Now I am sorta stuck with a hundred alexa controllable devices less …

Right now, not even my Switch-items get detected (with all other Alexa items being deleted before). This worked before if no other item like the Light-item has been in the items file as well. On the other hand I saw the Light-item being detected once when defined at line #1.
I am sorry, but can not identify a pattern that would allow describing the issue in a more structured way.
Is there any other way to analyze further?

Is there a url I can call to see the xml response given by my OH server ? myopenhab shows that its online …

Hi,

Thanks for the hint. But I only have one openhab skill in my alexa app. Under development Skills I only See my self developed Skills, not any openhab skill.

Can I manually call an url to get the XML discovery response for Alexa? For my own skills I can do that in the debug console of my voice skills

Thanks
Lars

just for the records: i did not participate in beta testing (probably I should next time). I am also not aware of any other skill instance of this particular skill.

Not sure to understand what you are asking. Are you sure your OH server is accessible through myopenhab.org? Is this query returning data?

Any chance you can PM your item file configuration? It sounds like you are using one single item file. Do you see any errors in your OH server logs when saving that file?

Just PMed the items file (my test file). There are no errors/warnings reported when saving the file.

Ok, now it is working again…

It seems that i just had to restart openhab, now all my items are discovered again.
Just for information: All my items are configured via GUI, and i have only Switch,ToggleController and Lighting configured.

Yes, myopenhab shows my server as online. I was looking for the URL you provided. It returns a long list of items, not only my alexa items.

Ok, will install the M5 today and See if that will help…

Unfortunately no change … I did a fresh M5 container install. No items found. I then deleted my “openhab cloud” account and created a new account with a different eMail address. no change.

disconnected openhab skill and reconnected it, no change

The url: “https://myopenhab.org/rest/items?metadata=alexa” does return a long list of items and attributes, not only my alexa items. Maybe this is the problem ?

Update:

this is my OH log in karaf at the moment when I start a device search in alexa:

12:22:49.321 [DEBUG] [.io.openhabcloud.internal.CloudClient] - on(): request 12:22:49.321 [DEBUG] [.io.openhabcloud.internal.CloudClient] - Got request 7239123 12:22:49.322 [DEBUG] [.io.openhabcloud.internal.CloudClient] - Path /rest/items 12:22:49.322 [DEBUG] [.io.openhabcloud.internal.CloudClient] - Method GET 12:22:49.322 [DEBUG] [.io.openhabcloud.internal.CloudClient] - Headers: {"host":"myopenhab.org","cache-control":"no-cache","accept-encoding":"gzip, deflate","accept":"application/json","user-agent":"openhab-cloud/0.0.1"} 12:22:49.322 [DEBUG] [.io.openhabcloud.internal.CloudClient] - Query {"metadata":"alexa,autoupdate,channel,synonyms","fields":"editable,groupNames,groupType,name,label,metadata,stateDescription,tags,type"} 12:22:49.322 [DEBUG] [.io.openhabcloud.internal.CloudClient] - Request method is GET 12:22:49.323 [DEBUG] [.io.openhabcloud.internal.CloudClient] - Jetty set header host = myopenhab.org 12:22:49.323 [DEBUG] [.io.openhabcloud.internal.CloudClient] - Jetty set header cache-control = no-cache 12:22:49.323 [DEBUG] [.io.openhabcloud.internal.CloudClient] - Jetty set header accept-encoding = gzip, deflate 12:22:49.323 [DEBUG] [.io.openhabcloud.internal.CloudClient] - Jetty set header accept = application/json 12:22:49.324 [DEBUG] [.io.openhabcloud.internal.CloudClient] - Jetty set header user-agent = openhab-cloud/0.0.1 12:22:49.367 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onHeaders 7239123 12:22:49.368 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 16229 12:22:49.369 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 16384 12:22:49.369 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 155 12:22:49.397 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 16376 12:22:49.398 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 16384 12:22:49.398 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 8 12:22:49.423 [DEBUG] [.io.openhabcloud.internal.CloudClient] - on(): request 12:22:49.424 [DEBUG] [.io.openhabcloud.internal.CloudClient] - Got request 7239128 12:22:49.424 [DEBUG] [.io.openhabcloud.internal.CloudClient] - Path /rest/uuid 12:22:49.424 [DEBUG] [.io.openhabcloud.internal.CloudClient] - Method GET 12:22:49.424 [DEBUG] [.io.openhabcloud.internal.CloudClient] - Headers: {"host":"myopenhab.org","cache-control":"no-cache","accept-encoding":"gzip, deflate","user-agent":"openhab-cloud/0.0.1"} 12:22:49.425 [DEBUG] [.io.openhabcloud.internal.CloudClient] - Query null 12:22:49.425 [DEBUG] [.io.openhabcloud.internal.CloudClient] - Request method is GET 12:22:49.425 [DEBUG] [.io.openhabcloud.internal.CloudClient] - Jetty set header host = myopenhab.org 12:22:49.425 [DEBUG] [.io.openhabcloud.internal.CloudClient] - Jetty set header cache-control = no-cache 12:22:49.426 [DEBUG] [.io.openhabcloud.internal.CloudClient] - Jetty set header accept-encoding = gzip, deflate 12:22:49.426 [DEBUG] [.io.openhabcloud.internal.CloudClient] - Jetty set header user-agent = openhab-cloud/0.0.1 12:22:49.427 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onHeaders 7239128 12:22:49.428 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239128, content size 36 12:22:49.428 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onComplete: 7239128 12:22:49.429 [DEBUG] [.io.openhabcloud.internal.CloudClient] - Finished responding to request 7239128 12:22:49.435 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 16376 12:22:49.435 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 16384 12:22:49.436 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 8 12:22:49.475 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 16376 12:22:49.476 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 16384 12:22:49.477 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 8 12:22:49.507 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 16376 12:22:49.508 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 16384 12:22:49.508 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 8 12:22:49.524 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 16376 12:22:49.525 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 16384 12:22:49.525 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 8 12:22:49.526 [DEBUG] [.io.openhabcloud.internal.CloudClient] - on(): request 12:22:49.526 [DEBUG] [.io.openhabcloud.internal.CloudClient] - Got request 7239133 12:22:49.526 [DEBUG] [.io.openhabcloud.internal.CloudClient] - Path /rest/ 12:22:49.526 [DEBUG] [.io.openhabcloud.internal.CloudClient] - Method GET 12:22:49.527 [DEBUG] [.io.openhabcloud.internal.CloudClient] - Headers: {"host":"myopenhab.org","cache-control":"no-cache","accept-encoding":"gzip, deflate","accept":"application/json","user-agent":"openhab-cloud/0.0.1"} 12:22:49.527 [DEBUG] [.io.openhabcloud.internal.CloudClient] - Query null 12:22:49.527 [DEBUG] [.io.openhabcloud.internal.CloudClient] - Request method is GET 12:22:49.527 [DEBUG] [.io.openhabcloud.internal.CloudClient] - Jetty set header host = myopenhab.org 12:22:49.528 [DEBUG] [.io.openhabcloud.internal.CloudClient] - Jetty set header cache-control = no-cache 12:22:49.528 [DEBUG] [.io.openhabcloud.internal.CloudClient] - Jetty set header accept-encoding = gzip, deflate 12:22:49.528 [DEBUG] [.io.openhabcloud.internal.CloudClient] - Jetty set header accept = application/json 12:22:49.528 [DEBUG] [.io.openhabcloud.internal.CloudClient] - Jetty set header user-agent = openhab-cloud/0.0.1 12:22:49.551 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onHeaders 7239133 12:22:49.552 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239133, content size 1908 12:22:49.553 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onComplete: 7239133 12:22:49.553 [DEBUG] [.io.openhabcloud.internal.CloudClient] - Finished responding to request 7239133 12:22:49.567 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 16376 12:22:49.568 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 16384 12:22:49.568 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 8 12:22:49.599 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 16376 12:22:49.599 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 16384 12:22:49.600 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 8 12:22:49.630 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 16376 12:22:49.631 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 16384 12:22:49.632 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 8 12:22:49.671 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 16376 12:22:49.672 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 16384 12:22:49.673 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 8 12:22:49.714 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 16376 12:22:49.714 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 16384 12:22:49.715 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 8 12:22:49.751 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 16376 12:22:49.752 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 16384 12:22:49.752 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 8 12:22:49.784 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 16376 12:22:49.785 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 16384 12:22:49.786 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 8 12:22:49.820 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 16376 12:22:49.821 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 16384 12:22:49.822 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 8 12:22:49.860 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 16376 12:22:49.861 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 16384 12:22:49.862 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 8 12:22:49.900 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 16376 12:22:49.901 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 16384 12:22:49.902 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 8 12:22:49.939 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 16376 12:22:49.940 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 16384 12:22:49.941 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 8 12:22:49.977 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 16376 12:22:49.978 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 16384 12:22:49.978 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 8 12:22:50.019 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 16376 12:22:50.021 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 16384 12:22:50.021 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 8 12:22:50.022 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onResponseContent: 7239123, content size 1718 12:22:50.022 [DEBUG] [.io.openhabcloud.internal.CloudClient] - onComplete: 7239123 12:22:50.022 [DEBUG] [.io.openhabcloud.internal.CloudClient] - Finished responding to request 7239123

Is there a way to see what has been returned ?

My lights follow this pattern:
Group: “light”, dimmer item in group: “light.brigthness”, color item: “light.color”, switch item: “light.powerstate”