probonopd / ESP8266HueEmulator

Emulate a Philips Hue bridge running on an ESP8266 using the Arduino IDE.
MIT License
411 stars 93 forks source link

cause:2 and 4, boot mode:(1,7) after while saving room in hue app on android #104

Open psgoral opened 6 years ago

psgoral commented 6 years ago

App can find Nodemcu after typing manual IP. When i am saving room name codemcu reset. After that I have to wipe whole memory and update code once again. Whole serial log:

..Starting HTTP at 192.168.0.104:80 Starting SSDP... SSDP Started FS Starting initializeGroupSlots() initializeSceneSlots() 18:21:36 04/02/2018 <?xml version="1.0" ?>10http://192.168.0.104:80/urn:schemas-upnp-org:device:Basic:1Philips hue (192.168.0.104)Royal Philips Electronicshttp://www.philips.comPhilips hue Personal Wireless LightingPhilips hue bridge 2012929000226503http://www.meethue.com5ccf7fdc3cc4uuid:2f402f80-da50-11e1-9b23-5ccf7fdc3cc4index.html image/png 48 48 24 hue_logo_0.png image/png 120 120 24 hue_logo_3.png <?xml version="1.0" ?>10http://192.168.0.104:80/urn:schemas-upnp-org:device:Basic:1Philips hue (192.168.0.104)Royal Philips Electronicshttp://www.philips.comPhilips hue Personal Wireless LightingPhilips hue bridge 2012929000226503http://www.meethue.com5ccf7fdc3cc4uuid:2f402f80-da50-11e1-9b23-5ccf7fdc3cc4index.html image/png 48 48 24 hue_logo_0.png image/png 120 120 24 hue_logo_3.png 67248 {"name":"hue emulator","swversion":"81012917","bridgeid":"5CCF7FFFFEDC3CC4","portalservices":false,"linkbutton":true,"mac":"5C:CF:7F:DC:3C:C4","dhcp":true,"ipaddress":"192.168.0.104","netmask":"255.255.255.0","gateway":"192.168.0.1","apiversion":"1.3.0","localtime":"2018-02-04T18:21:49","timezone":"Europe/London","whitelist":{"api":{"name":"clientname#devicename"}},"swupdate":{"text":"","notify":false,"updatestate":0,"url":""}} 67357 [{"success":{"username":"api"}}] 67495 {"lights":{"1":{"type":"Extended color light","manufacturername":"OpenSource","swversion":"0.1","name":"Hue LightStrips 1","uniqueid":"5C:CF:7F:DC:3C:C4-1","modelid":"LST001","state":{"on":false,"bri":0,"xy":[0.00000,0.00000],"colormode":"hs","effect":"none","ct":500,"hue":0,"sat":0,"alert":"none","reachable":true}},"2":{"type":"Extended color light","manufacturername":"OpenSource","swversion":"0.1","name":"Hue LightStrips 2","uniqueid":"5C:CF:7F:DC:3C:C4-2","modelid":"LST001","state":{"on":false,"bri":0,"xy":[0.00000,0.00000],"colormode":"hs","effect":"none","ct":500,"hue":0,"sat":0,"alert":"none","reachable":true}}},"groups":{},"config":{"name":"hue emulator","swversion":"81012917","bridgeid":"5CCF7FFFFEDC3CC4","portalservices":false,"linkbutton":true,"mac":"5C:CF:7F:DC:3C:C4","dhcp":true,"ipaddress":"192.168.0.104","netmask":"255.255.255.0","gateway":"192.168.0.1","apiversion":"1.3.0","localtime":"2018-02-04T18:21:49","timezone":"Europe/London","whitelist":{"api":{"name":"clientname#devicename"}},"swupdate":{"text":"","notify":false,"updatestate":0,"url":""}},"schedules":{},"scenes":{},"rules":{},"sensors":{},"resourcelinks":{}} 68034 {"lights":{"1":{"type":"Extended color light","manufacturername":"OpenSource","swversion":"0.1","name":"Hue LightStrips 1","uniqueid":"5C:CF:7F:DC:3C:C4-1","modelid":"LST001","state":{"on":false,"bri":0,"xy":[0.00000,0.00000],"colormode":"hs","effect":"none","ct":500,"hue":0,"sat":0,"alert":"none","reachable":true}},"2":{"type":"Extended color light","manufacturername":"OpenSource","swversion":"0.1","name":"Hue LightStrips 2","uniqueid":"5C:CF:7F:DC:3C:C4-2","modelid":"LST001","state":{"on":false,"bri":0,"xy":[0.00000,0.00000],"colormode":"hs","effect":"none","ct":500,"hue":0,"sat":0,"alert":"none","reachable":true}}},"groups":{},"config":{"name":"hue emulator","swversion":"81012917","bridgeid":"5CCF7FFFFEDC3CC4","portalservices":false,"linkbutton":true,"mac":"5C:CF:7F:DC:3C:C4","dhcp":true,"ipaddress":"192.168.0.104","netmask":"255.255.255.0","gateway":"192.168.0.1","apiversion":"1.3.0","localtime":"2018-02-04T18:21:50","timezone":"Europe/London","whitelist":{"api":{"name":"clientname#devicename"}},"swupdate":{"text":"","notify":false,"updatestate":0,"url":""}},"schedules":{},"scenes":{},"rules":{},"sensors":{},"resourcelinks":{}} 68144 {"name":"hue emulator","swversion":"81012917","bridgeid":"5CCF7FFFFEDC3CC4","portalservices":false,"linkbutton":true,"mac":"5C:CF:7F:DC:3C:C4","dhcp":true,"ipaddress":"192.168.0.104","netmask":"255.255.255.0","gateway":"192.168.0.1","apiversion":"1.3.0","localtime":"2018-02-04T18:21:50","timezone":"Europe/London","whitelist":{"api":{"name":"clientname#devicename"}},"swupdate":{"text":"","notify":false,"updatestate":0,"url":""}} configFn:{"UTC":"2018-02-04T18:22:46"} 68193 [{"success":{"/config/UTC":"2018-02-04T18:22:46"}}] <?xml version="1.0" ?>10http://192.168.0.104:80/urn:schemas-upnp-org:device:Basic:1Philips hue (192.168.0.104)Royal Philips Electronicshttp://www.philips.comPhilips hue Personal Wireless LightingPhilips hue bridge 2012929000226503http://www.meethue.com5ccf7fdc3cc4uuid:2f402f80-da50-11e1-9b23-5ccf7fdc3cc4index.html image/png 48 48 24 hue_logo_0.png image/png 120 120 24 hue_logo_3.png configFn:{"portalservices":true} 71880 [{"success":{"/config/portalservices":true}}] 72198 {"lights":{"1":{"type":"Extended color light","manufacturername":"OpenSource","swversion":"0.1","name":"Hue LightStrips 1","uniqueid":"5C:CF:7F:DC:3C:C4-1","modelid":"LST001","state":{"on":false,"bri":0,"xy":[0.00000,0.00000],"colormode":"hs","effect":"none","ct":500,"hue":0,"sat":0,"alert":"none","reachable":true}},"2":{"type":"Extended color light","manufacturername":"OpenSource","swversion":"0.1","name":"Hue LightStrips 2","uniqueid":"5C:CF:7F:DC:3C:C4-2","modelid":"LST001","state":{"on":false,"bri":0,"xy":[0.00000,0.00000],"colormode":"hs","effect":"none","ct":500,"hue":0,"sat":0,"alert":"none","reachable":true}}},"groups":{},"config":{"name":"hue emulator","swversion":"81012917","bridgeid":"5CCF7FFFFEDC3CC4","portalservices":false,"linkbutton":true,"mac":"5C:CF:7F:DC:3C:C4","dhcp":true,"ipaddress":"192.168.0.104","netmask":"255.255.255.0","gateway":"192.168.0.1","apiversion":"1.3.0","localtime":"2018-02-04T18:21:54","timezone":"Europe/London","whitelist":{"api":{"name":"clientname#devicename"}},"swupdate":{"text":"","notify":false,"updatestate":0,"url":""}},"schedules":{},"scenes":{},"rules":{},"sensors":{},"resourcelinks":{}} 78373 {"name":"hue emulator","swversion":"81012917","bridgeid":"5CCF7FFFFEDC3CC4","portalservices":false,"linkbutton":true,"mac":"5C:CF:7F:DC:3C:C4","dhcp":true,"ipaddress":"192.168.0.104","netmask":"255.255.255.0","gateway":"192.168.0.1","apiversion":"1.3.0","localtime":"2018-02-04T18:22:00","timezone":"Europe/London","whitelist":{"api":{"name":"clientname#devicename"}},"swupdate":{"text":"","notify":false,"updatestate":0,"url":""}} updateGroupSlot:{"name":"test","lights":["1","2"],"type":"Room","class":"Living room"} Updating GROUP-0.json 83342 [{"success":{"id":"1"}}] 88471 {"name":"hue emulator","swversion":"81012917","bridgeid":"5CCF7FFFFEDC3CC4","portalservices":false,"linkbutton":true,"mac":"5C:CF:7F:DC:3C:C4","dhcp":true,"ipaddress":"192.168.0.104","netmask":"255.255.255.0","gateway":"192.168.0.1","apiversion":"1.3.0","localtime":"2018-02-04T18:22:10","timezone":"Europe/London","whitelist":{"api":{"name":"clientname#devicename"}},"swupdate":{"text":"","notify":false,"updatestate":0,"url":""}} sceneCreationHandler() updateSceneSlot:{"name":"Savanna sunset","lights":["1","2"]} updating lightScene->id to 0 88899 [{"success":{"id":"0"}}] Updating Scene 0SCENE-0.json Adding lightstates sceneCreationHandler() updateSceneSlot:{"name":"Nightlight","lights":["1","2"]} updating lightScene->id to 1 88970 [{"success":{"id":"1"}}] Updating Scene 1SCENE-1.json Adding lightstates sceneCreationHandler() updateSceneSlot:{"name":"Tropical twilight","lights":["1","2"]} updating lightScene->id to 2 89038 [{"success":{"id":"2"}}] Updating Scene 2SCENE-2.json Adding lightstates sceneCreationHandler() updateSceneSlot:{"name":"Bright","lights":["1","2"]} updating lightScene->id to 3 89109 [{"success":{"id":"3"}}] Updating Scene 3SCENE-3.json Adding lightstates sceneCreationHandler() updateSceneSlot:{"name":"Arctic aurora","lights":["1","2"]} updating lightScene->id to 4 89179

Updating Scene 4SCENE-4.json Adding lightstates sceneCreationHandler() updateSceneSlot:{"name":"Concentrate","lights":["1","2"]} updating lightScene->id to 5 89239

Updating Scene 5SCENE-5.json Adding lightstates sceneCreationHandler() updateSceneSlot:{"name":"Relax","lights":["1","2"]} updating lightScene->id to 6 90249

Updating Scene 6SCENE-6.json Adding lightstates

Exception (28): epc1=0x40216c3c epc2=0x00000000 epc3=0x00000000 excvaddr=0x0000000c depc=0x00000000

ctx: cont sp: 3fff1800 end: 3fff1bb0 offset: 01a0

stack>>> 3fff19a0: 3fffbf1c 00000001 3fff09d0 402084a7
3fff19b0: 00000000 00000000 00000000 00000000
3fff19c0: 00000000 00000000 00000000 00000000
3fff19d0: 00000320 3fffbedc 0000000f 00000001
3fff19e0: 00000000 3fffb56c 3fffbeb4 00000000
3fff19f0: 00000006 3fff0ac4 3fff1a10 3fff0448
3fff1a00: 00000006 3fff0ac4 3fff1a60 4020abab
3fff1a10: 3ffea488 00000000 000003e8 40214c27
3fff1a20: 3fffbb54 3fff551c 00000000 00000000
3fff1a30: 00000000 3fff263c 0000000f 0000000c
3fff1a40: 3ffe98ec 3fff1aa0 3fff375c 00000002
3fff1a50: 3fff1aa0 00000002 3ffe98ec 4020b062
3fff1a60: 3fff54ac 0000000f 00000001 40214bd8
3fff1a70: 3fff52dc 0000000f 3fff533c 0000000f
3fff1a80: 00000000 3fff3780 3fff1acc 40214c59
3fff1a90: 00000002 4020b00c 3fff4274 40207800
3fff1aa0: 3fff337c 0000000f 0000000f 40214d88
3fff1ab0: 402077dc 3fff427c 3fff4274 4020785a
3fff1ac0: 00000000 00000000 00000000 00000000
3fff1ad0: 00000000 00000000 3fff1b00 40214d60
3fff1ae0: 00000000 00000000 3fff375c 40207818
3fff1af0: 3fff4274 3fff379c 3fff375c 40211a19
3fff1b00: 3fff52dc 0000000f 0000000f 4020d2bc
3fff1b10: 00000000 00000023 00000023 00000001
3fff1b20: 00000002 00000023 0000000e 3fff0b90
3fff1b30: 00000000 00000000 3fff375c 3fff0b80
3fff1b40: 00000001 3fff3780 3fff375c 40211b4b
3fff1b50: 3ffe9c80 00000000 000003e8 40214b7c
3fff1b60: 00000000 3fffaf3c 3fff522c 40207714
3fff1b70: 3fffdad0 00000000 3fff0b7a 4020895b
3fff1b80: 00000000 00000000 3fff0b7a 40207470
3fff1b90: 3fffdad0 00000000 3fff0b7a 402156d8
3fff1ba0: feefeffe feefeffe 3fff0b90 40100718
<<<stack<<<

ets Jan 8 2013,rst cause:2, boot mode:(1,7)

ets Jan 8 2013,rst cause:4, boot mode:(1,7)

wdt reset

MopheusDG commented 6 years ago

Same problem here. Can't create rooms.

dimiepp commented 6 years ago

Exactly the same with me (on wemos D1 mini and nodeMCU v.3)

jakobgrine commented 6 years ago

I have exactly the same problem.

sergiovende commented 5 years ago

I have the same problem. What did you do in the meanwhile?

psgoral commented 5 years ago

@sergiovende nothing. i gave up :/

sergiovende commented 5 years ago

@psgoral I will try to use a 3rd party app, instead of the original one. For example, “Lamptier” looks nice and it doesn’t require the room definition.