-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
Hikvision sensor component causes high-cpu in multi-sensor setup #6315
Comments
Ok lets try to clear up a few things. Is it correct to say that you didn't have this behavior prior to 0.39.1? Can you test running 0.39.1 with netdisco rolled back as described in #6165 and see if this behavior persists? Does it matter which sensor you disable? |
I tested it with 0.38.x and have the same issue. I simply added the second camera into configuration recently, before I had only one. |
Does it matter which camera you disable? I'm trying to rule out that the new camera may be causing some weird condition to occur. In any case please set the hikvision platforms to debug logging: pyhik.hikvision: debug
homeassistant.components.binary_sensor.hikvision: debug and provide a log for when both are defined and you get the high cpu usage. If it ends up being a single camera that's causing it provide a log trace for just that single camera as well. I actually have a pending PR to update the hass hikvision implementation, but it doesn't change the core operation of the stream processing thread so i'm skeptical it would fix your issue. |
OK, so it's really a single camera that's causing the issue. The models are slightly different. Here is the log from "bad" (DS-2CD2542FWD-IS) camera - that causes high-cpu:
log with good camera (DS-2CD2142FWD-I), no high-cpu
|
Unfortunately, nothing obvious there. We can work through some more things, but since this is likely a pyHik issue and not a HASS one can you close this and open an issue on the pyHik repository: https://github.com/mezz64/pyHik A key extra detail at the moment would be what firmware version the cameras are on. |
Environment: haas 0.39.1 started as a fresh container from official docker image.
Issue: bare configuration with two hikvision sensors defined as shown below causes python process to stick at high-cpu usage (~70%). Removing one of the sensor's from configuration.yaml resolves the issue
Problem-relevant
configuration.yaml
entries and steps to reproduce:Additional info: original discussion with hikvision component's maintainer @mezz64 started in issue #6165
The text was updated successfully, but these errors were encountered: