In my openhab2 configuration I have a Home.items file with the following item included:
Switch TestSwitch "Google Home Test Switch" (gAll) ["Switchable"]
I then save that file, stop the hueemulation binding and start it again, and some time later it generates the following items file in the hueemulation folder:
{"1":"TestSwitch"}
That is everything in that file.
When I go to the /ap/discovery.xml address the following is displayed:
{"lights":{},"scenes":{},"groups":{"1":{"action":{"on":false,"bri":0,"hue":0,"sat":0,"effect":"none","ct":0,"alert":"none","reachable":true},"lights":[],"name":"AGroup","type":"Room","class":"Other"}},"schedules":{},"sensors":{},"rules":{},"config":{"portalservices":false,"gateway":"192.168.1.150","mac":"B8:27:EB:A9:AB:80","swversion":"01036659","apiversion":"1.15.0","linkbutton":true,"ipaddress":"192.168.1.150","proxyport":0,"swupdate":{"updatestate":0,"checkforupdate":false,"devicetypes":{},"text":"","notify":false,"url":""},"netmask":"255.255.255.0","name":"Philips hue","dhcp":true,"UTC":"2017-02-10T13:50:15","proxyaddress":"none","localtime":"2017-02-10T08:50:15","timezone":"America/New_York","zigbeechannel":"6","modelid":"BSB002","bridgeid":"B827EBFFFEA9AB80","factorynew":false,"whitelist":{"88d74b29365345c9b64c4aa27b7da187":{"lastUseDate":"2017-02-08T17:55:40","createDate":"2017-02-08T17:55:40","name":"auto insert user"},"5fb224d9db1e4fc2a1a0862cc0a2a9e8":{"lastUseDate":"2017-02-09T08:35:03","createDate":"2017-02-09T08:35:03","name":"auto insert user"},"c586b817de014d6b9244a97d8bff0a92":{"lastUseDate":"2017-02-09T08:35:03","createDate":"2017-02-09T08:35:03","name":"auto insert user"},"d96f67bd8aed44ac991859082557d836":{"lastUseDate":"2017-02-08T18:11:10","createDate":"2017-02-08T18:11:10","name":"auto insert user"},"5d0a60e5a3194e3fb42be6003f6041b0":{"lastUseDate":"2017-02-08T17:57:33","createDate":"2017-02-08T17:57:33","name":"auto insert user"},"47f6c0d5a1a747bb869a2573fe1b84a0":{"lastUseDate":"2017-02-08T18:11:10","createDate":"2017-02-08T18:11:10","name":"auto insert user"},"b95140d3b39246d8a3d90b687c529738":{"lastUseDate":"2017-02-08T17:57:33","createDate":"2017-02-08T17:57:33","name":"auto insert user"},"LZ4fRmwJqDjlyvGKG1B6UYHHv1VkkVZ7UywiYhi2":{"lastUseDate":"2017-02-08T18:02:16","createDate":"2017-02-08T18:02:16","name":"auto insert user"},"discovery":{"lastUseDate":"2017-02-08T22:19:52","createDate":"2017-02-08T22:19:52","name":"auto insert user"},"discovery.xml":{"lastUseDate":"2017-02-08T18:09:16","createDate":"2017-02-08T18:09:16","name":"auto insert user"},"a0104a4eeff44ef7afa6553160a34503":{"lastUseDate":"2017-02-08T18:05:15","createDate":"2017-02-08T18:05:15","name":"auto insert user"},"9d9cab6f045141869a2319a93af9a453":{"lastUseDate":"2017-02-08T18:05:15","createDate":"2017-02-08T18:05:15","name":"auto insert user"},"c095a2a9acbd4408a0e9a2720e197f16":{"lastUseDate":"2017-02-08T17:55:40","createDate":"2017-02-08T17:55:40","name":"auto insert user"}}}}
I don’t see my item listed in there anywhere. The Home links to the emulator but won’t find the device and I’m pretty sure it’s because it’n not in the discovery.xml document. So is there a reason it would be added to the items file but not the discovery.xml document that the Home reads?
I’ll try adding more lights and see what happens but any suggestions, even if it’s just formatting, are appreciated. As a side note I’m using the .jar file from staalebk posted in this thread at this location: http://t0yen.asuscomm.com/org.openhab.io.hueemulation-2.0.0-SNAPSHOT.jar as I wanted the ability to command light levels.
Thanks,
Matt