Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LEDs do not turn off when LED Output is turned off #1352

Closed
1 task done
mrdarrengriffin opened this issue Oct 6, 2021 · 11 comments · Fixed by #1361
Closed
1 task done

LEDs do not turn off when LED Output is turned off #1352

mrdarrengriffin opened this issue Oct 6, 2021 · 11 comments · Fixed by #1361
Assignees
Labels

Comments

@mrdarrengriffin
Copy link

mrdarrengriffin commented Oct 6, 2021

  • I confirm that this is an issue rather than a question.

Bug report

LEDs do not turn off consistently when I turn off LED Output

Steps to reproduce

What is expected?

The LEDs to turn off when I turn off LED Output without them remaining on

What is actually happening?

This issue has been presented before. I think a link to the issue is home-assistant/core#35464

However, I can't find any solution that fixes my problem. Its been a problem since I started using Hyperion in alpha 9 and can't say it has been fixed.

I use the integration in home assistant to control the effects of Hyperion. I want to use it in automatons but when I turn off the device on home assistant, usually the LEDs do not turn off. It takes 5 (ish) times of turning it on and off for the LEDs to actually turn off.

I tested this outside of home assistant and the same issue happens when I toggle LED Output in the Hyperion web interface.

System

Hyperion Server: - Build: (HEAD detached at 2.0.0-alpha.11) (GitHub-f42d5a7/2c79656-1633468939) - Build time: Oct 5 2021 21:26:30 - Git Remote: https://github.com/hyperion-project/hyperion.ng - Version: 2.0.0-alpha.11 - UI Lang: auto (BrowserLang: en-GB) - UI Access: default - Avail Capt: dispmanx,v4l2,framebuffer,qt - Config path: /home/pi/.hyperion - Database: read/write Hyperion Server OS: - Distribution: Raspbian GNU/Linux 10 (buster) - Architecture: arm - CPU Model: ARMv7 Processor rev 4 (v7l) - CPU Type: Raspberry Pi 3 Model B Plus Rev 1.3 - CPU Revision: a020d3 - CPU Hardware: BCM2835 - Kernel: linux (5.10.63-v7+ (WS: 32)) - Root/Admin: false - Qt Version: 5.11.3 - Python Version: 3.7.3 - Browser: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36

@mrdarrengriffin
Copy link
Author

@Lord-Grey as requested. Thanks for taking time to help me with this.

Lord-Grey added a commit to Lord-Grey/hyperion.ng that referenced this issue Oct 10, 2021
@Lord-Grey
Copy link
Collaborator

Same bug, as for #1351

@Lord-Grey Lord-Grey self-assigned this Oct 10, 2021
@mrdarrengriffin
Copy link
Author

Same bug, as for #1351

I just want to point out that this has been an issue since alpha 9. The issue you referenced is indeed similar but mine still stands. Will test again when the next release comes out and let you know. Thanks!

@Lord-Grey
Copy link
Collaborator

Lord-Grey commented Oct 10, 2021

@mrdarrengriffin Would you mind sharing more details about your LEDs used in Hyperion?

Please share debug logs after disabling via HA, as well as the output from "Copy Log to Clipboard"

image

Do your LEDs turn of immediately, when you switch the LED-Device off via the Hyperion UI?
You can do it via the dashboard or Remote Control:

image

@Joeboyc2
Copy link
Contributor

I also have the same issue as mentioned above.

If it helps, I currently have 2 setups:

One running a ws2812 strip which workes as expected, toggeling the "LED Output" switched the light off
and another running a APA102 strip which doesn't work correctly, switching the "LED Output" off freezes the lights, but leaves them on.

The only way to get them to "switch off" is to pass a black colour to them.

I use Home Assistant like others may have mentioned and the latest integration caters for this "issue" by allowing the black colour to be set, but if this can get fixes to allow the "LED Output" toggle to switch the lights off, that would be ideal

Here are my logs:

Hyperion System Summary Report (TV Lights), Reported instance: unknown

< ----- System information -------------------- >
Hyperion Server: 
- Build:           (HEAD detached at 17e8c6bc) (Paulchen-Panther-d43e7e1b/17e8c6bc-1633253402)
- Build time:      Oct  3 2021 09:52:17
- Git Remote:      https://github.com/hyperion-project/hyperion.ng
- Version:         2.0.0-alpha.10.1
- UI Lang:         auto (BrowserLang: en-US)
- UI Access:       expert
- Avail Capt:      dispmanx,v4l2,framebuffer,qt
- Config path:     /home/pi/.hyperion
- Database:        read/write

Hyperion Server OS: 
- Distribution:   Raspbian GNU/Linux 10 (buster)
- Architecture:   arm
- CPU Model:      ARMv7 Processor rev 4 (v7l)
- CPU Type:       Raspberry Pi 3 Model B Rev 1.2
- CPU Revision:   a02082
- CPU Hardware:   BCM2835
- Kernel:         linux (4.19.75-v7+ (WS: 32))
- Root/Admin:     false
- Qt Version:     5.7.1
- Python Version: 3.5.3
- Browser:        Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36

< ----- Configured Instances ------------------ >
0: TV Lights Running: true

< ----- This instance's priorities ------------ >
120:  VISIBLE! (COLOR) Owner: undefined
priorities_autoselect: true

< ----- This instance components' status ------->
ALL - true
SMOOTHING - true
BLACKBORDER - true
FORWARDER - false
BOBLIGHTSERVER - false
GRABBER - false
V4L - true
LEDDEVICE - true

< ----- This instance's configuration --------- >
{"backgroundEffect":{"color":[255,138,0],"effect":"Warm mood blobs","enable":false,"type":"effect"},"blackborderdetector":{"blurRemoveCnt":1,"borderFrameCnt":50,"enable":true,"maxInconsistentCnt":10,"mode":"default","threshold":5,"unknownFrameCnt":600},"boblightServer":{"enable":false,"port":19333,"priority":128},"color":{"channelAdjustment":[{"backlightColored":false,"backlightThreshold":0,"blue":[0,0,255],"brightness":100,"brightnessCompensation":0,"cyan":[0,255,255],"gammaBlue":2,"gammaGreen":2,"gammaRed":2,"green":[0,255,0],"id":"default","leds":"*","magenta":[255,0,255],"red":[255,0,0],"white":[255,255,255],"yellow":[255,255,0]}],"imageToLedMappingType":"multicolor_mean"},"device":{"colorOrder":"bgr","hardwareLedCount":110,"invert":false,"latchTime":0,"output":"/dev/spidev0.0","rate":1000000,"rewriteTime":0,"type":"apa102"},"effects":{"disable":[""],"paths":["$ROOT/custom-effects"]},"flatbufServer":{"enable":true,"port":19400,"timeout":5},"foregroundEffect":{"color":[0,0,255],"duration_ms":3000,"effect":"Rainbow swirl fast","enable":true,"type":"effect"},"forwarder":{"enable":false,"flat":["127.0.0.1:19401"],"json":["127.0.0.1:19446"]},"framegrabber":{"cropBottom":0,"cropLeft":0,"cropRight":0,"cropTop":0,"device":"auto","enable":false,"fps":10,"height":45,"input":0,"pixelDecimation":8,"width":80},"general":{"configVersion":"2.0.0-alpha.10","name":"TV Lights","previousVersion":"2.0.0-alpha.10","showOptHelp":true,"watchedVersionBranch":"Stable"},"grabberV4L2":{"available_devices":"UVC Camera (534d:2109): USB Vid","blueSignalThreshold":5,"cecDetection":true,"cropBottom":0,"cropLeft":0,"cropRight":0,"cropTop":0,"device":"/dev/video0","device_inputs":"0","enable":true,"encoding":"YUYV","flip":"NO_CHANGE","fps":10,"fpsSoftwareDecimation":0,"framerates":"10","greenSignalThreshold":5,"hardware_brightness":-11,"hardware_contrast":148,"hardware_hue":0,"hardware_saturation":180,"height":600,"input":0,"noSignalCounterThreshold":200,"redSignalThreshold":5,"resolutions":"3","sDHOffsetMax":0.75,"sDHOffsetMin":0.25,"sDVOffsetMax":0.75,"sDVOffsetMin":0.25,"signalDetection":true,"sizeDecimation":6,"standard":"NONE","width":800},"instCapture":{"systemEnable":false,"systemGrabberDevice":"NONE","systemPriority":250,"v4lEnable":true,"v4lGrabberDevice":"UVC Camera (534d:2109): USB Vid","v4lPriority":120},"jsonServer":{"port":19444},"ledConfig":{"classic":{"bottom":35,"edgegap":0,"glength":0,"gpos":0,"hdepth":7,"left":20,"overlap":0,"pblh":0,"pblv":100,"pbrh":100,"pbrv":100,"position":0,"ptlh":0,"ptlv":0,"ptrh":100,"ptrv":0,"reverse":true,"right":20,"top":35,"vdepth":5},"matrix":{"cabling":"snake","ledshoriz":1,"ledsvert":1,"start":"top-left"}},"leds":[{"hmax":0.05,"hmin":0,"vmax":0.05,"vmin":0},{"hmax":0.05,"hmin":0,"vmax":0.1,"vmin":0.05},{"hmax":0.05,"hmin":0,"vmax":0.15,"vmin":0.1},{"hmax":0.05,"hmin":0,"vmax":0.2,"vmin":0.15},{"hmax":0.05,"hmin":0,"vmax":0.25,"vmin":0.2},{"hmax":0.05,"hmin":0,"vmax":0.3,"vmin":0.25},{"hmax":0.05,"hmin":0,"vmax":0.35,"vmin":0.3},{"hmax":0.05,"hmin":0,"vmax":0.4,"vmin":0.35},{"hmax":0.05,"hmin":0,"vmax":0.45,"vmin":0.4},{"hmax":0.05,"hmin":0,"vmax":0.5,"vmin":0.45},{"hmax":0.05,"hmin":0,"vmax":0.55,"vmin":0.5},{"hmax":0.05,"hmin":0,"vmax":0.6,"vmin":0.55},{"hmax":0.05,"hmin":0,"vmax":0.65,"vmin":0.6},{"hmax":0.05,"hmin":0,"vmax":0.7,"vmin":0.65},{"hmax":0.05,"hmin":0,"vmax":0.75,"vmin":0.7},{"hmax":0.05,"hmin":0,"vmax":0.8,"vmin":0.75},{"hmax":0.05,"hmin":0,"vmax":0.85,"vmin":0.8},{"hmax":0.05,"hmin":0,"vmax":0.9,"vmin":0.85},{"hmax":0.05,"hmin":0,"vmax":0.95,"vmin":0.9},{"hmax":0.05,"hmin":0,"vmax":1,"vmin":0.95},{"hmax":0.0286,"hmin":0,"vmax":1,"vmin":0.93},{"hmax":0.0571,"hmin":0.0286,"vmax":1,"vmin":0.93},{"hmax":0.0857,"hmin":0.0571,"vmax":1,"vmin":0.93},{"hmax":0.1143,"hmin":0.0857,"vmax":1,"vmin":0.93},{"hmax":0.1429,"hmin":0.1143,"vmax":1,"vmin":0.93},{"hmax":0.1714,"hmin":0.1429,"vmax":1,"vmin":0.93},{"hmax":0.2,"hmin":0.1714,"vmax":1,"vmin":0.93},{"hmax":0.2286,"hmin":0.2,"vmax":1,"vmin":0.93},{"hmax":0.2571,"hmin":0.2286,"vmax":1,"vmin":0.93},{"hmax":0.2857,"hmin":0.2571,"vmax":1,"vmin":0.93},{"hmax":0.3143,"hmin":0.2857,"vmax":1,"vmin":0.93},{"hmax":0.3429,"hmin":0.3143,"vmax":1,"vmin":0.93},{"hmax":0.3714,"hmin":0.3429,"vmax":1,"vmin":0.93},{"hmax":0.4,"hmin":0.3714,"vmax":1,"vmin":0.93},{"hmax":0.4286,"hmin":0.4,"vmax":1,"vmin":0.93},{"hmax":0.4571,"hmin":0.4286,"vmax":1,"vmin":0.93},{"hmax":0.4857,"hmin":0.4571,"vmax":1,"vmin":0.93},{"hmax":0.5143,"hmin":0.4857,"vmax":1,"vmin":0.93},{"hmax":0.5429,"hmin":0.5143,"vmax":1,"vmin":0.93},{"hmax":0.5714,"hmin":0.5429,"vmax":1,"vmin":0.93},{"hmax":0.6,"hmin":0.5714,"vmax":1,"vmin":0.93},{"hmax":0.6286,"hmin":0.6,"vmax":1,"vmin":0.93},{"hmax":0.6571,"hmin":0.6286,"vmax":1,"vmin":0.93},{"hmax":0.6857,"hmin":0.6571,"vmax":1,"vmin":0.93},{"hmax":0.7143,"hmin":0.6857,"vmax":1,"vmin":0.93},{"hmax":0.7429,"hmin":0.7143,"vmax":1,"vmin":0.93},{"hmax":0.7714,"hmin":0.7429,"vmax":1,"vmin":0.93},{"hmax":0.8,"hmin":0.7714,"vmax":1,"vmin":0.93},{"hmax":0.8286,"hmin":0.8,"vmax":1,"vmin":0.93},{"hmax":0.8571,"hmin":0.8286,"vmax":1,"vmin":0.93},{"hmax":0.8857,"hmin":0.8571,"vmax":1,"vmin":0.93},{"hmax":0.9143,"hmin":0.8857,"vmax":1,"vmin":0.93},{"hmax":0.9429,"hmin":0.9143,"vmax":1,"vmin":0.93},{"hmax":0.9714,"hmin":0.9429,"vmax":1,"vmin":0.93},{"hmax":1,"hmin":0.9714,"vmax":1,"vmin":0.93},{"hmax":1,"hmin":0.95,"vmax":1,"vmin":0.95},{"hmax":1,"hmin":0.95,"vmax":0.95,"vmin":0.9},{"hmax":1,"hmin":0.95,"vmax":0.9,"vmin":0.85},{"hmax":1,"hmin":0.95,"vmax":0.85,"vmin":0.8},{"hmax":1,"hmin":0.95,"vmax":0.8,"vmin":0.75},{"hmax":1,"hmin":0.95,"vmax":0.75,"vmin":0.7},{"hmax":1,"hmin":0.95,"vmax":0.7,"vmin":0.65},{"hmax":1,"hmin":0.95,"vmax":0.65,"vmin":0.6},{"hmax":1,"hmin":0.95,"vmax":0.6,"vmin":0.55},{"hmax":1,"hmin":0.95,"vmax":0.55,"vmin":0.5},{"hmax":1,"hmin":0.95,"vmax":0.5,"vmin":0.45},{"hmax":1,"hmin":0.95,"vmax":0.45,"vmin":0.4},{"hmax":1,"hmin":0.95,"vmax":0.4,"vmin":0.35},{"hmax":1,"hmin":0.95,"vmax":0.35,"vmin":0.3},{"hmax":1,"hmin":0.95,"vmax":0.3,"vmin":0.25},{"hmax":1,"hmin":0.95,"vmax":0.25,"vmin":0.2},{"hmax":1,"hmin":0.95,"vmax":0.2,"vmin":0.15},{"hmax":1,"hmin":0.95,"vmax":0.15,"vmin":0.1},{"hmax":1,"hmin":0.95,"vmax":0.1,"vmin":0.05},{"hmax":1,"hmin":0.95,"vmax":0.05,"vmin":0},{"hmax":1,"hmin":0.9714,"vmax":0.07,"vmin":0},{"hmax":0.9714,"hmin":0.9429,"vmax":0.07,"vmin":0},{"hmax":0.9429,"hmin":0.9143,"vmax":0.07,"vmin":0},{"hmax":0.9143,"hmin":0.8857,"vmax":0.07,"vmin":0},{"hmax":0.8857,"hmin":0.8571,"vmax":0.07,"vmin":0},{"hmax":0.8571,"hmin":0.8286,"vmax":0.07,"vmin":0},{"hmax":0.8286,"hmin":0.8,"vmax":0.07,"vmin":0},{"hmax":0.8,"hmin":0.7714,"vmax":0.07,"vmin":0},{"hmax":0.7714,"hmin":0.7429,"vmax":0.07,"vmin":0},{"hmax":0.7429,"hmin":0.7143,"vmax":0.07,"vmin":0},{"hmax":0.7143,"hmin":0.6857,"vmax":0.07,"vmin":0},{"hmax":0.6857,"hmin":0.6571,"vmax":0.07,"vmin":0},{"hmax":0.6571,"hmin":0.6286,"vmax":0.07,"vmin":0},{"hmax":0.6286,"hmin":0.6,"vmax":0.07,"vmin":0},{"hmax":0.6,"hmin":0.5714,"vmax":0.07,"vmin":0},{"hmax":0.5714,"hmin":0.5429,"vmax":0.07,"vmin":0},{"hmax":0.5429,"hmin":0.5143,"vmax":0.07,"vmin":0},{"hmax":0.5143,"hmin":0.4857,"vmax":0.07,"vmin":0},{"hmax":0.4857,"hmin":0.4571,"vmax":0.07,"vmin":0},{"hmax":0.4571,"hmin":0.4286,"vmax":0.07,"vmin":0},{"hmax":0.4286,"hmin":0.4,"vmax":0.07,"vmin":0},{"hmax":0.4,"hmin":0.3714,"vmax":0.07,"vmin":0},{"hmax":0.3714,"hmin":0.3429,"vmax":0.07,"vmin":0},{"hmax":0.3429,"hmin":0.3143,"vmax":0.07,"vmin":0},{"hmax":0.3143,"hmin":0.2857,"vmax":0.07,"vmin":0},{"hmax":0.2857,"hmin":0.2571,"vmax":0.07,"vmin":0},{"hmax":0.2571,"hmin":0.2286,"vmax":0.07,"vmin":0},{"hmax":0.2286,"hmin":0.2,"vmax":0.07,"vmin":0},{"hmax":0.2,"hmin":0.1714,"vmax":0.07,"vmin":0},{"hmax":0.1714,"hmin":0.1429,"vmax":0.07,"vmin":0},{"hmax":0.1429,"hmin":0.1143,"vmax":0.07,"vmin":0},{"hmax":0.1143,"hmin":0.0857,"vmax":0.07,"vmin":0},{"hmax":0.0857,"hmin":0.0571,"vmax":0.07,"vmin":0},{"hmax":0.0571,"hmin":0.0286,"vmax":0.07,"vmin":0},{"hmax":0.0286,"hmin":0,"vmax":0.07,"vmin":0}],"logger":{"level":"debug"},"network":{"apiAuth":true,"internetAccessAPI":false,"ipWhitelist":[],"localAdminAuth":false,"localApiAuth":false,"restirctedInternetAccessAPI":false},"protoServer":{"enable":true,"port":19445,"timeout":5},"smoothing":{"decay":1,"dithering":false,"enable":true,"interpolationRate":25,"outputRate":25,"time_ms":200,"type":"linear","updateDelay":0,"updateFrequency":25},"webConfig":{"crtPath":"","document_root":"","keyPassPhrase":"","keyPath":"","port":8090,"sslPort":8092}}

