Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No devices detected #39

Closed
hco opened this issue Jun 22, 2017 · 7 comments
Closed

No devices detected #39

hco opened this issue Jun 22, 2017 · 7 comments

Comments

@hco
Copy link

hco commented Jun 22, 2017

Hi,

Alexa does not discover any devices in my opehab 2 installation.
I tagged my items, and they are working with Homekit.
https://myopenhab.org/rest/items returns this: https://gist.github.com/hco/53a7e44939d7d08fdcc1b9f28efeedfc
Could maybe something with the thermostat be the reason? It's not working perfectly with homekit either.

I am from germany and am using Alexa in german.

@3DJupp
Copy link

3DJupp commented Jun 23, 2017

try to reinstall openhab. I had similar issues with openhab-alexa and mqtt. A reinstall, keeping the configuration files was a solution in my case.

@hco
Copy link
Author

hco commented Jun 23, 2017

I actually configured quite some stuff using the paper ui now, so I'd have to recreate those items & things.

Also, my response of /rest/items should be wrong in that situation, and I'd like to understand what's wrong about my items, as that could improve documentation.

Is there an easy way to execute the alexa js code, without having to setup an AWS Lambda Account etc?

@digitaldan
Copy link
Collaborator

Also, my response of /rest/items should be wrong in that situation, and I'd like to understand what's wrong about my items, as that could improve documentation.

That would be great. When Alexa does discovery she does a GET request at http://myopenhab.org/rest/items and iterates through every item. On each items the code then iterates through an item's tags (if it has any). If it finds a matching tag then it "discovers" it. That's it actually. Thermostats are a little trickier b/c of how we use groups to associate the different items/channels to a single thermostat object, but its almost the same.

See https://github.com/openhab/openhab-alexa/blob/master/oh2.js#L545

@hco
Copy link
Author

hco commented Jun 25, 2017

Okay, I already figured out, that it has something to do with the Thermostat. I'm not completly sure what it is, though.

After removing the tags from the thermostat the devices were discoverable

@stulandr
Copy link

After removing the tags from the thermostat the devices were discoverable

That's good to know. I've not resolved my problem here so will try this to see if that makes a difference.

@stulandr
Copy link

I can report that removing the thermostat tags solved the problem an my other Switchable device is now discoverable. Thanks @hco for the tip!

@mboremski
Copy link
Contributor

@hco, did you finally solve this problem?

Did you see that in your items.json your tags are empty?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants