I have a problem using the HUE Emulation Binding on RC2
There seems something wrong with validating the Bridge-ID.
I left the Unique Bridge Id empty and restarted openhab. The new generated Bridge ID was:
“22:8B:26:97:C2:BD:D0:51” and the serialNumber is than: “22:8B:26:97:”.
I am not sure if the last ‘:’ is correct. In my log I can find the following stacktrace:
11:22:23.749 [ERROR] [ry.upnp.internal.UpnpDiscoveryService] - Participant 'org.openhab.binding.hue.internal.discovery.HueBridgeDiscoveryParticipant' threw an exception
java.lang.IllegalArgumentException: ID segment '22:8B:26:97:' contains invalid characters. Each segment of the ID must match the pattern [\w-]*.
at org.openhab.core.common.AbstractUID.validateSegment(AbstractUID.java:98) ~[bundleFile:?]
at org.openhab.core.common.AbstractUID.<init>(AbstractUID.java:76) ~[bundleFile:?]
at org.openhab.core.common.AbstractUID.<init>(AbstractUID.java:59) ~[bundleFile:?]
at org.openhab.core.thing.UID.<init>(UID.java:57) ~[bundleFile:?]
at org.openhab.core.thing.ThingUID.<init>(ThingUID.java:47) ~[bundleFile:?]
at org.openhab.binding.hue.internal.discovery.HueBridgeDiscoveryParticipant.getThingUID(HueBridgeDiscoveryParticipant.java:80) ~[?:?]
at org.openhab.binding.hue.internal.discovery.HueBridgeDiscoveryParticipant.createResult(HueBridgeDiscoveryParticipant.java:54) ~[?:?]
at org.openhab.core.config.discovery.upnp.internal.UpnpDiscoveryService.remoteDeviceAdded(UpnpDiscoveryService.java:158) [bundleFile:?]
at org.jupnp.registry.RemoteItems$1.run(RemoteItems.java:114) [bundleFile:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
at java.lang.Thread.run(Thread.java:834) [?:?]
I tried different manually values to get a valid id. but no chance.
BTW: It is not possible for me to find any item after scanning hue Items on alexa. But I am not sure, if this error is the reason, that it does not work.
The change in the format of the serial number from the Hue Emulator is specific to OH 3.0 since it looks like my change in fixing up Alexa discovery has caused that.
@mstormi
If the emulator is not supported any longer, Is there any alternative way, which should be used to be able to send commands to openhab using alexa?
If the Alexa skill is the solution, then I have to connect my OpenHAB smart home to a cloud service like myopenHAB - right?
That would be disappointing for me, as I try to use as little cloud services as possible (I know that Alexa itself is cloud based).
After moving to OH3 (fresh install) and Hue Emulation (neither 3.0 nor 3.1.jar from above) Alexa does not find my items, I believe it’s missing the “tags” like “switchable”, but I don’t know where/how to write those in the new UI. Into the “add metadata” field maybe! But which namespace/format to choose?
Thanks for advice and sorry for dropping a questions “after the solution”.
I am getting the (almost?) same error message in the log approximately every 2mins:
2021-01-17 18:48:42.998 [ERROR] [y.upnp.internal.UpnpDiscoveryService] - Participant ‘org.openhab.binding.hue.internal.discovery.HueBridgeDiscoveryParticipant’ threw an exception
java.lang.IllegalArgumentException: ID segment ‘8d:5b:66:09:’ contains invalid characters. Each segment of the ID must match the pattern [\w-]*.
at org.openhab.core.common.AbstractUID.validateSegment(AbstractUID.java:98) ~[bundleFile:?]
at org.openhab.core.common.AbstractUID.(AbstractUID.java:76) ~[bundleFile:?]
at org.openhab.core.common.AbstractUID.(AbstractUID.java:59) ~[bundleFile:?]
at org.openhab.core.thing.UID.(UID.java:57) ~[bundleFile:?]
at org.openhab.core.thing.ThingUID.(ThingUID.java:47) ~[bundleFile:?]
at org.openhab.binding.hue.internal.discovery.HueBridgeDiscoveryParticipant.getThingUID(HueBridgeDiscoveryParticipant.java:88) ~[?:?]
at org.openhab.binding.hue.internal.discovery.HueBridgeDiscoveryParticipant.createResult(HueBridgeDiscoveryParticipant.java:54) ~[?:?]
at org.openhab.core.config.discovery.upnp.internal.UpnpDiscoveryService.remoteDeviceAdded(UpnpDiscoveryService.java:158) [bundleFile:?]
at org.jupnp.registry.RemoteItems$1.run(RemoteItems.java:114) [bundleFile:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
at java.lang.Thread.run(Thread.java:834) [?:?]
I did not (on purpose) installed Hueemulation. Just Hue 3.1.0.Snapshot
I am on Snapshot 3.1 . I am not sure what to do, to get rid of this error. Deinstall something? Reinstall the hue Binding?
Ok, I found the huemulation stuff under miscellaneous add-ons.
Did not remember that I installed it. Just uninstalled it (BTW: what is it for?) and the error disappeared.