hyperion-project / hyperion.ng

The successor to Hyperion aka Hyperion Next Generation
https://hyperion-project.org/
MIT License
3.04k stars 377 forks source link

Nanoleaf Light Panels (Aurora) stay black #633

Closed Lord-Grey closed 4 years ago

Lord-Grey commented 4 years ago

Originally posted by @AnthraxLeprosyPi in #592 (comment)

Hi Leute,

ist auch schon wieder eine Weile her - die work/life/kids balance kippt selten zu life - schnief...

Ich habe eben nochmal meine Nanoleafs komplett neu hinzugefügt und bekomme die folgenden Debug-Ausgaben:

Oct 10 20:45:46 osmc systemd[1]: Started Hyperion ambient light systemd service for user osmc. Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond EFFECTFILES] <INFO> 36 effects loaded from directory :/effects/ Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond EFFECTFILES] <INFO> 19 effect schemas loaded from directory :/effects/schema/ Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond EFFECTFILES] <INFO> 0 effects loaded from directory /home/osmc/.hyperion/custom-effects Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond SettingsManager] <DEBUG> <SettingsManager.cpp:101:SettingsManager()> Settings database initialized Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond BLACKBORDER] <DEBUG> <BlackBorderProcessor.cpp:65:handleSettingsUpdate()> Set mode to: default Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond ComponentRegister] <DEBUG> <ComponentRegister.cpp:67:componentStateChanged()> Blackborder detector: enabled Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond ComponentRegister] <DEBUG> <ComponentRegister.cpp:67:componentStateChanged()> LED device: enabled Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDeviceAdalight.cpp:53:init()> Adalight header for 160 leds: Ada 0x00 0x9f 0xca Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <INFO> LedDevice 'adalight' configured. Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <INFO> Opening UART: /dev/ttyACM0 Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond ComponentRegister] <DEBUG> <ComponentRegister.cpp:67:componentStateChanged()> Smoothing: enabled Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond FLATBUFCONNECTION] <INFO> Connecting to Hyperion: 127.0.0.1:19401 Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond EFFECTENGINE] <INFO> run effect Random on channel 0 Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <ProviderRs232.cpp:182:tryOpen()> Setting baud rate to 1000000 Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <ProviderRs232.cpp:198:tryOpen()> Device blocked for 1500 ms Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond HYPERION] <DEBUG> <PriorityMuxer.cpp:153:registerInput()> Register new input 'System/EFFECT' with priority 0 as inactive Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond HYPERION] <INFO> Initial foreground effect 'Random' started Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDeviceAdalight.cpp:80:receivedData()> >>received 4 bytes data[hyperiond HYPERION] <DEBUG> <PriorityMuxer.cpp:153:registerInput()> Register new input 'System/GRABBER' with priority 250 as inactive Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond ComponentRegister] <DEBUG> <ComponentRegister.cpp:67:componentStateChanged()> Framegrabber: enabled Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond BOBLIGHT] <DEBUG> <BoblightServer.cpp:28:BoblightServer()> Instance created Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond SettingsManager] <DEBUG> <SettingsManager.cpp:101:SettingsManager()> Settings database initialized Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond BLACKBORDER] <DEBUG> <BlackBorderProcessor.cpp:65:handleSettingsUpdate()> Set mode to: default Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond ComponentRegister] <DEBUG> <ComponentRegister.cpp:67:componentStateChanged()> Blackborder detector: enabled Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond ComponentRegister] <DEBUG> <ComponentRegister.cpp:67:componentStateChanged()> LED device: enabled Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <INFO> LedDevice 'philipshueentertainment' configured. Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond ComponentRegister] <DEBUG> <ComponentRegister.cpp:67:componentStateChanged()> Smoothing: enabled Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond ComponentRegister] <DEBUG> <ComponentRegister.cpp:67:componentStateChanged()> Smoothing: disabled Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond EFFECTENGINE] <INFO> run effect Rainbow swirl fast on channel 0 Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond HYPERION] <DEBUG> <PriorityMuxer.cpp:153:registerInput()> Register new input 'System/EFFECT' with priority 0 as inactive Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond HYPERION] <INFO> Initial foreground effect 'Rainbow swirl fast' started Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond HYPERION] <DEBUG> <PriorityMuxer.cpp:153:registerInput()> Register new input 'System/GRABBER' with priority 250 as inactive Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond ComponentRegister] <DEBUG> <ComponentRegister.cpp:67:componentStateChanged()> Framegrabber: enabled Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond BOBLIGHT] <DEBUG> <BoblightServer.cpp:28:BoblightServer()> Instance created Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDevicePhilipsHueEntertainment.cpp:22:start()> Philips Hue Entertainment Thread started Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDevicePhilipsHueEntertainment.cpp:53:initBridge()> Init and connect Philips Hue Bridge Oct 10 20:45:46 osmc hyperiond[3012]: Philips Hue Bridge Thread start Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond SettingsManager] <DEBUG> <SettingsManager.cpp:101:SettingsManager()> Settings database initialized Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond BLACKBORDER] <DEBUG> <BlackBorderProcessor.cpp:65:handleSettingsUpdate()> Set mode to: default Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond ComponentRegister] <DEBUG> <ComponentRegister.cpp:67:componentStateChanged()> Blackborder detector: enabled Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond DAEMON] <INFO> set screen capture device to 'amlogic' Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond AMLOGICGRABBER] <DEBUG> <Grabber.cpp:33:setVideoMode()> Set videomode to 0 Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond FRAMEBUFFERGRABBER] <DEBUG> <Grabber.cpp:33:setVideoMode()> Set videomode to 0 Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond FRAMEBUFFERGRABBER] <INFO> Display opened with resolution: 1920x1080@32bit Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond AMLOGICGRABBER] <DEBUG> <AmlogicGrabber.cpp:31:AmlogicGrabber()> constructed(160 x 160), grabber device: /dev/amvideocap0 Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond DAEMON] <INFO> AMLOGIC grabber created Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond DAEMON] <ERROR> The v4l2 grabber can not be instantiated, because it has been left out from the build Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond JSONSERVER] <DEBUG> <JsonServer.cpp:25:JsonServer()> Created instance Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond JSONSERVER] <INFO> Started on port 19444 Oct 10 20:45:46 osmc hyperiond[3012]: The v4l2 grabber can not be instantiated, because it has been left out from the build Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond ComponentRegister] <DEBUG> <ComponentRegister.cpp:67:componentStateChanged()> LED device: enabled Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDeviceNanoleaf.cpp:91:init()> ActiveDevice : nanoleaf Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDeviceNanoleaf.cpp:92:init()> LedCount : 24 Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDeviceNanoleaf.cpp:93:init()> ColorOrder : rgb Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDeviceNanoleaf.cpp:94:init()> LatchTime : 1 Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDevicePhilipsHue.cpp:387:bridgeConnect()> Connect to bridge Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDevicePhilipsHue.cpp:400:sendRequest()> GET http://10.0.10.4/api/-Dp4XOV2Eni4txx1PBIFCi8ZoOA3XjBrhbEvMzSa/ Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDeviceNanoleaf.cpp:247:getJson()> GET: [http://10.0.10.111:16021/api/v1/cA2MshdaAf4OD87DL5J8fH3AWNbhEKJb/] Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond FLATBUFSERVER] <INFO> Started on port 19400 Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond HYPERION] <INFO> Hyperion instance 'TV Ambilight ' has been started Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond HYPERION] <INFO> Hyperion instance 'Hue Entertainment' has been started Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond AMLOGICGRABBER] <INFO> VPU mode Oct 10 20:45:46 osmc hyperiond[3012]: "No carrier" Oct 10 20:45:46 osmc hyperiond[3012]: [hyperiond PROTOSERVER] <INFO> Started on port 19445 Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond HYPERION] <DEBUG> <PriorityMuxer.cpp:233:setInputImage()> Priority 250 is now active Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond HYPERION] <DEBUG> <PriorityMuxer.cpp:333:setCurrentTime()> Set visible priority to 0 Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond HYPERION] <DEBUG> <PriorityMuxer.cpp:233:setInputImage()> Priority 250 is now active Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond HYPERION] <DEBUG> <PriorityMuxer.cpp:333:setCurrentTime()> Set visible priority to 0 Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDevice.cpp:44:visiblePriorityChanged()> priority: 0 Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond WEBSERVER] <DEBUG> <WebServer.cpp:105:handleSettingsUpdate()> Set document root to: :/webconfig Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond WEBSERVER] <DEBUG> <WebServer.cpp:105:handleSettingsUpdate()> Set document root to: :/webconfig Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDevice.cpp:44:visiblePriorityChanged()> priority: 0 Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond WEBSERVER] <INFO> Started on port 8090 name 'Hyperion Webserver' Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond WEBSERVER] <DEBUG> <WebServer.cpp:171:handleSettingsUpdate()> Setup SSL certificate Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond WEBSERVER] <DEBUG> <WebServer.cpp:187:handleSettingsUpdate()> Setup private SSL key Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond WEBSERVER] <INFO> Started on port 8092 name 'Hyperion Webserver' Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDeviceNanoleaf.cpp:122:init()> Name : Nanoleaf Light Panels 54:e9:0e Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDeviceNanoleaf.cpp:123:init()> Model : NL22 Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDeviceNanoleaf.cpp:124:init()> Manufacturer : Nanoleaf Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDeviceNanoleaf.cpp:125:init()> FirmwareVersion: 3.2.0 Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDeviceNanoleaf.cpp:167:init()> PanelsNum : 24 Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDeviceNanoleaf.cpp:168:init()> PanelLedCount : 24 Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDeviceNanoleaf.cpp:470:switchOn()> switchOn() Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDeviceNanoleaf.cpp:473:switchOn()> Set Nanoleaf to External Control (UDP) streaming mode Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDeviceNanoleaf.cpp:271:putJson()> PUT: [http://10.0.10.111:16021/api/v1/cA2MshdaAf4OD87DL5J8fH3AWNbhEKJb/effects] [{"write" : {"command" : "display", "animType" : "extControl"}}] Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDevicePhilipsHue.cpp:506:resolveReply()> GetOperation Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDevicePhilipsHue.cpp:579:resolveReply()> new Group ready Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <INFO> Entertainment Group "Wohnzimmer" (ID 4) found Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <INFO> 8 Lights in "Wohnzimmer" Group (ID 4) found Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDevicePhilipsHue.cpp:603:resolveReply()> new Lights ready Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDevicePhilipsHue.cpp:177:PhilipsHueLight()> Recognized model id LCT001 of light ID 3 as gamut B Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDevicePhilipsHue.cpp:256:saveOriginalState()> originalColor state on: { "xy": [0.3129, 0.3249], "bri": 4.0000 } Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <INFO> Light ID 3 ("Hue Lampe Rund", LED index "0") created Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDevicePhilipsHue.cpp:169:PhilipsHueLight()> Recognized model id LLC010 of light ID 4 as gamut A Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDevicePhilipsHue.cpp:256:saveOriginalState()> originalColor state on: { "xy": [0.4509, 0.3119], "bri": 4.0000 } Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <INFO> Light ID 4 ("Hue Iris", LED index "1") created Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDevicePhilipsHue.cpp:185:PhilipsHueLight()> Recognized model id LCT012 of light ID 6 as gamut C Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDevicePhilipsHue.cpp:256:saveOriginalState()> originalColor state on: { "xy": [0.4532, 0.3206], "bri": 5.0000 } Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <INFO> Light ID 6 ("Hue Lampe Unten", LED index "2") created Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDevicePhilipsHue.cpp:185:PhilipsHueLight()> Recognized model id LCT012 of light ID 7 as gamut C Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDevicePhilipsHue.cpp:256:saveOriginalState()> originalColor state on: { "xy": [0.4285, 0.3173], "bri": 2.0000 } Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <INFO> Light ID 7 ("Hue Lampe Mitte", LED index "3") created Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDevicePhilipsHue.cpp:185:PhilipsHueLight()> Recognized model id LCT012 of light ID 8 as gamut C Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <INFO> Light ID 8 ("Hue Lampe Oben", LED index "4") created Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDevicePhilipsHue.cpp:185:PhilipsHueLight()> Recognized model id LCT024 of light ID 11 as gamut C Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDevicePhilipsHue.cpp:256:saveOriginalState()> originalColor state on: { "xy": [0.3351, 0.3242], "bri": 1.0000 } Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <INFO> Light ID 11 ("Hue Play Links", LED index "5") created Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDevicePhilipsHue.cpp:185:PhilipsHueLight()> Recognized model id LCT024 of light ID 12 as gamut C Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDevicePhilipsHue.cpp:256:saveOriginalState()> originalColor state on: { "xy": [0.3509, 0.3687], "bri": 1.0000 } Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <INFO> Light ID 12 ("Hue Play Rechts", LED index "6") created Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDevicePhilipsHue.cpp:185:PhilipsHueLight()> Recognized model id LST002 of light ID 14 as gamut C Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDevicePhilipsHue.cpp:256:saveOriginalState()> originalColor state on: { "xy": [0.4174, 0.2696], "bri": 2.0000 } Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <INFO> Light ID 14 ("Hue Lightstrip Plus", LED index "7") created Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <INFO> 8 Lights, 8 IDs in "Wohnzimmer" Group (ID 4) created Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDevicePhilipsHueEntertainment.cpp:99:startStreaming()> Prepare Streaming Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <INFO> Connecting Philips Hue Entertainment Streamer Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <INFO> check Streaming Group: "Wohnzimmer" (ID 4) state Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDevicePhilipsHue.cpp:506:resolveReply()> GetOperation Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDeviceNanoleaf.cpp:271:putJson()> PUT: [http://10.0.10.111:16021/api/v1/cA2MshdaAf4OD87DL5J8fH3AWNbhEKJb/state] [{"on":{"value":true}}] Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond HYPERION] <DEBUG> <PriorityMuxer.cpp:193:setInput()> Priority 0 is now active Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <ProviderUdp.cpp:40:init()> Successfully parsed as an ip address. Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <ProviderUdp.cpp:61:init()> UDP using 10.0.10.111:61 Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDeviceNanoleaf.cpp:188:init()> Started successfully Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <INFO> LedDevice 'nanoleaf' configured. Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond ComponentRegister] <DEBUG> <ComponentRegister.cpp:67:componentStateChanged()> Smoothing: enabled Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond ComponentRegister] <DEBUG> <ComponentRegister.cpp:67:componentStateChanged()> Smoothing: disabled Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond EFFECTENGINE] <INFO> run effect Random on channel 0 Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond HYPERION] <DEBUG> <PriorityMuxer.cpp:153:registerInput()> Register new input 'System/EFFECT' with priority 0 as inactive Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond HYPERION] <INFO> Initial foreground effect 'Random' started Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond HYPERION] <DEBUG> <PriorityMuxer.cpp:153:registerInput()> Register new input 'System/GRABBER' with priority 250 as inactive Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond ComponentRegister] <DEBUG> <ComponentRegister.cpp:67:componentStateChanged()> Framegrabber: enabled Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond BOBLIGHT] <DEBUG> <BoblightServer.cpp:28:BoblightServer()> Instance created Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond HYPERION] <DEBUG> <PriorityMuxer.cpp:333:setCurrentTime()> Set visible priority to 0 Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDevice.cpp:44:visiblePriorityChanged()> priority: 0 Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond HYPERION] <INFO> Hyperion instance 'Nanoleaf' has been started Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond HYPERION] <DEBUG> <PriorityMuxer.cpp:233:setInputImage()> Priority 250 is now active Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDevicePhilipsHue.cpp:441:resolveReply()> PutOperation Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDevicePhilipsHue.cpp:489:resolveReply()> Stream Group not ready, recheck State Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDeviceAdalight.cpp:80:receivedData()> >>received 4 bytes data Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDevicePhilipsHue.cpp:506:resolveReply()> GetOperation Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <INFO> Switch On Streaming Group ID 4 Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDevicePhilipsHue.cpp:441:resolveReply()> PutOperation Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDevicePhilipsHue.cpp:474:resolveReply()> Stream Group is ready, build Hue Streamer Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDevicePhilipsHueEntertainment.cpp:412:buildStreamer()> start Build Philips Hue Entertainment Streamer Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond HYPERION] <DEBUG> <PriorityMuxer.cpp:233:setInputImage()> Priority 0 is now active Oct 10 20:45:47 osmc hyperiond[3012]: [hyperiond HYPERION] <DEBUG> <PriorityMuxer.cpp:193:setInput()> Priority 0 is now active Oct 10 20:45:48 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDeviceAdalight.cpp:80:receivedData()> >>received 4 bytes data Oct 10 20:45:48 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <ProviderRs232.cpp:216:writeBytes()> 29 frames dropped Oct 10 20:45:48 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <INFO> Philips Hue Entertaiment Streamer successful connected! Ready for Streaming. Oct 10 20:45:48 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <INFO> Start Philips Hue Entertainment Streaming Oct 10 20:45:49 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDeviceAdalight.cpp:80:receivedData()> >>received 4 bytes data Oct 10 20:45:50 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> Previous line repeats 1 times Oct 10 20:45:50 osmc hyperiond[3012]: [hyperiond HYPERION] <DEBUG> <PriorityMuxer.cpp:293:setCurrentTime()> Timeout clear for priority 0 Oct 10 20:45:50 osmc hyperiond[3012]: [hyperiond HYPERION] <DEBUG> <PriorityMuxer.cpp:333:setCurrentTime()> Set visible priority to 250 Oct 10 20:45:50 osmc hyperiond[3012]: [hyperiond HYPERION] <DEBUG> <PriorityMuxer.cpp:293:setCurrentTime()> Timeout clear for priority 0 Oct 10 20:45:50 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDevice.cpp:44:visiblePriorityChanged()> priority: 250 Oct 10 20:45:50 osmc hyperiond[3012]: [hyperiond WEBSOCKET] <DEBUG> <WebSocketClient.cpp:30:WebSocketClient()> New connection from ::ffff:10.0.10.14 Oct 10 20:45:50 osmc hyperiond[3012]: [hyperiond WEBSOCKET] <DEBUG> <JsonAPI.cpp:107:handleInstanceSwitch()> Client '::ffff:10.0.10.14' switch to Hyperion instance 0 Oct 10 20:45:50 osmc hyperiond[3012]: [hyperiond HYPERION] <DEBUG> <PriorityMuxer.cpp:333:setCurrentTime()> Set visible priority to 250 Oct 10 20:45:50 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDevice.cpp:44:visiblePriorityChanged()> priority: 250 Oct 10 20:45:51 osmc hyperiond[3012]: [hyperiond HYPERION] <DEBUG> <PriorityMuxer.cpp:293:setCurrentTime()> Timeout clear for priority 0 Oct 10 20:45:51 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDeviceAdalight.cpp:80:receivedData()> >>received 4 bytes data Oct 10 20:45:51 osmc hyperiond[3012]: [hyperiond HYPERION] <DEBUG> <PriorityMuxer.cpp:333:setCurrentTime()> Set visible priority to 250 Oct 10 20:45:51 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDevice.cpp:44:visiblePriorityChanged()> priority: 250 Oct 10 20:45:52 osmc hyperiond[3012]: [hyperiond LEDDEVICE] <DEBUG> <LedDeviceAdalight.cpp:80:receivedData()> >>received 4 bytes data Oct 10 20:45:56 osmc hyperiond[3012]: "No carrier"

Habt Ihr eine Idee, warum die Nanoleaf schwarz bleiben? Laut App werden die extern angesteuert...

Besten Dank Anthrax

Originally posted by @AnthraxLeprosyPi in https://github.com/hyperion-project/hyperion.ng/pull/592#issuecomment-540724739

Lord-Grey commented 4 years ago

@AnthraxLeprosyPi

Ich habe jetzt in meinem Repository die beiden Nanoleaf Device Files mit detaillierterem Debug Output eingecheckt: LedDeviceNanoleaf.cpp LedDeviceNanoleaf.h

Kannst Du:

  1. die beiden Dateien in Deine Codebase integrieren
  2. in der LedDeviceNanoleaf.cpp die Verbosity erhöhen, d.h.
static const bool verbose  = true;
static const bool verbose3 = true;
  1. ein neues hyperion.ng bauen
  2. hyperion.ng starten und nur das Nanoleaf Device konfigurieren, plus DEBUG Logging einschalten (damit das Log lesbar wird und Seiteneffekte von mehreren Devices erstmal ausgeschlossen werden)
  3. hyperion.ng neu starten und den Log-Output bereitstellen

Dann schaue ich mal, ob es am NanoleafDevice Code liegt.

Vielen Dank für Deine Unterstützung.

AnthraxLeprosyPi commented 4 years ago

@AnthraxLeprosyPi

Ich habe jetzt in meinem Repository die beiden Nanoleaf Device Files mit detaillierterem Debug Output eingecheckt: LedDeviceNanoleaf.cpp LedDeviceNanoleaf.h

Kannst Du:

  1. die beiden Dateien in Deine Codebase integrieren
  2. in der LedDeviceNanoleaf.cpp die Verbosity erhöhen, d.h.
static const bool verbose  = true;
static const bool verbose3 = true;
  1. ein neues hyperion.ng bauen
  2. hyperion.ng starten und nur das Nanoleaf Device konfigurieren, plus DEBUG Logging einschalten (damit das Log lesbar wird und Seiteneffekte von mehreren Devices erstmal ausgeschlossen werden)
  3. hyperion.ng neu starten und den Log-Output bereitstellen

Dann schaue ich mal, ob es am NanoleafDevice Code liegt.

Vielen Dank für Deine Unterstützung.

So, jetzt habe ich Deine Zeilen auch endlich gefunden und gelesen... Muss ich die anderen beiden Devices löschen oder reicht es diese zu deaktivieren?

Ciao Anthrax

AnthraxLeprosyPi commented 4 years ago

Hi @Lord-Grey,

nun habe ich die Logs (alles nach Anleitung gemacht und auch die Settings-DB nochmal gelöscht vorher):

  1. Log von der Inbetriebnahme der Panels: http://paste.osmc.tv/vicopafine.pl

  2. Log nach Neustart: http://paste.osmc.tv/oxoluqoyax.coffee

Aber wie gesagt, leider bleiben die Panels schwarz... (vor einiger Zeit ging es noch)

Danke Dir! Anthrax

Lord-Grey commented 4 years ago

Hi @AnthraxLeprosyPi

eigentlich sieht alles auf den ersten Blick OK aus. Hast Du alle Logzeilen kopiert?

Ich vermisse im ersten Log noch ein PUT nach

[hyperiond LEDDEVICE] (DEBUG) (LedDeviceNanoleaf.cpp:483:switchOn()) switchOn() [hyperiond LEDDEVICE] (DEBUG) (LedDeviceNanoleaf.cpp:486:switchOn()) Set Nanoleaf to External Control (UDP) streaming mode [hyperiond LEDDEVICE] (DEBUG) (LedDeviceNanoleaf.cpp:287:putJson()) PUT: [http://10.0.10.111:16021/api/v1/cA2MshdaAf4OD87DL5J8fH3AWNbhEKJb/effects] [{"write" : {"command" : "display", "animType" : "extControl"}}]

  1. Kannst Du

in Zeile 319 bitte folgenden String entfernen: "if ( httpStatusCode != 204 )"? Gemäß Doku soll eine Response zu kommen, obwohl ein 204er - "No Content" geschickt wird. Ich würde gerne sehen, ob das so ist.

  1. Bitte ein Log vom Starten bis zum zweiten "writeBytes()" hochladen, damit man alle Logzeilen sieht.

Danke Dir!

PS: Weißt Du zufällig, ab welchem Codestand es nicht mehr funktionierte? Hast Du immer das Nanoleaf device konfiguriert, oder lief es vorher mit dem Aurora Device?

AnthraxLeprosyPi commented 4 years ago

Hi @Lord-Grey,

hier der neue Log: http://paste.osmc.tv/etacuyibey.js

Allerdings kommt er jetzt nicht mehr bis writebytes, da auf Grund des errors das Dummy device genommen wird (nach Auskommentierung: "if ( httpStatusCode != 204 )" )...

Was nun?

Schönen Feiertag Anthrax

Lord-Grey commented 4 years ago

Hi @AnthraxLeprosyPi

Danke für das Log. Jetzt zeigt es mir wenigstens die Events und Replys zwischen PUT und writebytes die gestern gefehlt haben.

Ich bin aktuelle nicht am Recher. Werde mir aber zeitnah überlegen, was wir noch anschauen können.

Lord-Grey commented 4 years ago

Hi @AnthraxLeprosyPi

ich habe mal das Nanoleaf Developer Forum durchsucht und dort wird erwähnt, dass die Light Panels (Aurora) jetzt auch die Version 2 des External Control Modus können.

Lass uns das mal testen. Der Code würde dann einfacher....

Kannst Du bitte das LedDeviceNanoleaf.cpp File durch das Folgende ersetzen, hyperion.ng neu bauen und mir das Log-File bereitstellen?

https://ufile.io/dmxyh2nt

Danke!

AnthraxLeprosyPi commented 4 years ago

YEEEEEEEEEEAAAAAAAAAAAAAAAAAAAHHHHHHHHHHHH!!!!!!!!!!!!

Du kannst dir denken, was passiert ist: sie leuchten wieder!

Anbei die neuen logs.

Inbetriebnahme: http://paste.osmc.tv/irajolamoc.coffee

Neustart & writebytes (wie kann man den kompletten Log bekommen? Das log in der Webgui ist abgeschnitten sobald die writebytes kommen...): http://paste.osmc.tv/miluqejopa.css

Nun bleibt natürlich die Frage, ob ich deine nanoleaf files einfach in @SJunkies letzten Stand integriert bekomme um dann final alles inklusive Hue Entertainment zu Laufen zu bringen... Oder hat sich seitdem noch mehr geändert? Ich habe bspw. gesehen, dass switchable dazu gekommen ist...

DANKE!!!!

Gruß Anthrax

Lord-Grey commented 4 years ago

Hi @AnthraxLeprosyPi

Das sind ja prima Neuigkeiten!!! Ich habe den neuen Code eincheckt (Teil von PR #629)

  1. Nun bleibt natürlich die Frage, ob ich deine nanoleaf files einfach in @SJunkies letzten Stand integriert bekomme

Ich denke Du kannst einfach die beiden Nanoleaf Files in einer Hue Entertainment Umgebung ersetzen; dann sollten das Nanoleaf-Device funktionieren.

Für die komplette "switchable" Unterstützung werden noch Anpassungen in weiteren Files benötigt. Über die "switchable" Eigenschaft eines Devices wird dann gesteuert, ob nach dem Ausschalten eines Devices noch weiter ein "Schwarz" Stream geschickt wird oder nicht. Nanoleaf ist z.B. switchable, was bedeutet, dass wenn Du das LedDevice oder Hyperion über das UI disablest, dann werden keine Daten mehr ins Netzwerk geschickt. Ansonsten bekommt man komische Effekte, wenn man das gleiche Device von zwei Rechnern ansteuert (nur so bin ich darauf gekommen...).

Am besten wäre @Paulchen-Panther zu motivieren die PR #629 in den Master zu integrieren, damit Du alle Changes hast.

  1. Das log in der Webgui ist abgeschnitten

Es scheint, dass im UI nur die letzten 200 Einträge gezeigt werden. Ich starte hyperion.ng immer von der Kommandozeile; dann habe ich immer alles....

Damit ich mir die API Antworten ansehen kann, könntest Du static const bool verbose3 = false; setzen? Dann sollte es mit den 200 Zeilen passen.

  1. Würdest Du mir noch einen weiteren Gefallen tun? Nanoleaf Devices lassen sich über SDDP automatisch finden. Ich würde gerne wissen, ob das auch richtig für die Light Panels funktioniert.

Dazu musst Du nur den Hostname/IP-Adresse in der Konfiguration leer lassen. ggf. musst Du es ein paar mal starten.... Das Log-File hätte ich dann gerne....

AnthraxLeprosyPi commented 4 years ago

@Lord-Grey,

klaro mache mich gleich ran!

Wozu so ein Brückentag ohne Kinder im Haus doch gut ist...

EDIT: Eine Sache die mir noch aufgefallen ist: Die Reihenfolge der Panels ist jetzt eine andere als in meiner Backup-Config - woran kann das liegen?

AnthraxLeprosyPi commented 4 years ago

Hier die Logs für SSDP:

  1. Versuch - nur nanoleaf ausgewählt, nichts eingegeben und gespeichert: http://paste.osmc.tv/egexunihil.coffee

  2. Versuch - neu gestartet und nichts an den settings geändert: http://paste.osmc.tv/kalidumaha.coffee

Was soll denn passieren? Wird die IP-Adresse automatisch eingetragen wenn erfolgreich? Was ist dann mit dem Token?

Gruß Anthrax

Lord-Grey commented 4 years ago

Was soll denn passieren?

Per SSDP wird eine Suche angestoßen. Die Devices melden sich und dann kann man die IP-Adresse für den entsprechenden Typ auslesen. Damit muss man für das Nanoleaf-Device nur den Token angeben.

In Deinem Fall sehe ich nur die Hue-Bridge.

Search for Service [nanoleaf_aurora:light]
HTTP/1.1 200 OK
HOST: 239.255.255.250:1900
EXT:
CACHE-CONTROL: max-age=100
LOCATION: http://10.0.10.4:80/description.xml
SERVER: Linux/3.14.0 UPnP/1.0 IpBridge/1.35.0

hue-bridgeid: 001788FFFEB1D4F4

ST: uuid:2f402f80-da50-11e1-9b23-001788b1d4f4
USN: uuid:2f402f80-da50-11e1-9b23-001788b1d4f4

Ich hatte es bei mir auch schon, dass sich das Nanoleaf-Device nicht zuverlässig meldet....

Trag einfach wieder die IP-Adresse ein....

Kannst Du mir bitte dann nochmal ein Log hochladen? Und mir sagen, ob dann alles geht? Dann kann ich das Issue schließen.

Vielen Dank für Deine tolle Unterstützung!

AnthraxLeprosyPi commented 4 years ago

Ich habe zu DANKEN!

Also ich habe jetzt versucht das ganze nochmal zusammen mit @SJunkies code zu compilieren - allerdings bricht er mit Fehlern ab und die binaries werden nicht gebaut - da scheint sich also mehr getan zu haben. Zudem muss ich für heute Schluss machen...

Wenn ich die IP und den Token eingebe funktioniert es wieder wie hier: http://paste.osmc.tv/irajolamoc.coffee

Dann drücke ich mal die Daumen, dass @SJunkies es nochmal schafft seinen Code auf den aktuellen Master zu ziehen und dann endlich der Pull-Request Richtung Master durchgeht :-)

ciao Anthrax

AnthraxLeprosyPi commented 4 years ago

Der Vollständigkeit halber:

Ich habe die Nanoleaf V2 Umsetzung mit SJunkies Hue Entertainment branch kompatibel gemacht (s. Anhang). Nun spielt erstmals alles perfekt zusammen - das TV Ambilight wie eh und jeh plus die Hues und nun auch die Nanoleaf - mal sehen was der Weihnachtsmann noch bringt ;-)

Auf jeden Fall nochmal ein riesiges Dankeschön an Dich @Lord-Grey und alle anderen die hier etwas wirklich geniales geschaffen haben!

Gruß Anthrax

Vielleicht hilft es ja sonst jemandem: LedDeviceNanoleaf.zip