What I found is the order of the elements in the config file is important. That is, the tags in the square brackets need to be at a certain place in the line. Here is an example of a working line from an items file. Hope it helps.
I have successfully installed the Emulator and added the necessary tags, light ON/OFF functionality is working very well. Thank you for taking on this effort.
I am using an Insteon PLM for signaling and I have discovered the Insteon binding is reporting “command XX is not implemented yet” for percentage changes. The same commands work fine from other UIs.
I have isolated the difference to the received command value.
From the Hue Emulator - the command is a DecimalType
From other UI’s - the command is a PercentType
Not sure if Insteon Binding should play better with a DecimalType or Hue Emulator should send a PercentType
Hi Scott, thanks for the feedback! Yes I am blindly sending this as a Decimal type which is probably not great, give me a sec and I can put an updated version up for you.
Hi Farhan, is the Milight binding working for you under OH2? The reason I ask is it looks like OH2 correctly gets the command, but it’s like the binding is not loaded, can you control your lights from the Classic UI or mobile clients (in OH2)? I’ll try and find some time to look more on mind end for you.
I just installed OH2 beta 3 and bought an echo today. Tried to get this working. I have tagged a few switches for lighting (looks like right before the beta release the tag syntax changed from homekit: to bare words. IF that’s wrong please let me know. The bigger issue is that device discovery from echo isn’t working. I added “hueemulator” to the “misc=” line in my addons.conf. I now see in the device log a line that says:
2016-06-02 14:41:58.503 [INFO ] [ulation.internal.HueEmulationServlet] - Started Hue Emulation service at /api
I did enable pairing in the paper ui and restart openhab (just in case).
The echo isn’t seeing the bridge. I did a wireshark capture and I’m not seeing any UPNP multicast from the openhab IP. I tried to figure out how to debug the log like you guys were doing above here but the closest I can get is to logging into the karaf shell and tailing the log. The only examples I can find are “log:set DEBUG org.openhab.binding.zwave”. I tried “log:set TRACE org.openhab.misc.hueemulation” but that didn’t change any log levels…
I would really appreciate some help at least getting logging going.
The binding was changed to support “Switchable”, “Lighting”, and “TargetTemperature” tags, although i have not tried it yet.
Yep, the binding is activated
The echo should be initiating the discovery by sending a multicast UDP packet on port 1900, the emulator binding then should respond back. You can enable more verbose logging at the osgi console with log:set INFO org.openhab.io.hueemulation . I’m assuming both are on the same subnet?
Now, whatever I try, I can’t get Alexa (or the Paper UI for that matter) to discover my items which I set up in the hue emulation.
Here’s the item line I’m using (I’m trying to control a knx switch - which works from the classic ui, by the way):