< ----- Current Log --------------------------- >
# Toggling "LED Output" via the remote control panel
2021-10-11T22:43:19.571Z [hyperiond COMPONENTREG] (DEBUG) (ComponentRegister.cpp:41:setNewComponentState()) LED device: disabled
2021-10-11T22:43:22.490Z [hyperiond COMPONENTREG] (DEBUG) (ComponentRegister.cpp:41:setNewComponentState()) LED device: enabled
# Toggling"LED Output" via Home assistant
2021-10-11T23:02:16.382Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1058:handleLoggingCommand()) log streaming activated for client ::ffff:192.168.86.29
2021-10-11T23:02:27.575Z [hyperiond WEBSOCKET] (DEBUG) (WebSocketClient.cpp:30:WebSocketClient()) New connection from ::ffff:192.168.86.29
2021-10-11T23:02:27.765Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:120:handleInstanceSwitch()) Client '::ffff:192.168.86.29' switch to Hyperion instance 0
2021-10-11T23:02:44.972Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1067:handleLoggingCommand()) log streaming deactivated for client  ::ffff:192.168.86.29
2021-10-11T23:02:44.974Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1058:handleLoggingCommand()) log streaming activated for client ::ffff:192.168.86.29
2021-10-11T23:02:44.974Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1058:handleLoggingCommand()) log streaming activated for client ::ffff:192.168.86.29
2021-10-11T23:02:54.682Z [hyperiond COMPONENTREG] (DEBUG) (ComponentRegister.cpp:41:setNewComponentState()) LED device: disabled
2021-10-11T23:03:00.025Z [hyperiond COMPONENTREG] (DEBUG) (ComponentRegister.cpp:41:setNewComponentState()) LED device: enabled
2021-10-11T23:03:17.931Z [hyperiond COMPONENTREG] (DEBUG) (ComponentRegister.cpp:41:setNewComponentState()) LED device: disabled
2021-10-11T23:03:19.388Z [hyperiond COMPONENTREG] (DEBUG) (ComponentRegister.cpp:41:setNewComponentState()) LED device: enabled
2021-10-11T23:03:20.347Z [hyperiond COMPONENTREG] (DEBUG) (ComponentRegister.cpp:41:setNewComponentState()) LED device: disabled
2021-10-11T23:03:21.229Z [hyperiond COMPONENTREG] (DEBUG) (ComponentRegister.cpp:41:setNewComponentState()) LED device: enabled
2021-10-11T23:03:50.652Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:292:clearInput()) Removed source priority 120
2021-10-11T23:03:50.653Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:374:setCurrentTime()) Set visible priority to 255
2021-10-11T23:03:50.654Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:566:handleSourceAvailability()) priority[255], previousPriority[120]
2021-10-11T23:03:50.655Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:569:handleSourceAvailability()) No source left -> Pause output processing and switch LED-Device off
2021-10-11T23:03:50.656Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:165:registerInput()) Register new input 'Home Assistant@::ffff:192.168.86.200/COLOR' with priority 120 as inactive
2021-10-11T23:03:50.656Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:220:setInput()) Priority 120 is now active
2021-10-11T23:03:50.657Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:374:setCurrentTime()) Set visible priority to 120
2021-10-11T23:03:50.657Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:566:handleSourceAvailability()) priority[120], previousPriority[255]
2021-10-11T23:03:50.657Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:577:handleSourceAvailability()) new source available -> Resume output processing and switch LED-Device on
2021-10-11T23:03:55.641Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:292:clearInput()) Removed source priority 120
2021-10-11T23:03:55.641Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:374:setCurrentTime()) Set visible priority to 255
2021-10-11T23:03:55.642Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:566:handleSourceAvailability()) priority[255], previousPriority[120]
2021-10-11T23:03:55.642Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:569:handleSourceAvailability()) No source left -> Pause output processing and switch LED-Device off
2021-10-11T23:03:55.645Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:165:registerInput()) Register new input 'Home Assistant@::ffff:192.168.86.200/COLOR' with priority 120 as inactive
2021-10-11T23:03:55.646Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:220:setInput()) Priority 120 is now active
2021-10-11T23:03:55.646Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:374:setCurrentTime()) Set visible priority to 120
2021-10-11T23:03:55.647Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:566:handleSourceAvailability()) priority[120], previousPriority[255]
2021-10-11T23:03:55.647Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:577:handleSourceAvailability()) new source available -> Resume output processing and switch LED-Device on
# Toggling "LED Output" via the remote control panel again
2021-10-11T23:04:55.799Z [hyperiond COMPONENTREG] (DEBUG) (ComponentRegister.cpp:41:setNewComponentState()) LED device: disabled
2021-10-11T23:04:56.872Z [hyperiond COMPONENTREG] (DEBUG) (ComponentRegister.cpp:41:setNewComponentState()) LED device: enabled

@mrkoopa1
Copy link

@Lord-Grey It looks like 1354 resolved my HA issue. But I am fairly new to github and all of this compiling stuff. But I believe I cloned hyperion.ng and merged 1354 by doing

git pull origin pull/1354/head

But home assistant integration is working now. I hope this helps. Thank you for time and knowledge.

#Changing via Web Interface
2021-10-14T19:49:25.115 hyperiond COMPONENTREG : <DEBUG> ComponentRegister.cpp:41:setNewComponentState() | LED device: disabled
2021-10-14T19:49:28.551 hyperiond COMPONENTREG : <DEBUG> ComponentRegister.cpp:41:setNewComponentState() | LED device: enabled
2021-10-14T19:49:30.172 hyperiond COMPONENTREG : <DEBUG> ComponentRegister.cpp:41:setNewComponentState() | LED device: disabled
2021-10-14T19:49:31.579 hyperiond COMPONENTREG : <DEBUG> ComponentRegister.cpp:41:setNewComponentState() | LED device: enabled
2021-10-14T19:49:36.962 hyperiond COMPONENTREG : <DEBUG> ComponentRegister.cpp:41:setNewComponentState() | LED device: disabled
#End changing via Web Interface
#Toggle on via Home Assistant
2021-10-14T19:49:43.547 hyperiond COMPONENTREG : <DEBUG> ComponentRegister.cpp:41:setNewComponentState() | LED device: enabled
2021-10-14T19:49:43.562 hyperiond HYPERION     : <DEBUG> PriorityMuxer.cpp:292:clearInput() | Removed source priority 128
2021-10-14T19:49:43.565 hyperiond HYPERION     : <DEBUG> PriorityMuxer.cpp:374:setCurrentTime() | Set visible priority to 255
2021-10-14T19:49:43.569 hyperiond HYPERION     : <DEBUG> Hyperion.cpp:566:handleSourceAvailability() | priority[255], previousPriority[128]
2021-10-14T19:49:43.582 hyperiond HYPERION     : <DEBUG> Hyperion.cpp:569:handleSourceAvailability() | No source left -> Pause output processing and switch LED-Device off
2021-10-14T19:49:43.590 hyperiond EFFECTENGINE : <INFO> Run effect "Rainbow swirl fast" on channel 254
2021-10-14T19:49:43.597 hyperiond EFFECTENGINE : <DEBUG> EffectEngine.cpp:181:runEffectScript() | Start the effect: name [Rainbow swirl fast], smoothCfg [2]
2021-10-14T19:49:43.609 hyperiond HYPERION     : <DEBUG> PriorityMuxer.cpp:165:registerInput() | Register new input 'System/EFFECT' with priority 254 as inactive
2021-10-14T19:49:43.613 hyperiond HYPERION     : <INFO> Initial background effect 'Rainbow swirl fast' started
2021-10-14T19:49:43.619 hyperiond EFFECTENGINE : <INFO> Run effect "Rainbow swirl fast" on channel 128
2021-10-14T19:49:43.624 hyperiond EFFECTENGINE : <DEBUG> EffectEngine.cpp:181:runEffectScript() | Start the effect: name [Rainbow swirl fast], smoothCfg [2]
2021-10-14T19:49:43.629 hyperiond HYPERION     : <DEBUG> PriorityMuxer.cpp:165:registerInput() | Register new input 'Home Assistant@::ffff:172.16.10.253/EFFECT' with priority 128 as inactive
2021-10-14T19:49:43.687 hyperiond EFFECTENGINE : <INFO> effect finished
2021-10-14T19:49:44.339 hyperiond HYPERION     : <DEBUG> PriorityMuxer.cpp:271:setInputImage() | Priority 128 is now active
2021-10-14T19:49:44.342 hyperiond HYPERION     : <DEBUG> PriorityMuxer.cpp:374:setCurrentTime() | Set visible priority to 128
2021-10-14T19:49:44.346 hyperiond HYPERION     : <DEBUG> Hyperion.cpp:566:handleSourceAvailability() | priority[128], previousPriority[255]
2021-10-14T19:49:44.352 hyperiond HYPERION     : <DEBUG> Hyperion.cpp:577:handleSourceAvailability() | new source available -> Resume output processing and switch LED-Device on
2021-10-14T19:49:44.362 hyperiond HYPERION     : <DEBUG> BGEffectHandler.h:91:handlePriorityUpdate() | Stop background (color-) effect as it moved out of scope
2021-10-14T19:49:44.366 hyperiond HYPERION     : <DEBUG> PriorityMuxer.cpp:292:clearInput() | Removed source priority 254
2021-10-14T19:49:44.454 hyperiond EFFECTENGINE : <INFO> effect finished
#End Toggle on via Home Assistant
#Toggle off via Home Assistant
2021-10-14T19:51:49.882 hyperiond COMPONENTREG : <DEBUG> ComponentRegister.cpp:41:setNewComponentState() | LED device: disabled
#End Toggle off via Home Assistant
#One more time on via Home Assistant
2021-10-14T19:53:03.449 hyperiond COMPONENTREG : <DEBUG> ComponentRegister.cpp:41:setNewComponentState() | LED device: enabled
2021-10-14T19:53:03.477 hyperiond HYPERION     : <DEBUG> PriorityMuxer.cpp:292:clearInput() | Removed source priority 128
2021-10-14T19:53:03.480 hyperiond HYPERION     : <DEBUG> PriorityMuxer.cpp:374:setCurrentTime() | Set visible priority to 255
2021-10-14T19:53:03.484 hyperiond HYPERION     : <DEBUG> Hyperion.cpp:566:handleSourceAvailability() | priority[255], previousPriority[128]
2021-10-14T19:53:03.493 hyperiond HYPERION     : <DEBUG> Hyperion.cpp:569:handleSourceAvailability() | No source left -> Pause output processing and switch LED-Device off
2021-10-14T19:53:03.499 hyperiond EFFECTENGINE : <INFO> Run effect "Rainbow swirl fast" on channel 254
2021-10-14T19:53:03.510 hyperiond EFFECTENGINE : <DEBUG> EffectEngine.cpp:181:runEffectScript() | Start the effect: name [Rainbow swirl fast], smoothCfg [2]
2021-10-14T19:53:03.515 hyperiond HYPERION     : <DEBUG> PriorityMuxer.cpp:165:registerInput() | Register new input 'System/EFFECT' with priority 254 as inactive
2021-10-14T19:53:03.519 hyperiond HYPERION     : <INFO> Initial background effect 'Rainbow swirl fast' started
2021-10-14T19:53:03.526 hyperiond EFFECTENGINE : <INFO> Run effect "Rainbow swirl fast" on channel 128
2021-10-14T19:53:03.530 hyperiond EFFECTENGINE : <DEBUG> EffectEngine.cpp:181:runEffectScript() | Start the effect: name [Rainbow swirl fast], smoothCfg [2]
2021-10-14T19:53:03.537 hyperiond HYPERION     : <DEBUG> PriorityMuxer.cpp:165:registerInput() | Register new input 'Home Assistant@::ffff:172.16.10.253/EFFECT' with priority 128 as inactive
2021-10-14T19:53:03.612 hyperiond EFFECTENGINE : <INFO> effect finished
2021-10-14T19:53:04.124 hyperiond HYPERION     : <DEBUG> PriorityMuxer.cpp:271:setInputImage() | Priority 128 is now active
2021-10-14T19:53:04.126 hyperiond HYPERION     : <DEBUG> PriorityMuxer.cpp:374:setCurrentTime() | Set visible priority to 128
2021-10-14T19:53:04.131 hyperiond HYPERION     : <DEBUG> Hyperion.cpp:566:handleSourceAvailability() | priority[128], previousPriority[255]
2021-10-14T19:53:04.143 hyperiond HYPERION     : <DEBUG> Hyperion.cpp:577:handleSourceAvailability() | new source available -> Resume output processing and switch LED-Device on
2021-10-14T19:53:04.149 hyperiond HYPERION     : <DEBUG> BGEffectHandler.h:91:handlePriorityUpdate() | Stop background (color-) effect as it moved out of scope
2021-10-14T19:53:04.158 hyperiond HYPERION     : <DEBUG> PriorityMuxer.cpp:292:clearInput() | Removed source priority 254
2021-10-14T19:53:04.241 hyperiond EFFECTENGINE : <INFO> effect finished
#End Toggle on via Home Assistant
#Toggle off via Home Assistant
2021-10-14T19:53:45.375 hyperiond COMPONENTREG : <DEBUG> ComponentRegister.cpp:41:setNewComponentState() | LED device: disabled
#End Toggle off via Home Assistant

