[HUE EMULATION] Alexa - Item is not responding
See original GitHub issueSince moving to 2.2 Build 1072 I have been experiencing issues with the HUE Emulation Service and Alexa. Items that have been rock solid now respond with “Ceiling Fan isn’t responding” this seems to be somewhat intermittent as trying the same request an hour later might work. I just updated to the the latest snapshot build of 1084 and am still experiencing the same issues, yet I have not yet had Alexa respond to a single command. The following is what I see in the openhab.log file when I make a verbal request to Alexa.
There has been some discussion of this in the community forums at:
https://community.openhab.org/t/hue-emulation-alexa-not-responding-after-2-2-upgrade/35844
2017-11-19 10:22:12.280 [WARN ] [eclipse.jetty.servlet.ServletHandler] - /api/IpcI4oOGWNiM5yrMmomJswLE3ctYhogoZRxPBnrs/lights/Ceiling_Fan/state
java.lang.NumberFormatException: For input string: "Ceiling_Fan"
at java.lang.NumberFormatException.forInputString(Unknown Source) ~[?:?]
at java.lang.Integer.parseInt(Unknown Source) [?:?]
at java.lang.Integer.<init>(Unknown Source) [?:?]
at org.openhab.io.hueemulation.internal.HueEmulationServlet.apiState(HueEmulationServlet.java:323) [235:org.openhab.io.hueemulation:2.2.0.201711182329]
at org.openhab.io.hueemulation.internal.HueEmulationServlet.service(HueEmulationServlet.java:281) [235:org.openhab.io.hueemulation:2.2.0.201711182329]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [35:javax.servlet-api:3.1.0]
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:848) [92:org.eclipse.jetty.servlet:9.3.22.v20171030]
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:584) [92:org.eclipse.jetty.servlet:9.3.22.v20171030]
at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71) [195:org.ops4j.pax.web.pax-web-jetty:6.0.7]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) [91:org.eclipse.jetty.server:9.3.22.v20171030]
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548) [89:org.eclipse.jetty.security:9.3.22.v20171030]
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226) [91:org.eclipse.jetty.server:9.3.22.v20171030]
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180) [91:org.eclipse.jetty.server:9.3.22.v20171030]
at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:284) [195:org.ops4j.pax.web.pax-web-jetty:6.0.7]
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:512) [92:org.eclipse.jetty.servlet:9.3.22.v20171030]
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185) [91:org.eclipse.jetty.server:9.3.22.v20171030]
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112) [91:org.eclipse.jetty.server:9.3.22.v20171030]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) [91:org.eclipse.jetty.server:9.3.22.v20171030]
at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80) [195:org.ops4j.pax.web.pax-web-jetty:6.0.7]
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134) [91:org.eclipse.jetty.server:9.3.22.v20171030]
at org.eclipse.jetty.server.Server.handle(Server.java:534) [91:org.eclipse.jetty.server:9.3.22.v20171030]
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:333) [91:org.eclipse.jetty.server:9.3.22.v20171030]
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251) [91:org.eclipse.jetty.server:9.3.22.v20171030]
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:283) [83:org.eclipse.jetty.io:9.3.22.v20171030]
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:108) [83:org.eclipse.jetty.io:9.3.22.v20171030]
at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93) [83:org.eclipse.jetty.io:9.3.22.v20171030]
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303) [94:org.eclipse.jetty.util:9.3.22.v20171030]
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148) [94:org.eclipse.jetty.util:9.3.22.v20171030]
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136) [94:org.eclipse.jetty.util:9.3.22.v20171030]
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671) [94:org.eclipse.jetty.util:9.3.22.v20171030]
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589) [94:org.eclipse.jetty.util:9.3.22.v20171030]
at java.lang.Thread.run(Unknown Source) [?:?]
2017-11-19 10:22:12.281 [WARN ] [org.eclipse.jetty.server.HttpChannel] - //10.5.1.50:8080/api/IpcI4oOGWNiM5yrMmomJswLE3ctYhogoZRxPBnrs/lights/Ceiling_Fan/state
java.lang.NumberFormatException: For input string: "Ceiling_Fan"
at java.lang.NumberFormatException.forInputString(Unknown Source) ~[?:?]
at java.lang.Integer.parseInt(Unknown Source) [?:?]
at java.lang.Integer.<init>(Unknown Source) [?:?]
at org.openhab.io.hueemulation.internal.HueEmulationServlet.apiState(HueEmulationServlet.java:323) [235:org.openhab.io.hueemulation:2.2.0.201711182329]
at org.openhab.io.hueemulation.internal.HueEmulationServlet.service(HueEmulationServlet.java:281) [235:org.openhab.io.hueemulation:2.2.0.201711182329]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [35:javax.servlet-api:3.1.0]
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:848) [92:org.eclipse.jetty.servlet:9.3.22.v20171030]
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:584) [92:org.eclipse.jetty.servlet:9.3.22.v20171030]
at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71) [195:org.ops4j.pax.web.pax-web-jetty:6.0.7]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) [91:org.eclipse.jetty.server:9.3.22.v20171030]
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548) [89:org.eclipse.jetty.security:9.3.22.v20171030]
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226) [91:org.eclipse.jetty.server:9.3.22.v20171030]
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180) [91:org.eclipse.jetty.server:9.3.22.v20171030]
at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:284) [195:org.ops4j.pax.web.pax-web-jetty:6.0.7]
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:512) [92:org.eclipse.jetty.servlet:9.3.22.v20171030]
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185) [91:org.eclipse.jetty.server:9.3.22.v20171030]
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112) [91:org.eclipse.jetty.server:9.3.22.v20171030]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) [91:org.eclipse.jetty.server:9.3.22.v20171030]
at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80) [195:org.ops4j.pax.web.pax-web-jetty:6.0.7]
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134) [91:org.eclipse.jetty.server:9.3.22.v20171030]
at org.eclipse.jetty.server.Server.handle(Server.java:534) [91:org.eclipse.jetty.server:9.3.22.v20171030]
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:333) [91:org.eclipse.jetty.server:9.3.22.v20171030]
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251) [91:org.eclipse.jetty.server:9.3.22.v20171030]
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:283) [83:org.eclipse.jetty.io:9.3.22.v20171030]
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:108) [83:org.eclipse.jetty.io:9.3.22.v20171030]
at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93) [83:org.eclipse.jetty.io:9.3.22.v20171030]
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303) [94:org.eclipse.jetty.util:9.3.22.v20171030]
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148) [94:org.eclipse.jetty.util:9.3.22.v20171030]
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136) [94:org.eclipse.jetty.util:9.3.22.v20171030]
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671) [94:org.eclipse.jetty.util:9.3.22.v20171030]
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589) [94:org.eclipse.jetty.util:9.3.22.v20171030]
at java.lang.Thread.run(Unknown Source) [?:?]
Issue Analytics
- State:
- Created 6 years ago
- Comments:14 (2 by maintainers)
Top Results From Across the Web
Emulated hue devices not responding · Issue #23514 - GitHub
Component/platform: Emulated Hue. Description of problem: Alexa reports "[device] isn't responding. Please check it's network connection and ...
Read more >How to fix Hue lights that have stopped working with Alexa
Have your Hue lights stopped working with Alexa? Here's how to fix the problems can get everything working again.
Read more >openHAB 2.2, Hue Emulation, Alexa and message 'Device is ...
I configured my items and I was able to pair the Hue Emulation with Amazon ... Hue Emulation Alexa Not Responding after 2.2...
Read more >Philips Hue Not Responding To Alexa? - (Easy Fix Steps!)
Why Is Philips Hue Not Responding To Alexa? · 1. Faulty Alexa Application · 2. Bad internet connectivity · 3. Temporal malfunction ·...
Read more >Emulated Hue Not Working At ALL! - Home Assistant Community
I have a 1st gen amazon echo and since version 93.x it has stopped working completely. Emulated Hue device discovery not working fix....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Hi , sorry I missed this one. I’m a few days a way from moving into a new house and have all my stuff, including echos in temp storage why we had some work done on it. Hopefully I’ll have things setup up next week to look at this.
It seems this line is one of the culprits:
https://github.com/openhab/openhab2-addons/blob/e03584e34b559fbc5a2eb5a6e62af704e5bda41c/addons/io/org.openhab.io.hueemulation/src/main/java/org/openhab/io/hueemulation/internal/HueEmulationServlet.java#L323
The id is expected to be a numeric formatted string. But indeed it is the item id defined in the items-files (wich is mostly not a numeric value at all).
This change was introduced in c205294f967639720006461fa1128cc0c75287da
Before it was
Item item = itemRegistry.getItem(id);after:
Item item = itemRegistry.getItem(deviceMap.get(new Integer(id)));I don’t know if this is what causes the problems, but this is what produces the exceptions in openhab.log that @KidSquid1 also printed before.