Hue Emulation no longer finding new items

I wonder if anyone would be to offer some advice? I am using OH3.0.1 with hue emulation. It has been working well for a number of months, but today when I try and add a new item by adding [ “Switchable” ] I can see the published light increment by 1 on the self test page but when I turn on pairing mode and get alexia to discover, it finds nothing new.

I have read the help pages again and again, but can’t see anything wrong with my setup. I have done the reverse proxy as documented with Nginx. I have also cleared the cache and rebooted, but nothing. I have removed some of my existing items and discovery finds them fine, just nothing new.

My self test is as follows:

# Self test

To access any links you need be in pairing mode!

Pairing mode: On (V2) [Enable](http://192.168.1.10/api/status/link) | [Enable with bridge V1 emulation](http://192.168.1.10/api/status/link?V1=true)

11 published lights (see [http://192.168.1.10:80/api/testuser/lights](http://192.168.1.10/api/testuser/lights))
275 published sensors (see [http://192.168.1.10:80/api/testuser/sensors](http://192.168.1.10/api/testuser/sensors))

## UPnP discovery test

service not registered

|serial no|name|
| --- | --- |
|null|Loft Screen|
|25:5A:A3:A3:|openHAB Hue Emulation (192.168.1.10)|
||Emby - media|
|YD00HV331520|Lounge NowTV|
|null|Loft Fire|

## Reachability test

|URL|Responds?|Ours?|
| --- | --- | --- |
|http://192.168.1.10:80/description.xml|no|no|
|http://192.168.1.10/description.xml|no|no|
|http://[fe80:0:0:0:230:18ff:fea6:c0d4]:80/description.xml|no|no|
|http://[fe80:0:0:0:230:18ff:fea6:c0d4]/description.xml|no|no|

A few things to note, the reachability shows response no no on the ip4 addresses, this was saying yes yes before I cleared the cache. Also when I open ‘/api/testuser/lights’ I do not get a list of lights, but instead a Not Authorized message.

Does anyone have any ideas about what could be up? or what to try next? Thanks!

Bit more troubleshooting today, but still nothing. The reachability test on the api/status help page is now correct for ip4, Responds? yes, Ours? yes.

I switched on debug with log:set debug org.openhab.io.hueemulation

And now I have these logs when I discover.

2021-04-22 11:22:41.502 [DEBUG] [ulation.internal.HueEmulationService] - REST request GET 6ec3ff66-dd37-4b21-8042-5fb8dd1f15c9/lights/59
2021-04-22 11:22:41.504 [DEBUG] [ulation.internal.HueEmulationService] - REST response: {"state":{"on":false,"reachable":true,"mode":"homeautomation","alert":"none"},"type":"On/off light","modelid":"Plug 01","uniqueid":"25:5A:A3:A3:75:33:6B:98-59","manufacturername":"OSRAM","productname":"On/Off plug","swversion":"V1.04.12","hascolor":false,"name":"Kitchen Light","config":{"archetype":"classicbulb","function":"functional","direction":"omnidirectional"},"capabilities":{"certified":false,"streaming":{"renderer":false,"proxy":false},"control":{}}}
2021-04-22 11:22:49.269 [DEBUG] [ulation.internal.HueEmulationService] - REST request GET status
2021-04-22 11:22:49.273 [DEBUG] [ulation.internal.HueEmulationService] - REST response: <html><body><h1>Self test</h1><p>To access any links you need be in pairing mode!</p><p>Pairing mode: Off (V2) <a href='http://192.168.1.10:80/api/status/link'>Enable</a> | <a href='http://192.168.1.10:80/api/status/link?V1=true'>Enable with bridge V1 emulation</a></p>11 published lights (see <a href='http://192.168.1.10:80/api/testuser/lights'>http://192.168.1.10:80/api/testuser/lights</a>)<br>275 published sensors (see <a href='http://192.168.1.10:80/api/testuser/sensors'>http://192.168.1.10:80/api/testuser/sensors</a>)<br><h2>UPnP discovery test</h2><p>service not registered</p><table style='border:1px solid black'><tr><td>serial no</td><td>name</td></tr><tr><td>null</td><td>Loft Screen</td></tr>
2021-04-22 11:22:50.344 [DEBUG] [ulation.internal.HueEmulationService] - REST request GET 6ec3ff66-dd37-4b21-8042-5fb8dd1f15c9/lights/62
2021-04-22 11:22:50.346 [DEBUG] [ulation.internal.HueEmulationService] - REST response: {"state":{"on":false,"reachable":true,"mode":"homeautomation","alert":"none"},"type":"On/off light","modelid":"Plug 01","uniqueid":"25:5A:A3:A3:75:33:6B:98-62","manufacturername":"OSRAM","productname":"On/Off plug","swversion":"V1.04.12","hascolor":false,"name":"Loft TV","config":{"archetype":"classicbulb","function":"functional","direction":"omnidirectional"},"capabilities":{"certified":false,"streaming":{"renderer":false,"proxy":false},"control":{}}}
2021-04-22 11:22:52.278 [DEBUG] [ulation.internal.HueEmulationService] - REST request GET status/link
2021-04-22 11:22:52.280 [DEBUG] [ulation.internal.HueEmulationService] - REST response: null
2021-04-22 11:22:52.292 [DEBUG] [ulation.internal.HueEmulationService] - REST request GET status
2021-04-22 11:22:52.294 [DEBUG] [ulation.internal.HueEmulationService] - REST response: <html><body><h1>Self test</h1><p>To access any links you need be in pairing mode!</p><p>Pairing mode: On (V2) <a href='http://192.168.1.10:80/api/status/link'>Enable</a> | <a href='http://192.168.1.10:80/api/status/link?V1=true'>Enable with bridge V1 emulation</a></p>11 published lights (see <a href='http://192.168.1.10:80/api/testuser/lights'>http://192.168.1.10:80/api/testuser/lights</a>)<br>275 published sensors (see <a href='http://192.168.1.10:80/api/testuser/sensors'>http://192.168.1.10:80/api/testuser/sensors</a>)<br><h2>UPnP discovery test</h2><p>service not registered</p><table style='border:1px solid black'><tr><td>serial no</td><td>name</td></tr><tr><td>null</td><td>Loft Screen</td></tr>
2021-04-22 11:23:02.812 [DEBUG] [ulation.internal.HueEmulationService] - REST request GET a710390b-e2b3-4d0c-a075-66e427d6b96d/lights/59
2021-04-22 11:23:02.815 [DEBUG] [ulation.internal.HueEmulationService] - REST response: {"state":{"on":false,"reachable":true,"mode":"homeautomation","alert":"none"},"type":"On/off light","modelid":"Plug 01","uniqueid":"25:5A:A3:A3:75:33:6B:98-59","manufacturername":"OSRAM","productname":"On/Off plug","swversion":"V1.04.12","hascolor":false,"name":"Kitchen Light","config":{"archetype":"classicbulb","function":"functional","direction":"omnidirectional"},"capabilities":{"certified":false,"streaming":{"renderer":false,"proxy":false},"control":{}}}
2021-04-22 11:23:09.985 [DEBUG] [ulation.internal.HueEmulationService] - REST request GET 6014c256-dac3-44f7-87cb-a0bf6488fa2b/lights
2021-04-22 11:23:09.988 [DEBUG] [ulation.internal.HueEmulationService] - REST response: {"12F":{"state":{"on":false,"reachable":true,"mode":"homeautomation","alert":"none"},"type":"On/off light","modelid":"Plug 01","uniqueid":"25:5A:A3:A3:75:33:6B:98-12F","manufacturername":"OSRAM","productname":"On/Off plug","swversion":"V1.04.12","hascolor":false,"name":"Gemma\u0027s Desk Lamp","config":{"archetype":"classicbulb","function":"functional","direction":"omnidirectional"},"capabilities":{"certified":false,"streaming":{"renderer":false,"proxy":false},"control":{}}},"130":{"state":{"on":false,"reachable":true,"mode":"homeautomation","alert":"none"},"type":"On/off light","modelid":"Plug 01","uniqueid":"25:5A:A3:A3:75:33:6B:98-130","manufacturername":"OSRAM","productname":"On/Off plug","swversion":"V1.04.12","hascolor":false,"name":"Gemma\u0027s Light","config":{"archetype":"classicbulb","function":"functional","direction":"omnidirectional"},"capabilities":{"certified":false,"streaming":{"renderer":false,"proxy":false},"control":{}}},"131":{"state":{"on":false,"reachable":true,"mode":"homeautomation","alert":"none"},"type":"On/off light","modelid":"Plug 01","uniqueid":"25:5A:A3:A3:75:33:6B:98-131","manufacturername":"OSRAM","productname":"On/Off plug","swversion":"V1.04.12","hascolor":false,"name":"Lego Lights","config":{"archetype":"classicbulb","function":"functional","direction":"omnidirectional"},"capabilities":{"certified":false,"streaming":{"renderer":false,"proxy":false},"control":{}}},"24F":{"state":{"on":false,"reachable":true,"mode":"homeautomation","alert":"none"},"type":"On/off light","modelid":"Plug 01","uniqueid":"25:5A:A3:A3:75:33:6B:98-24F","manufacturername":"OSRAM","productname":"On/Off plug","swversion":"V1.04.12","hascolor":false,"name":"Aimee\u0027s Desk Lamp","config":{"archetype":"classicbulb","function":"functional","direction":"omnidirectional"},"capabilities":{"certified":false,"streaming":{"renderer":false,"proxy":false},"control":{}}},"50":{"state":{"on":false,"reachable":true,"mode":"homeautomation","alert":"none"},"type":"On/off light","modelid":"Plug 01","uniqueid":"25:5A:A3:A3:75:33:6B:98-50","manufacturername":"OSRAM","productname":"On/Off plug","swversion":"V1.04.12","hascolor":false,"name":"Bathroom Light","config":{"archetype":"classicbulb","function":"functional","direction":"omnidirectional"},"capabilities":{"certified":false,"streaming":{"renderer":false,"proxy":false},"control":{}}},"54":{"state":{"on":false,"reachable":true,"mode":"homeautomation","alert":"none"},"type":"On/off light","modelid":"Plug 01","uniqueid":"25:5A:A3:A3:75:33:6B:98-54","manufacturername":"OSRAM","productname":"On/Off plug","swversion":"V1.04.12","hascolor":false,"name":"Loft Light","config":{"archetype":"classicbulb","function":"functional","direction":"omnidirectional"},"capabilities":{"certified":false,"streaming":{"renderer":false,"proxy":false},"control":{}}},"55":{"state":{"on":false,"reachable":true,"mode":"homeautomation","alert":"none"},"type":"On/off light","modelid":"Plug 01","uniqueid":"25:5A:A3:A3:75:33:6B:98-55","manufacturername":"OSRAM","productname":"On/Off plug","swversion":"V1.04.12","hascolor":false,"name":"Loft Fan","config":{"archetype":"classicbulb","function":"functional","direction":"omnidirectional"},"capabilities":{"certified":false,"streaming":{"renderer":false,"proxy":false},"control":{}}},"57":{"state":{"on":false,"reachable":true,"mode":"homeautomation","alert":"none"},"type":"On/off light","modelid":"Plug 01","uniqueid":"25:5A:A3:A3:75:33:6B:98-57","manufacturername":"OSRAM","productname":"On/Off plug","swversion":"V1.04.12","hascolor":false,"name":"Lounge Light","config":{"archetype":"classicbulb","function":"functional","direction":"omnidirectional"},"capabilities":{"certified":false,"streaming":{"renderer":false,"proxy":false},"control":{}}},"58":{"state":{"on":false,"reachable":true,"mode":"homeautomation","alert":"none"},"type":"On/off light","modelid":"Plug 01","uniqueid":"25:5A:A3:A3:75:33:6B:98-58","manufacturername":"OSRAM","productname":"On/Off plug","swversion":"V1.04.12","hascolor":false,"name":"Dining Light","config":{"archetype":"classicbulb","function":"functional","direction":"omnidirectional"},"capabilities":{"certified":false,"streaming":{"renderer":false,"proxy":false},"control":{}}},"59":{"state":{"on":false,"reachable":true,"mode":"homeautomation","alert":"none"},"type":"On/off light","modelid":"Plug 01","uniqueid":"25:5A:A3:A3:75:33:6B:98-59","manufacturername":"OSRAM","productname":"On/Off plug","swversion":"V1.04.12","hascolor":false,"name":"Kitchen Light","config":{"archetype":"classicbulb","function":"functional","direction":"omnidirectional"},"capabilities":{"certified":false,"streaming":{"renderer":false,"proxy":false},"control":{}}},"62":{"state":{"on":false,"reachable":true,"mode":"homeautomation","alert":"none"},"type":"On/off light","modelid":"Plug 01","uniqueid":"25:5A:A3:A3:75:33:6B:98-62","manufacturername":"OSRAM","productname":"On/Off plug","swversion":"V1.04.12","hascolor":false,"name":"Loft TV","config":{"archetype":"classicbulb","function":"functional","direction":"omnidirectional"},"capabilities":{"certified":false,"streaming":{"renderer":false,"proxy":false},"control":{}}}}

It will seem that although I get the Not Authorized (mentioned in last post), it is indeed working and returning details from the logs. I have compared Bathroom Light that is discovered and works, with Lego Lights that is not discovered. But can’t see any difference between them. Can anyone see anything obvious? or what to try next.

Stuck! Thanks for looking.

Alexa has been known to be fussy about the length and format of the uniqueid field and will refuse to discover devices with ids that it doesn’t like.

I notice your “Lego Lights” id ends in 3 characters after the -. Do you have any other lights that work with Alexa that are using 3 characters?

Yes, 2 devices with 3 characters (130, 24F) are found and working fine. Below are the new items that can’t be found. Would you know if I can change the unique id?

This is all very confusing. I have added [“Switchable”] to Garden Lights, which was a new item, and it’s been discovered fine.

I still can’t discover the other 2 items, I renamed them hoping it would pick them up, but it doesn’t. If anyone has any ideas on how to reset anything, maybe the unique id? thanks.

I think something has changed on the Alexa side which is causing problems.

I’ve found a thread which seems to be discussing a similar problem with ha-bridge, but there doesn’t seem to be a solution yet.

1 Like

Thanks for the link, I’ll keep an eye on it hoping for a solution :crossed_fingers: It’s nice to know i’m not the only one.

Looks like I have made things worse. I completely removed the hueemulation service and removed all devices in alexa.amazon.co.uk then removed device history in my amazon account as mentioned on the github link.

Once this was done, the discovery was still finding my items? Which I thought was odd. Now I have reinstalled the hue emulation, it’s still NOT finding new devices, but now my items are duplicated!!!

Oh man this is a massive headache, I have wasted so much time on this. Think I might need to just give up with the hue emulation service and use the openhab cloud service skill.

Just a quick update, hope it might help others.

I have now got the hue emulation service running with no exposed items. It was still returning some of my items but after about 24 hours they are now not found, so I guess it must be cached somewhere on amazon servers. I have left the service installed as I may use it again in the future, but at the moment from looking at the HABridge link it looks like Amazon did an update that breaks something with the unique ids. I guess the problem with this service is that it uses undocumented APIs that Amazon will break with an update from time to time.

I was relucted to move across to use the Alexa Smart Home Skill, as I liked the idea of hue emulation working locally with echos and no cloud, but really, why? as if the internet is down my echos are not going to work anyway.

So since using the Alexa skill, it is working brilliantly, all my devices are working with the correct icons as I can now specify them as light, fans, switches, etc. I can now also get the temperature from sensors in the house and control heating. Brilliant should have used it before!