Great idea and awesome project! I got this compiled and installed on a ESP-07 to try it out.
I used Chroma.app on my laptop, and it can discover the bridge, but cannot connect.
===
980631
requestedUri: /api/api/config
980632
{"name":"hue emulator","swversion":"0.1","mac":"18:FE:34:FE:34:F3","dhcp":true,"ipaddress":"192.168.1.147","netmask":"255.255.255.0","gateway":"192.168.1.1","whitelist":{"api":{"name":"clientname#devicename"}},"swupdate":{"text":"","notify":false,"updatestate":0,"url":""}}
980643
===
980659
requestedUri: /api/e5qGUywTisnjL1XU
Running rgb2hsb
1.: H, S, B
2.: Convert to hue, sat, bri
Running rgb2hsb
1.: H, S, B
2.: Convert to hue, sat, bri
Running rgb2hsb
1.: H, S, B
2.: Convert to hue, sat, bri
Running rgb2hsb
1.: H, S, B
2.: Convert to hue, sat, bri
Running rgb2hsb
1.: H, S, B
2.: Convert to hue, sat, bri
Running rgb2hsb
1.: H, S, B
2.: Convert to hue, sat, bri
Running rgb2hsb
1.: H, S, B
2.: Convert to hue, sat, bri
Running rgb2hsb
1.: H, S, B
2.: Convert to hue, sat, bri
980682
{"groups":{},"scenes":{},"config":{"name":"hue emulator","swversion":"0.1","mac":"18:FE:34:FE:34:F3","dhcp":true,"ipaddress":"192.168.1.147","netmask":"255.255.255.0","gateway":"192.168.1.1","whitelist":{"api":{"name":"clientname#devicename"}},"swupdate":{"text":"","notify":false,"updatestate":0,"url":""}},"lights":{"1":{"type":"Extended color light","name":"Hue LightStrips 1","modelid":"LST001","state":{"on":false,"hue":0.00000,"bri":253.00000,"sat":0.00000,"xy":[0.00000,0.00000],"ct":500,"alert":"none","effect":"none","colormode":"hs","reachable":true}},"2":{"type":"Extended color light","name":"Hue LightStrips 2","modelid":"LST001","state":{"on":false,"hue":0.00000,"bri":253.00000,"sat":0.00000,"xy":[0.00000,0.00000],"ct":500,"alert":"none","effect":"none","colormode":"hs","reachable":true}},"3":{"type":"Extended color light","name":"Hue LightStrips 3","modelid":"LST001","state":{"on":false,"hue":0.00000,"bri":253.00000,"sat":0.00000,"xy":[0.00000,0.00000],"ct":500,"alert":"none","effect":"none","colormode":"hs","reachable":true}},"4":{"type":"Extended color light","name":"Hue LightStrips 4","modelid":"LST001","state":{"on":false,"hue":0.00000,"bri":253.00000,"sat":0.00000,"xy":[0.00000,0.00000],"ct":500,"alert":"none","effect":"none","colormode":"hs","reachable":true}},"5":{"type":"Extended color light","name":"Hue LightStrips 5","modelid":"LST001","state":{"on":false,"hue":0.00000,"bri":253.00000,"sat":0.00000,"xy":[0.00000,0.00000],"ct":500,"alert":"none","effect":"none","colormode":"hs","reachable":true}},"6":{"type":"Extended color light","name":"Hue LightStrips 6","modelid":"LST001","state":{"on":false,"hue":0.00000,"bri":253.00000,"sat":0.00000,"xy":[0.00000,0.00000],"ct":500,"alert":"none","effect":"none","colormode":"hs","reachable":true}},"7":{"type":"Extended color light","name":"Hue LightStrips 7","modelid":"LST001","state":{"on":false,"hue":0.00000,"bri":253.00000,"sat":0.00000,"xy":[0.00000,0.00000],"ct":500,"alert":"none","effect":"none","colormode":"hs","reachable":true}},"8":{"type":"Extend
980867
===
997892
requestedUri: /description.xml
<root><specVersion><major>1</major><minor>0</minor></specVersion><URLBase>http://192.168.1.147:80/</URLBase><device><deviceType>urn:schemas-upnp-org:device:Basic:1</deviceType><friendlyName>Philips hue (192.168.1.147)</friendlyName><manufacturer>Royal Philips Electronics</manufacturer><manufacturerURL>http://www.philips.com</manufacturerURL><modelDescription>Philips hue Personal Wireless Lighting</modelDescription><modelName>Philips hue bridge 2012</modelName><modelNumber>929000226503</modelNumber><modelURL>http://www.meethue.com</modelURL><serialNumber>00178817122c</serialNumber><UDN>uuid:2f402f80-da50-11e1-9b23-00178817122c</UDN><presentationURL>index.html</presentationURL><iconList><icon><mimetype>image/png</mimetype><height>48</height><width>48</width><depth>24</depth><url>hue_logo_0.png</url></icon><icon><mimetype>image/png</mimetype><height>120</height><width>120</width><depth>24</depth><url>hue_logo_3.png</url></icon></iconList></device></root>
I assume this is working since with this, Chroma for Hue finds a Bridge, so does the Hue iOS app. In constrast, without this they say no Bridge found.
997973
===
1003807
requestedUri: /api
CLIENT:
api
[{"success":{"username": "api"}}]
1003814
===
1004821
requestedUri: /api/api/config
1004822
{"name":"hue emulator","swversion":"0.1","mac":"18:FE:34:FE:34:F3","dhcp":true,"ipaddress":"192.168.1.147","netmask":"255.255.255.0","gateway":"192.168.1.1","whitelist":{"api":{"name":"clientname#devicename"}},"swupdate":{"text":"","notify":false,"updatestate":0,"url":""}}
1004852
===
1004855
requestedUri: /api/api/config
1004856
{"name":"hue emulator","swversion":"0.1","mac":"18:FE:34:FE:34:F3","dhcp":true,"ipaddress":"192.168.1.147","netmask":"255.255.255.0","gateway":"192.168.1.1","whitelist":{"api":{"name":"clientname#devicename"}},"swupdate":{"text":"","notify":false,"updatestate":0,"url":""}}
1004875
===
1004882
requestedUri: /api/api/config
1004883
{"name":"hue emulator","swversion":"0.1","mac":"18:FE:34:FE:34:F3","dhcp":true,"ipaddress":"192.168.1.147","netmask":"255.255.255.0","gateway":"192.168.1.1","whitelist":{"api":{"name":"clientname#devicename"}},"swupdate":{"text":"","notify":false,"updatestate":0,"url":""}}
1004899
===
1004904
requestedUri: /api/api/config
1004905
{"name":"hue emulator","swversion":"0.1","mac":"18:FE:34:FE:34:F3","dhcp":true,"ipaddress":"192.168.1.147","netmask":"255.255.255.0","gateway":"192.168.1.1","whitelist":{"api":{"name":"clientname#devicename"}},"swupdate":{"text":"","notify":false,"updatestate":0,"url":""}}
1004926
===
1004930
requestedUri: /api/api/config
1004931
{"name":"hue emulator","swversion":"0.1","mac":"18:FE:34:FE:34:F3","dhcp":true,"ipaddress":"192.168.1.147","netmask":"255.255.255.0","gateway":"192.168.1.1","whitelist":{"api":{"name":"clientname#devicename"}},"swupdate":{"text":"","notify":false,"updatestate":0,"url":""}}
1004953
===
1004959
requestedUri: /api/api/config
1004960
{"name":"hue emulator","swversion":"0.1","mac":"18:FE:34:FE:34:F3","dhcp":true,"ipaddress":"192.168.1.147","netmask":"255.255.255.0","gateway":"192.168.1.1","whitelist":{"api":{"name":"clientname#devicename"}},"swupdate":{"text":"","notify":false,"updatestate":0,"url":""}}
1004985
===
1004989
requestedUri: /api/e5qGUywTisnjL1XU
Running rgb2hsb
1.: H, S, B
2.: Convert to hue, sat, bri
Running rgb2hsb
1.: H, S, B
2.: Convert to hue, sat, bri
Running rgb2hsb
1.: H, S, B
2.: Convert to hue, sat, bri
Running rgb2hsb
1.: H, S, B
2.: Convert to hue, sat, bri
Running rgb2hsb
1.: H, S, B
2.: Convert to hue, sat, bri
Running rgb2hsb
1.: H, S, B
2.: Convert to hue, sat, bri
Running rgb2hsb
1.: H, S, B
2.: Convert to hue, sat, bri
Running rgb2hsb
1.: H, S, B
2.: Convert to hue, sat, bri
1005023
{"groups":{},"scenes":{},"config":{"name":"hue emulator","swversion":"0.1","mac":"18:FE:34:FE:34:F3","dhcp":true,"ipaddress":"192.168.1.147","netmask":"255.255.255.0","gateway":"192.168.1.1","whitelist":{"api":{"name":"clientname#devicename"}},"swupdate":{"text":"","notify":false,"updatestate":0,"url":""}},"lights":{"1":{"type":"Extended color light","name":"Hue LightStrips 1","modelid":"LST001","state":{"on":false,"hue":0.00000,"bri":253.00000,"sat":0.00000,"xy":[0.00000,0.00000],"ct":500,"alert":"none","effect":"none","colormode":"hs","reachable":true}},"2":{"type":"Extended color light","name":"Hue LightStrips 2","modelid":"LST001","state":{"on":false,"hue":0.00000,"bri":253.00000,"sat":0.00000,"xy":[0.00000,0.00000],"ct":500,"alert":"none","effect":"none","colormode":"hs","reachable":true}},"3":{"type":"Extended color light","name":"Hue LightStrips 3","modelid":"LST001","state":{"on":false,"hue":0.00000,"bri":253.00000,"sat":0.00000,"xy":[0.00000,0.00000],"ct":500,"alert":"none","effect":"none","colormode":"hs","reachable":true}},"4":{"type":"Extended color light","name":"Hue LightStrips 4","modelid":"LST001","state":{"on":false,"hue":0.00000,"bri":253.00000,"sat":0.00000,"xy":[0.00000,0.00000],"ct":500,"alert":"none","effect":"none","colormode":"hs","reachable":true}},"5":{"type":"Extended color light","name":"Hue LightStrips 5","modelid":"LST001","state":{"on":false,"hue":0.00000,"bri":253.00000,"sat":0.00000,"xy":[0.00000,0.00000],"ct":500,"alert":"none","effect":"none","colormode":"hs","reachable":true}},"6":{"type":"Extended color light","name":"Hue LightStrips 6","modelid":"LST001","state":{"on":false,"hue":0.00000,"bri":253.00000,"sat":0.00000,"xy":[0.00000,0.00000],"ct":500,"alert":"none","effect":"none","colormode":"hs","reachable":true}},"7":{"type":"Extended color light","name":"Hue LightStrips 7","modelid":"LST001","state":{"on":false,"hue":0.00000,"bri":253.00000,"sat":0.00000,"xy":[0.00000,0.00000],"ct":500,"alert":"none","effect":"none","colormode":"hs","reachable":true}},"8":{"type":"Extend
1005210
===