Hyperion Server:

  • Build: master (mrkoopa-67b1128d/bda0a5b2-1634222432)
  • Build time: Oct 14 2021 17:26:26
  • Git Remote: https://github.com/hyperion-project/hyperion.ng.git
  • Version: 2.0.0-alpha.11
  • UI Lang: en (BrowserLang: en-US)
  • UI Access: advanced
  • Avail Capt: dispmanx,v4l2,framebuffer,qt
  • Config path: /root/.hyperion
  • Database: read/write

Hyperion Server OS:

  • Distribution: Raspbian GNU/Linux 10 (buster)
  • Architecture: arm
  • CPU Model: ARMv6-compatible processor rev 7 (v6l)
  • CPU Type: Raspberry Pi Zero W Rev 1.1
  • CPU Revision: 9000c1
  • CPU Hardware: BCM2835
  • Kernel: linux (5.10.63+ (WS: 32))
  • Root/Admin: true
  • Qt Version: 5.11.3
  • Python Version: 3.7.3
  • Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36

@Lord-Grey Lord-Grey reopened this Oct 17, 2021
@Lord-Grey
Copy link
Collaborator

@mrdarrengriffin & @Joeboyc2 Would you be able to test this again, with a current hyperion version?
You could use a pre-build version from here
https://github.com/hyperion-project/hyperion.ng/pull/1360/checks?check_run_id=3925883200

Just select a package from the "Artifacts" dropdown.

To get a better feeling for the issue, I even created a rpi4 setup with APA102 (34 LEDs) and a HA installation (Home Assistant 2021.10.2) myself now. LEDs are directly connected to GPIO 10/11; external powered, no level shifter etc.
I imported @Joeboyc2's configuration and I was not able to reproduce the behaviour whatever I tried.
It just worked...

@Joeboyc2 You have latch-time = 0: Does the behaviour change, if you eg. set it to 10 and later to 1?
@both If you switch of the LEDs via the Hyperion UI (Remote Control) does this work? Or is it only related to HA?

Thank you!

@Joeboyc2
Copy link
Contributor

Hey @Lord-Grey ,
I'll give the new version a go and report back in a little bit.

@Joeboyc2
Copy link
Contributor

Hey @Lord-Grey ,
Ok, so i have uninstalled the version i had installed and have unpacked the downloaded version.
Running hyperiond from /home/pi/share/hyperion/bin has picked up my current config and when toggeling the "LED Output" the lights stay on in a frozen state.
So i have changed the latch time to 10, and then to 1 and unfortunatly the same behavior persists.

I've tried to lower the number of leds as maybe that has some bearing, but i still have the same issue.

Its pretty odd, but as @mrdarrengriffin mentioned, the problem as been around since .9

@Joeboyc2
Copy link
Contributor

Here is the log from the latest run, with a few switch off and ons's

Hyperion System Summary Report (TV Lights), Reported instance: unknown

< ----- System information -------------------- >
Hyperion Server: 
- Build:           (HEAD detached at pull/1360/merge) (GitHub-f9473d97/facf6be4-1634556286)
- Build time:      Oct 18 2021 11:40:43
- Git Remote:      https://github.com/hyperion-project/hyperion.ng
- Version:         2.0.12+PR1360
- UI Lang:         auto (BrowserLang: en-US)
- UI Access:       expert
- Avail Capt:      dispmanx,v4l2,framebuffer,qt
- Config path:     /home/pi/.hyperion
- Database:        read/write

Hyperion Server OS: 
- Distribution:   Raspbian GNU/Linux 10 (buster)
- Architecture:   arm
- CPU Model:      ARMv7 Processor rev 4 (v7l)
- CPU Type:       Raspberry Pi 3 Model B Rev 1.2
- CPU Revision:   a02082
- CPU Hardware:   BCM2835
- Kernel:         linux (4.19.75-v7+ (WS: 32))
- Root/Admin:     false
- Qt Version:     5.7.1
- Python Version: 3.5.3
- Browser:        Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36

< ----- Configured Instances ------------------ >
0: TV Lights Running: true

< ----- This instance's priorities ------------ >
240:  VISIBLE! (V4L) Owner: V4L2
priorities_autoselect: true

< ----- This instance components' status ------->
ALL - true
SMOOTHING - true
BLACKBORDER - true
FORWARDER - false
BOBLIGHTSERVER - false
GRABBER - false
V4L - true
LEDDEVICE - true

