-
-
Notifications
You must be signed in to change notification settings - Fork 23
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 integration crashes latest Home Assistant 2024.2 #138
Comments
Same |
same problem |
same - deleting integration allows it to update, but of course then the integration is gone and fails to setup again. |
Same here |
Same here on generic-x86_64 |
Same 🫣 |
Same |
same. its relating to to the unique id being used is a list rather than a string. from /config/.storage/core.config_entries
|
also i moved my integration from my custom_integrations folder and it still doesnt start. I assume i must need to do something else to fully rid it from my system? going to have to roll back to 2024.1.6 for the time being |
I removed the Hikvision integration (including from HACS) and that resolved the issue. I have now been able to update to 2024.2. Unfortunately this brings me back to the Omada issue with 2024.1.6 - that is this one: |
Same here. I can delete the integration, patch HA core to 2024.2.0 but then cannot install HIKvision next as I get "unexpected error" using exactly the same field data that work if I install when core is 2024.1.6 |
probably isn't much use posting about omada in this repo :-) Do i need to actually delete the integration completely? from within the GUI? i don't fancy doing that as it means i'd have to re-set up all of my automations and everything else which uses my hikvision entities :-( not ideal. fingers crossed that this integration is not dead and that the dev is happy to fix. |
Will be there any fix of HikVision integration or we must move to forward with new/other solutions? |
@dolenec sure, I'm going to fix that |
Same |
the same, Sorry |
And when we can expect hotfix? Will there be need to remove and reinstall integration or there should be update which will fix the problem with updating HA and it is worth of waiting. |
wow, guys, be patient... @maciej-or said he is on it, so he will fix it and let us know what to do to apply the fix... there is no really point saying "me too", "same", ... etc, as the bug has been confirmed and EVERYONE who wants to use 2024.2 with this component is affected. development is not digging rows, PATIENCE! |
Not being patient.. simple normal question if there is any timeline.. nothing else.. not pushing anybody anywhere.. |
Well, the time the author spends on estimating the timeline and answering this to you and others, is the time he is not spending on fixing the issue... |
I understand that no one can enter 192.168.1.67:8123? |
this exactly seems to be problem... Except uninstall I tried to fix it directly in /config/.storage/core.config_entries so above example (just to be sure: don't use this exact unique_id but fix yours in config!) will look like this: "unique_id": "DS-2CD2342WD-I20160317BBWR582155793", ...and upgrade went ok + also hikvision integration after upgrade still works. However I'm not sure if this fix it correct one and it doesn't corrupt future upgrades - @maciej-or please comment if we can use this quick fix so far... |
this line might be wrong: |
That fix allowed me to add back the integration and at a glance it seems working. All cameras are displaying and all automations/entities are present. Not sure if that will fix an integration that wasn't removed. i.e. i removed the integration and updated then couldn't add it back. this allowed me to add it back. |
I am not a specialist here, but maybe better concatenate DOMAIN and serial_no? |
i doubt its needed. The serial# should be unique enough without requiring the domain. |
I did the same fix as above before checking here first and it works |
It worked! Thank you! |
Applied this config change and the code change recommended, did a core restart, and then the update succeeded and the cameras are all still working. |
when i have installed your integration i can not update HA Core to new version 2024.2.0. It start install update but after reboot still go back to 2024.1.6 |
You must also change /config/.storage/core.config_entries as discussed above. |
i wonder how many people are going to update their config file to exactly what you've put here? :) Not use their own serial # i mean and simply copy/paste yours ... i'd hope not, but then i watch the news and nothing surprises me afterwards! |
Ok change and now updated ok.... Thanks. I am waiting for update integration from @maciej-or and maybe also update to start working motion from NVR and cameras in this integration. Now motion detect no working. |
I thought exactly about this, so rather updated my post 😁 |
Dzięki działa :) |
so is /has / will the integration been updated or do we just need to do this fix manually and that's it? will the fix survive a reload of the integration or further updates? or adding new devices |
Hi @maciej-or, |
I reinstalled with hacs. and HA starts. |
v2024.2.1 updated just fine for me and I did not have to make any manual changes. |
updated HA and had added it back and it seems to be fine. I would suggest that the integration still needs changing somewhat as i am sure that they reverted the code in HA which checks and fails for these unique id's being just strings. it really doesnt NEED to be anything other than a string. so if (or more likely when) they bring back the check for string, the integration likely won't work again (but hopefully shouldnt cause the whole of HA to not bootup) |
Impossib
impossible to add the camera however |
Agree, but now the owner doesn't have the pressure. I think the code fix is rather trivial based on single line that needed adjusted above. However, I'm unsure if it will also need to go through the config flow again to correct the core.config_entries file though. I don't know if that file is regenerated on HA update, restart, reconfiguration of an integration, and/or integration update or none or all of the above. That's just my lack of knowledge on inner workings of HA. Might be just new release of the hacs integration and done for all i know. |
Code fix is ok : Works fine ! |
Top! |
FWIW upgrade from 2024.1.5 to 2024.2.1 worked fine for me without any modification to hikvision_next. All cameras and their smart events continued working. |
Hello, the new version is now available. It generates valid unique IDs and updates old ones. The workaround introduced in Home Assistant version 2024.2.1 is temporary, so please update the integration to v1.0.11 |
I was unable to upgrade to Home Assistant 2024.2 without first deleting the Hikvision integration. This integration was causing Home Assistant to crash on startup. All the details about this crash is available on an issue logged with Home Assistant:
home-assistant/core#109597
The text was updated successfully, but these errors were encountered: