Build: HEAD detached at 2.0.0-alpha.10.1
I'm able to discover and identify my Shapes set, and the host and token seem to be working, but when I save the host information is lost.
Code
2021-10-05T08:43:37.865Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1404:handleLedDeviceCommand()) message: [{"command":"leddevice","ledDeviceType":"nanoleaf","subcommand":"discover","tan":386}]
2021-10-05T08:43:37.866Z [hyperiond SSDPDISCOVER] (DEBUG) (SSDPDiscover.cpp:206:discoverServices()) Search for Service [ssdp:all], address [239.255.255.250], port [1900]
2021-10-05T08:43:37.970Z [hyperiond SSDPDISCOVER] (DEBUG) (SSDPDiscover.cpp:252:discoverServices()) Found target [ssdp:all], plus record [nanoleaf:nl42] matches [ST:nanoleaf:nl*|nanoleaf_aurora:light]
2021-10-05T08:43:38.695Z [hyperiond SSDPDISCOVER] (DEBUG) (SSDPDiscover.cpp:252:discoverServices()) Previous line repeats 1 times
2021-10-05T08:43:38.696Z [hyperiond SSDPDISCOVER] (DEBUG) (SSDPDiscover.cpp:294:discoverServices()) [2] service record(s) found
2021-10-05T08:43:38.697Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1428:handleLedDeviceCommand()) response: [{"devices":[{"cache-control":"no-cache=\"Ext\", max-age = 60","id":"http://:16021","ip":"","location":"http://:16021","other":{"ext":"","nl-deviceid":"CF:8A:E4:90:74:CE","nl-devicename":"Shapes E76F","s":"uuid:e91115d9-6634-471a-8b03-0a7715fbee0e"},"port":16021,"server":"","st":"nanoleaf:nl42","usn":"uuid:e91115d9-6634-471a-8b03-0a7715fbee0e"},{"cache-control":"no-cache=\"Ext\", max-age = 60","id":"http://:16021","ip":"","location":"http://:16021","other":{"ext":"","nl-deviceid":"62:E1:C7:7A:30:97","nl-devicename":"Shapes 2ADB","s":"uuid:c0b1d9b0-b603-4507-be8f-611e027f1a8f"},"port":16021,"server":"","st":"nanoleaf:nl42","usn":"uuid:c0b1d9b0-b603-4507-be8f-611e027f1a8f"}],"discoveryMethod":"ssdp","ledDeviceType":"nanoleaf"}]
2021-10-05T08:43:44.899Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1404:handleLedDeviceCommand()) message: [{"command":"leddevice","ledDeviceType":"nanoleaf","params":{"host":"192.168.1.126:16021","token":"sEW4TXvovYhmBy0K330zXMnQ2MfOqx35"},"subcommand":"getProperties","tan":440}]
2021-10-05T08:43:44.933Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1438:handleLedDeviceCommand()) response: [{"properties":{"discovery":{},"effects":{"effectsList":["Beatdrop","Blaze","Cocoa Beach","Cotton Candy","Date Night","Eldritch","Hip Hop","Hot Sauce","Jungle","Lightscape","Modern","Morning Sky","Northern Lights","Pop Rocks","Prism","Spider-Man","Starlight","Sundown","Waterfall"],"select":"Eldritch"},"firmwareUpgrade":{},"firmwareVersion":"6.1.2","hardwareVersion":"1.2-0","manufacturer":"Nanoleaf","model":"NL42","name":"Shapes 2ADB","panelLayout":{"globalOrientation":{"max":360,"min":0,"value":269},"layout":{"numPanels":18,"positionData":[{"o":0,"panelId":8098,"shapeType":8,"x":59,"y":116},{"o":300,"panelId":41708,"shapeType":9,"x":126,"y":116},{"o":360,"panelId":21596,"shapeType":9,"x":126,"y":155},{"o":480,"panelId":4303,"shapeType":8,"x":193,"y":116},{"o":540,"panelId":19254,"shapeType":9,"x":260,"y":116},{"o":840,"panelId":1529,"shapeType":9,"x":260,"y":155},{"o":840,"panelId":26233,"shapeType":8,"x":327,"y":116},{"o":1020,"panelId":29805,"shapeType":9,"x":394,"y":116},{"o":1080,"panelId":5878
2021-10-05T08:44:11.974Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1404:handleLedDeviceCommand()) message: [{"command":"leddevice","ledDeviceType":"nanoleaf","params":{"host":"192.168.1.126:16021","token":"sEW4TXvovYhmBy0K330zXMnQ2MfOqx35"},"subcommand":"identify","tan":808}]
2021-10-05T08:44:16.161Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1404:handleLedDeviceCommand()) message: [{"command":"leddevice","ledDeviceType":"nanoleaf","params":{"host":"192.168.1.126:16021","token":"sEW4TXvovYhmBy0K330zXMnQ2MfOqx35"},"subcommand":"identify","tan":694}]
2021-10-05T08:44:22.592Z [hyperiond WEBSOCKET] (DEBUG) (WebSocketClient.cpp:30:WebSocketClient()) New connection from ::ffff:192.168.1.225
2021-10-05T08:44:23.791Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:120:handleInstanceSwitch()) Client '::ffff:192.168.1.225' switch to Hyperion instance 0
2021-10-05T08:44:24.333Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1404:handleLedDeviceCommand()) message: [{"command":"leddevice","ledDeviceType":"nanoleaf","subcommand":"discover","tan":348}]
2021-10-05T08:44:24.334Z [hyperiond SSDPDISCOVER] (DEBUG) (SSDPDiscover.cpp:206:discoverServices()) Search for Service [ssdp:all], address [239.255.255.250], port [1900]
2021-10-05T08:44:24.829Z [hyperiond SSDPDISCOVER] (DEBUG) (SSDPDiscover.cpp:252:discoverServices()) Found target [ssdp:all], plus record [nanoleaf:nl42] matches [ST:nanoleaf:nl*|nanoleaf_aurora:light]
2021-10-05T08:44:26.058Z [hyperiond SSDPDISCOVER] (DEBUG) (SSDPDiscover.cpp:252:discoverServices()) Previous line repeats 1 times
2021-10-05T08:44:26.059Z [hyperiond SSDPDISCOVER] (DEBUG) (SSDPDiscover.cpp:294:discoverServices()) [2] service record(s) found
2021-10-05T08:44:26.060Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1428:handleLedDeviceCommand()) response: [{"devices":[{"cache-control":"no-cache=\"Ext\", max-age = 60","id":"http://:16021","ip":"","location":"http://:16021","other":{"ext":"","nl-deviceid":"CF:8A:E4:90:74:CE","nl-devicename":"Shapes E76F","s":"uuid:e91115d9-6634-471a-8b03-0a7715fbee0e"},"port":16021,"server":"","st":"nanoleaf:nl42","usn":"uuid:e91115d9-6634-471a-8b03-0a7715fbee0e"},{"cache-control":"no-cache=\"Ext\", max-age = 60","id":"http://:16021","ip":"","location":"http://:16021","other":{"ext":"","nl-deviceid":"62:E1:C7:7A:30:97","nl-devicename":"Shapes 2ADB","s":"uuid:c0b1d9b0-b603-4507-be8f-611e027f1a8f"},"port":16021,"server":"","st":"nanoleaf:nl42","usn":"uuid:c0b1d9b0-b603-4507-be8f-611e027f1a8f"}],"discoveryMethod":"ssdp","ledDeviceType":"nanoleaf"}]
Alles anzeigen
Not sure if this might be related to having multiple Nanoleaf sets on my network? Could be that the SSDP Discovery Service is getting confused by the other sets?
Also seeing these error intermittently when try to save or turn on output:
[hyperiond LEDDEVICE] (ERROR) Device disabled, device 'nanoleaf' signals error: ' Open error. UDP Socket not initialised!'
Code
2021-10-05T08:31:10.177Z [hyperiond LEDDEVICE] (DEBUG) (ProviderRestApi.cpp:148:get()) GET: [http://:16021/api/v1/sEW4TXvovYhmBy0K330zXMnQ2MfOqx35/]
2021-10-05T08:31:10.178Z [hyperiond LEDDEVICE] (DEBUG) (ProviderRestApi.cpp:237:getResponse()) Reply.httpStatusCode [0]
2021-10-05T08:31:10.178Z [hyperiond LEDDEVICE] (ERROR) Device disabled, device 'nanoleaf' signals error: 'Getting device details failed with error: 'Host not found''
But it seems like these are just related to the missing host name?
Is this a bug, or am I doing something wrong here?