< ----- This instance's configuration --------- >
{"backgroundEffect":{"color":[255,138,0],"effect":"Warm mood blobs","enable":false,"type":"effect"},"blackborderdetector":{"blurRemoveCnt":1,"borderFrameCnt":50,"enable":true,"maxInconsistentCnt":10,"mode":"default","threshold":5,"unknownFrameCnt":600},"boblightServer":{"enable":false,"port":19333,"priority":128},"color":{"channelAdjustment":[{"backlightColored":false,"backlightThreshold":0,"blue":[0,0,255],"brightness":100,"brightnessCompensation":0,"cyan":[0,255,255],"gammaBlue":2,"gammaGreen":2,"gammaRed":2,"green":[0,255,0],"id":"default","leds":"*","magenta":[255,0,255],"red":[255,0,0],"white":[255,255,255],"yellow":[255,255,0]}],"imageToLedMappingType":"multicolor_mean"},"device":{"colorOrder":"bgr","hardwareLedCount":110,"invert":false,"latchTime":1,"output":"/dev/spidev0.0","rate":1000000,"rewriteTime":0,"type":"apa102"},"effects":{"disable":[""],"paths":["$ROOT/custom-effects"]},"flatbufServer":{"enable":true,"port":19400,"timeout":5},"foregroundEffect":{"color":[0,0,255],"duration_ms":3000,"effect":"Rainbow swirl fast","enable":true,"type":"effect"},"forwarder":{"enable":false,"flat":["127.0.0.1:19401"],"json":["127.0.0.1:19446"]},"framegrabber":{"cropBottom":0,"cropLeft":0,"cropRight":0,"cropTop":0,"device":"auto","enable":false,"fps":10,"height":45,"input":0,"pixelDecimation":8,"width":80},"general":{"configVersion":"2.0.12+PR1360","name":"TV Lights","previousVersion":"2.0.12+PR1360","showOptHelp":true,"watchedVersionBranch":"Stable"},"grabberV4L2":{"available_devices":"UVC Camera (534d:2109): USB Vid","blueSignalThreshold":5,"cecDetection":true,"cropBottom":0,"cropLeft":0,"cropRight":0,"cropTop":0,"device":"/dev/video0","device_inputs":"0","enable":true,"encoding":"YUYV","flip":"NO_CHANGE","fps":10,"fpsSoftwareDecimation":0,"framerates":"10","greenSignalThreshold":5,"hardware_brightness":-11,"hardware_contrast":148,"hardware_hue":0,"hardware_saturation":180,"height":600,"input":0,"noSignalCounterThreshold":200,"redSignalThreshold":5,"resolutions":"3","sDHOffsetMax":0.75,"sDHOffsetMin":0.25,"sDVOffsetMax":0.75,"sDVOffsetMin":0.25,"signalDetection":true,"sizeDecimation":6,"standard":"NONE","width":800},"instCapture":{"systemEnable":false,"systemGrabberDevice":"NONE","systemPriority":250,"v4lEnable":true,"v4lGrabberDevice":"UVC Camera (534d:2109): USB Vid","v4lPriority":240},"jsonServer":{"port":19444},"ledConfig":{"classic":{"bottom":35,"edgegap":0,"glength":0,"gpos":0,"hdepth":7,"left":20,"overlap":0,"pblh":0,"pblv":100,"pbrh":100,"pbrv":100,"position":0,"ptlh":0,"ptlv":0,"ptrh":100,"ptrv":0,"reverse":true,"right":20,"top":35,"vdepth":5},"ledBlacklist":[],"matrix":{"cabling":"snake","ledshoriz":1,"ledsvert":1,"start":"top-left"}},"leds":[{"hmax":0.05,"hmin":0,"vmax":0.05,"vmin":0},{"hmax":0.05,"hmin":0,"vmax":0.1,"vmin":0.05},{"hmax":0.05,"hmin":0,"vmax":0.15,"vmin":0.1},{"hmax":0.05,"hmin":0,"vmax":0.2,"vmin":0.15},{"hmax":0.05,"hmin":0,"vmax":0.25,"vmin":0.2},{"hmax":0.05,"hmin":0,"vmax":0.3,"vmin":0.25},{"hmax":0.05,"hmin":0,"vmax":0.35,"vmin":0.3},{"hmax":0.05,"hmin":0,"vmax":0.4,"vmin":0.35},{"hmax":0.05,"hmin":0,"vmax":0.45,"vmin":0.4},{"hmax":0.05,"hmin":0,"vmax":0.5,"vmin":0.45},{"hmax":0.05,"hmin":0,"vmax":0.55,"vmin":0.5},{"hmax":0.05,"hmin":0,"vmax":0.6,"vmin":0.55},{"hmax":0.05,"hmin":0,"vmax":0.65,"vmin":0.6},{"hmax":0.05,"hmin":0,"vmax":0.7,"vmin":0.65},{"hmax":0.05,"hmin":0,"vmax":0.75,"vmin":0.7},{"hmax":0.05,"hmin":0,"vmax":0.8,"vmin":0.75},{"hmax":0.05,"hmin":0,"vmax":0.85,"vmin":0.8},{"hmax":0.05,"hmin":0,"vmax":0.9,"vmin":0.85},{"hmax":0.05,"hmin":0,"vmax":0.95,"vmin":0.9},{"hmax":0.05,"hmin":0,"vmax":1,"vmin":0.95},{"hmax":0.0286,"hmin":0,"vmax":1,"vmin":0.93},{"hmax":0.0571,"hmin":0.0286,"vmax":1,"vmin":0.93},{"hmax":0.0857,"hmin":0.0571,"vmax":1,"vmin":0.93},{"hmax":0.1143,"hmin":0.0857,"vmax":1,"vmin":0.93},{"hmax":0.1429,"hmin":0.1143,"vmax":1,"vmin":0.93},{"hmax":0.1714,"hmin":0.1429,"vmax":1,"vmin":0.93},{"hmax":0.2,"hmin":0.1714,"vmax":1,"vmin":0.93},{"hmax":0.2286,"hmin":0.2,"vmax":1,"vmin":0.93},{"hmax":0.2571,"hmin":0.2286,"vmax":1,"vmin":0.93},{"hmax":0.2857,"hmin":0.2571,"vmax":1,"vmin":0.93},{"hmax":0.3143,"hmin":0.2857,"vmax":1,"vmin":0.93},{"hmax":0.3429,"hmin":0.3143,"vmax":1,"vmin":0.93},{"hmax":0.3714,"hmin":0.3429,"vmax":1,"vmin":0.93},{"hmax":0.4,"hmin":0.3714,"vmax":1,"vmin":0.93},{"hmax":0.4286,"hmin":0.4,"vmax":1,"vmin":0.93},{"hmax":0.4571,"hmin":0.4286,"vmax":1,"vmin":0.93},{"hmax":0.4857,"hmin":0.4571,"vmax":1,"vmin":0.93},{"hmax":0.5143,"hmin":0.4857,"vmax":1,"vmin":0.93},{"hmax":0.5429,"hmin":0.5143,"vmax":1,"vmin":0.93},{"hmax":0.5714,"hmin":0.5429,"vmax":1,"vmin":0.93},{"hmax":0.6,"hmin":0.5714,"vmax":1,"vmin":0.93},{"hmax":0.6286,"hmin":0.6,"vmax":1,"vmin":0.93},{"hmax":0.6571,"hmin":0.6286,"vmax":1,"vmin":0.93},{"hmax":0.6857,"hmin":0.6571,"vmax":1,"vmin":0.93},{"hmax":0.7143,"hmin":0.6857,"vmax":1,"vmin":0.93},{"hmax":0.7429,"hmin":0.7143,"vmax":1,"vmin":0.93},{"hmax":0.7714,"hmin":0.7429,"vmax":1,"vmin":0.93},{"hmax":0.8,"hmin":0.7714,"vmax":1,"vmin":0.93},{"hmax":0.8286,"hmin":0.8,"vmax":1,"vmin":0.93},{"hmax":0.8571,"hmin":0.8286,"vmax":1,"vmin":0.93},{"hmax":0.8857,"hmin":0.8571,"vmax":1,"vmin":0.93},{"hmax":0.9143,"hmin":0.8857,"vmax":1,"vmin":0.93},{"hmax":0.9429,"hmin":0.9143,"vmax":1,"vmin":0.93},{"hmax":0.9714,"hmin":0.9429,"vmax":1,"vmin":0.93},{"hmax":1,"hmin":0.9714,"vmax":1,"vmin":0.93},{"hmax":1,"hmin":0.95,"vmax":1,"vmin":0.95},{"hmax":1,"hmin":0.95,"vmax":0.95,"vmin":0.9},{"hmax":1,"hmin":0.95,"vmax":0.9,"vmin":0.85},{"hmax":1,"hmin":0.95,"vmax":0.85,"vmin":0.8},{"hmax":1,"hmin":0.95,"vmax":0.8,"vmin":0.75},{"hmax":1,"hmin":0.95,"vmax":0.75,"vmin":0.7},{"hmax":1,"hmin":0.95,"vmax":0.7,"vmin":0.65},{"hmax":1,"hmin":0.95,"vmax":0.65,"vmin":0.6},{"hmax":1,"hmin":0.95,"vmax":0.6,"vmin":0.55},{"hmax":1,"hmin":0.95,"vmax":0.55,"vmin":0.5},{"hmax":1,"hmin":0.95,"vmax":0.5,"vmin":0.45},{"hmax":1,"hmin":0.95,"vmax":0.45,"vmin":0.4},{"hmax":1,"hmin":0.95,"vmax":0.4,"vmin":0.35},{"hmax":1,"hmin":0.95,"vmax":0.35,"vmin":0.3},{"hmax":1,"hmin":0.95,"vmax":0.3,"vmin":0.25},{"hmax":1,"hmin":0.95,"vmax":0.25,"vmin":0.2},{"hmax":1,"hmin":0.95,"vmax":0.2,"vmin":0.15},{"hmax":1,"hmin":0.95,"vmax":0.15,"vmin":0.1},{"hmax":1,"hmin":0.95,"vmax":0.1,"vmin":0.05},{"hmax":1,"hmin":0.95,"vmax":0.05,"vmin":0},{"hmax":1,"hmin":0.9714,"vmax":0.07,"vmin":0},{"hmax":0.9714,"hmin":0.9429,"vmax":0.07,"vmin":0},{"hmax":0.9429,"hmin":0.9143,"vmax":0.07,"vmin":0},{"hmax":0.9143,"hmin":0.8857,"vmax":0.07,"vmin":0},{"hmax":0.8857,"hmin":0.8571,"vmax":0.07,"vmin":0},{"hmax":0.8571,"hmin":0.8286,"vmax":0.07,"vmin":0},{"hmax":0.8286,"hmin":0.8,"vmax":0.07,"vmin":0},{"hmax":0.8,"hmin":0.7714,"vmax":0.07,"vmin":0},{"hmax":0.7714,"hmin":0.7429,"vmax":0.07,"vmin":0},{"hmax":0.7429,"hmin":0.7143,"vmax":0.07,"vmin":0},{"hmax":0.7143,"hmin":0.6857,"vmax":0.07,"vmin":0},{"hmax":0.6857,"hmin":0.6571,"vmax":0.07,"vmin":0},{"hmax":0.6571,"hmin":0.6286,"vmax":0.07,"vmin":0},{"hmax":0.6286,"hmin":0.6,"vmax":0.07,"vmin":0},{"hmax":0.6,"hmin":0.5714,"vmax":0.07,"vmin":0},{"hmax":0.5714,"hmin":0.5429,"vmax":0.07,"vmin":0},{"hmax":0.5429,"hmin":0.5143,"vmax":0.07,"vmin":0},{"hmax":0.5143,"hmin":0.4857,"vmax":0.07,"vmin":0},{"hmax":0.4857,"hmin":0.4571,"vmax":0.07,"vmin":0},{"hmax":0.4571,"hmin":0.4286,"vmax":0.07,"vmin":0},{"hmax":0.4286,"hmin":0.4,"vmax":0.07,"vmin":0},{"hmax":0.4,"hmin":0.3714,"vmax":0.07,"vmin":0},{"hmax":0.3714,"hmin":0.3429,"vmax":0.07,"vmin":0},{"hmax":0.3429,"hmin":0.3143,"vmax":0.07,"vmin":0},{"hmax":0.3143,"hmin":0.2857,"vmax":0.07,"vmin":0},{"hmax":0.2857,"hmin":0.2571,"vmax":0.07,"vmin":0},{"hmax":0.2571,"hmin":0.2286,"vmax":0.07,"vmin":0},{"hmax":0.2286,"hmin":0.2,"vmax":0.07,"vmin":0},{"hmax":0.2,"hmin":0.1714,"vmax":0.07,"vmin":0},{"hmax":0.1714,"hmin":0.1429,"vmax":0.07,"vmin":0},{"hmax":0.1429,"hmin":0.1143,"vmax":0.07,"vmin":0},{"hmax":0.1143,"hmin":0.0857,"vmax":0.07,"vmin":0},{"hmax":0.0857,"hmin":0.0571,"vmax":0.07,"vmin":0},{"hmax":0.0571,"hmin":0.0286,"vmax":0.07,"vmin":0},{"hmax":0.0286,"hmin":0,"vmax":0.07,"vmin":0}],"logger":{"level":"debug"},"network":{"apiAuth":true,"internetAccessAPI":false,"ipWhitelist":[],"localAdminAuth":false,"localApiAuth":false,"restirctedInternetAccessAPI":false},"protoServer":{"enable":true,"port":19445,"timeout":5},"smoothing":{"decay":1,"dithering":false,"enable":true,"interpolationRate":25,"outputRate":25,"time_ms":200,"type":"linear","updateDelay":0,"updateFrequency":25},"webConfig":{"crtPath":"","document_root":"","keyPassPhrase":"","keyPath":"","port":8090,"sslPort":8092}}

< ----- Current Log --------------------------- >
2021-10-18T20:00:31.944Z [hyperiond DAEMON] (INFO) CEC handler created
2021-10-18T20:00:31.987Z [hyperiond EFFECTFILES] (INFO) 40 effects loaded from directory :/effects/
2021-10-18T20:00:32.000Z [hyperiond EFFECTFILES] (INFO) 22 effect schemas loaded from directory :/effects/schema/
2021-10-18T20:00:32.002Z [hyperiond EFFECTFILES] (INFO) 0 effects loaded from directory /home/pi/.hyperion/custom-effects/
2021-10-18T20:00:32.139Z [hyperiond SETTINGSMGR] (DEBUG) (SettingsManager.cpp:171:SettingsManager()) Settings database initialized
2021-10-18T20:00:32.146Z [hyperiond BLACKBORDER] (DEBUG) (BlackBorderProcessor.cpp:64:handleSettingsUpdate()) Set mode to: default
2021-10-18T20:00:32.146Z [hyperiond COMPONENTREG] (DEBUG) (ComponentRegister.cpp:41:setNewComponentState()) Blackborder detector: enabled
2021-10-18T20:00:32.184Z [hyperiond DAEMON] (INFO) set screen capture device to 'dispmanx'
2021-10-18T20:00:32.187Z [hyperiond DAEMON] (INFO) DISPMANX frame grabber created
2021-10-18T20:00:32.191Z [hyperiond V4L2] (DEBUG) (Grabber.cpp:141:setWidthHeight()) Set new width: 800, height: 600 for capture
2021-10-18T20:00:32.191Z [hyperiond V4L2] (INFO) Set new frames per second to: 10 fps
2021-10-18T20:00:32.192Z [hyperiond V4L2] (INFO) Set image size decimation to 6
2021-10-18T20:00:32.192Z [hyperiond V4L2] (INFO) Set flipmode to NO_CHANGE
2021-10-18T20:00:32.192Z [hyperiond V4L2] (INFO) Signal detection area set to: 0.250000,0.250000 x 0.750000,0.750000
2021-10-18T20:00:32.193Z [hyperiond V4L2] (INFO) Signal threshold set to: {12, 12, 12}
2021-10-18T20:00:32.287Z [hyperiond V4L2] (DEBUG) (V4L2Grabber.cpp:151:init()) Set device (path) to: UVC Camera (534d:2109): USB Vid (/dev/video0)
2021-10-18T20:00:32.288Z [hyperiond V4L2] (DEBUG) (V4L2Grabber.cpp:488:init_device()) Set device input to: Camera 1
2021-10-18T20:00:32.290Z [hyperiond V4L2] (DEBUG) (V4L2Grabber.cpp:614:init_device()) Set resolution to width=800 height=600
2021-10-18T20:00:32.291Z [hyperiond V4L2] (DEBUG) (V4L2Grabber.cpp:631:init_device()) Set framerate to 10 fps
2021-10-18T20:00:32.291Z [hyperiond V4L2] (DEBUG) (V4L2Grabber.cpp:707:init_device()) Pixel format=YUYV
2021-10-18T20:00:32.302Z [hyperiond V4L2] (INFO) Started
2021-10-18T20:00:32.302Z [hyperiond DAEMON] (DEBUG) (hyperiond.cpp:608:handleSettingsUpdate()) V4L2 grabber created
2021-10-18T20:00:32.304Z [hyperiond JSONSERVER] (DEBUG) (JsonServer.cpp:28:JsonServer()) Created instance
2021-10-18T20:00:32.305Z [hyperiond JSONSERVER] (INFO) Started on port 19444
2021-10-18T20:00:32.189Z [hyperiond CEC] (INFO) Starting CEC handler
2021-10-18T20:00:32.200Z [hyperiond LEDDEVICE] (INFO) Start LedDevice 'apa102'.
2021-10-18T20:00:32.201Z [hyperiond COMPONENTREG] (DEBUG) (ComponentRegister.cpp:41:setNewComponentState()) Smoothing: enabled
2021-10-18T20:00:32.201Z [hyperiond LEDDEVICE] (DEBUG) (LedDevice.cpp:148:init()) deviceConfig: [{"colorOrder":"bgr","currentLedCount":110,"hardwareLedCount":110,"invert":false,"latchTime":1,"output":"/dev/spidev0.0","rate":1e+06,"rewriteTime":0,"type":"apa102"}]
2021-10-18T20:00:32.202Z [hyperiond LEDDEVICE] (DEBUG) (LedDevice.cpp:413:setLatchTime()) LatchTime updated to 1ms
2021-10-18T20:00:32.202Z [hyperiond SMOOTHING] (DEBUG) (LinearColorSmoothing.cpp:687:selectConfig()) cfg [0]:  Type: linear - Time: 200 ms, outputRate 25.000000 Hz, interpolationRate: 25.000000 Hz, timer: 40 ms, Dithering: 0, Decay: 1.000000 -> HalfTime: 100.000000 ms
2021-10-18T20:00:32.202Z [hyperiond LEDDEVICE] (DEBUG) (LedDevice.cpp:444:setRewriteTime()) RewriteTime updated to 0ms
2021-10-18T20:00:32.203Z [hyperiond LEDDEVICE] (DEBUG) (ProviderSpi.cpp:58:init()) _baudRate_Hz [1000000], _latchTime_ms [1]
2021-10-18T20:00:32.203Z [hyperiond LEDDEVICE] (DEBUG) (ProviderSpi.cpp:59:init()) _spiDataInvert [0], _spiMode [0]
2021-10-18T20:00:32.216Z [hyperiond SMOOTHING] (DEBUG) (LinearColorSmoothing.cpp:687:selectConfig()) Previous line repeats 1 times
2021-10-18T20:00:32.217Z [hyperiond FLATBUFCONN] (INFO) Connecting to Hyperion: 127.0.0.1:19401
2021-10-18T20:00:32.235Z [hyperiond EFFECTENGINE] (INFO) Run effect "Rainbow swirl fast" on channel 1
2021-10-18T20:00:32.306Z [hyperiond EFFECTENGINE] (DEBUG) (EffectEngine.cpp:181:runEffectScript()) Start the effect: name [Rainbow swirl fast], smoothCfg [2]
2021-10-18T20:00:32.307Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:165:registerInput()) Register new input 'System/EFFECT' with priority 1 as inactive
2021-10-18T20:00:32.308Z [hyperiond HYPERION] (INFO) Initial foreground effect 'Rainbow swirl fast' started
2021-10-18T20:00:32.311Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:165:registerInput()) Register new input 'System/V4L' with priority 240 as inactive
2021-10-18T20:00:32.312Z [hyperiond COMPONENTREG] (DEBUG) (ComponentRegister.cpp:41:setNewComponentState()) V4L capture device: enabled
2021-10-18T20:00:32.315Z [hyperiond BOBLIGHT] (DEBUG) (BoblightServer.cpp:28:BoblightServer()) Instance created
2021-10-18T20:00:32.344Z [hyperiond HYPERION] (INFO) Hyperion instance 'TV Lights' has been started
2021-10-18T20:00:32.316Z [hyperiond COMPONENTREG] (DEBUG) (ComponentRegister.cpp:41:setNewComponentState()) LED device: enabled
2021-10-18T20:00:32.335Z [hyperiond FLATBUFSERVER] (INFO) Started on port 19400
2021-10-18T20:00:32.343Z [hyperiond PROTOSERVER] (INFO) Started on port 19445
2021-10-18T20:00:32.347Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:33:initServer()) Initialize Webserver
2021-10-18T20:00:32.351Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:33:initServer()) Initialize Webserver
2021-10-18T20:00:32.523Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:91:handleSettingsUpdate()) Apply Webserver settings
2021-10-18T20:00:32.523Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:91:handleSettingsUpdate()) Apply Webserver settings
2021-10-18T20:00:32.524Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:109:handleSettingsUpdate()) Set document root to: :/webconfig
2021-10-18T20:00:32.524Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:109:handleSettingsUpdate()) Set document root to: :/webconfig
2021-10-18T20:00:32.525Z [hyperiond WEBSERVER] (INFO) Started on port 8090 name 'Hyperion Webserver'
2021-10-18T20:00:32.536Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:271:setInputImage()) Priority 240 is now active
2021-10-18T20:00:32.536Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:374:setCurrentTime()) Set visible priority to 240
2021-10-18T20:00:32.540Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:566:handleSourceAvailability()) priority[240], previousPriority[255]
2021-10-18T20:00:32.541Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:577:handleSourceAvailability()) new source available -> Resume output processing and switch LED-Device on
2021-10-18T20:00:32.562Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:175:handleSettingsUpdate()) Setup SSL certificate
2021-10-18T20:00:32.568Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:191:handleSettingsUpdate()) Setup private SSL key
2021-10-18T20:00:32.569Z [hyperiond WEBSERVER] (INFO) Started on port 8092 name 'Hyperion Webserver'
2021-10-18T20:00:32.660Z [hyperiond CEC] (INFO) Auto detecting CEC adapter
2021-10-18T20:00:32.661Z [hyperiond CEC] (INFO) CEC Adapter:
2021-10-18T20:00:32.661Z [hyperiond CEC] (INFO) 	Name   : RPI
2021-10-18T20:00:32.661Z [hyperiond CEC] (INFO) 	Path   : Raspberry Pi
2021-10-18T20:00:32.736Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:271:setInputImage()) Priority 1 is now active
2021-10-18T20:00:32.736Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:374:setCurrentTime()) Set visible priority to 1
2021-10-18T20:00:32.739Z [hyperiond SMOOTHING] (DEBUG) (LinearColorSmoothing.cpp:687:selectConfig()) cfg [2]:  Type: linear - Time: 200 ms, outputRate 25.000000 Hz, interpolationRate: 25.000000 Hz, timer: 40 ms, Dithering: 0, Decay: 1.000000 -> HalfTime: 100.000000 ms
2021-10-18T20:00:32.739Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:566:handleSourceAvailability()) priority[1], previousPriority[240]
2021-10-18T20:00:33.956Z [hyperiond WEBSOCKET] (DEBUG) (WebSocketClient.cpp:30:WebSocketClient()) New connection from ::ffff:192.168.86.20
2021-10-18T20:00:34.213Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:122:handleInstanceSwitch()) Client '::ffff:192.168.86.20' switch to Hyperion instance 0
2021-10-18T20:00:35.457Z [hyperiond EFFECTENGINE] (INFO) effect finished
2021-10-18T20:00:35.534Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:337:setCurrentTime()) Timeout clear for priority 1
2021-10-18T20:00:35.535Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:374:setCurrentTime()) Set visible priority to 240
2021-10-18T20:00:35.539Z [hyperiond SMOOTHING] (DEBUG) (LinearColorSmoothing.cpp:687:selectConfig()) cfg [0]:  Type: linear - Time: 200 ms, outputRate 25.000000 Hz, interpolationRate: 25.000000 Hz, timer: 40 ms, Dithering: 0, Decay: 1.000000 -> HalfTime: 100.000000 ms
2021-10-18T20:00:35.540Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:566:handleSourceAvailability()) priority[240], previousPriority[1]
2021-10-18T20:00:42.670Z [hyperiond CEC] (ERROR) Failed to open the CEC adaper on port RPI
2021-10-18T20:00:54.852Z [hyperiond JSONSERVER] (DEBUG) (JsonServer.cpp:105:newConnection()) New connection from: ::ffff:192.168.86.200
2021-10-18T20:00:59.400Z [hyperiond COMPONENTREG] (DEBUG) (ComponentRegister.cpp:41:setNewComponentState()) LED device: disabled
2021-10-18T20:01:01.776Z [hyperiond COMPONENTREG] (DEBUG) (ComponentRegister.cpp:41:setNewComponentState()) LED device: enabled
2021-10-18T20:05:36.998Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1062:handleLoggingCommand()) log streaming activated for client ::ffff:192.168.86.20
2021-10-18T20:05:38.647Z [hyperiond WEBSOCKET] (DEBUG) (WebSocketClient.cpp:30:WebSocketClient()) New connection from ::ffff:192.168.86.20
2021-10-18T20:05:38.991Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:122:handleInstanceSwitch()) Client '::ffff:192.168.86.20' switch to Hyperion instance 0
2021-10-18T20:05:40.116Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1062:handleLoggingCommand()) log streaming activated for client ::ffff:192.168.86.20
2021-10-18T20:06:44.948Z [hyperiond COMPONENTREG] (DEBUG) (ComponentRegister.cpp:41:setNewComponentState()) LED device: disabled
2021-10-18T20:06:48.054Z [hyperiond COMPONENTREG] (DEBUG) (ComponentRegister.cpp:41:setNewComponentState()) LED device: enabled
2021-10-18T20:06:49.915Z [hyperiond COMPONENTREG] (DEBUG) (ComponentRegister.cpp:41:setNewComponentState()) LED device: disabled
2021-10-18T20:06:51.711Z [hyperiond COMPONENTREG] (DEBUG) (ComponentRegister.cpp:41:setNewComponentState()) LED device: enabled

@Lord-Grey
Copy link
Collaborator

Lord-Grey commented Oct 19, 2021

@Joeboyc2 Would you mind pinging me via a private conversation in the hyperion forum, please?
https://hyperion-project.org/index.php?user/4989-lord-grey/

I would like to share with you a special development build that gives more information.

Hopefully, we can sort out the issue jointly.

Lord-Grey added a commit that referenced this issue Oct 28, 2021
* Fix APA102 protocoll

* Minor clean-ups

* Revert updates
@Lord-Grey Lord-Grey mentioned this issue Nov 20, 2021
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants