-
-
Notifications
You must be signed in to change notification settings - Fork 29k
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
UniFi Protect 4.0 causes ValueError: 'IMAGE' is not a valid DoorbellMessageType #117274
Comments
Hey there @AngellusMortis, @bdraco, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) unifiprotect documentation |
Thanks for the report! |
Same issue with me but I'm on the Release Candidate version of Protect 4.0.21. If I go into my G4 Pro doorbell settings and remove the custom image, switching it back to text, then reload the integration all seems well. Once the integration is running it doesn't seem to care if I switch my doorbell back to the custom image. |
4.0.21 went on general release today. Is it safe to update? EDIT: Answering my own question. Went from 3.0.26 to 4.0.21 no issues |
Protect 4 is released, don't activate a own image because this will break the integration until you switch back to the build in picture or normal text |
Darn, I just updated to the officially released 4.x so I could have the |
I looked at this briefly earlier today when my integration stopped working. I don’t think the error is actually in the integration, but rather the python protect api library supporting the integration is throwing the exception. pyunifiprotect i think was it’s name. i read several comments in that repo indicating it might be updated to handle the chg already. I didn’t specifically validate it, but saw IMAGE was a valid msg type now in that api library and comments specific to doorbell images. likely it’ll get released inn an upcoming ha release. there is a way to pull in the python library into ha prior to official release and even run the integration as a custom component if a chg is made here, but i’d just wait on it. I’ve been without doorbell animations for nearly two years so couple more weeks isn’t gonna hurt. i also think once the integration is running you can chg the doorbell image and unless ha or the integration restarts it seems to function normally. |
Does look like the upstream |
Here is a summary of the current state of affairs: |
With that BSL i'm not even sure a new owner can take over right? that poison pill is towards HA basically doesn't allow any changes related to HA. This integration is gonna have to die maybe. Unless he grants a new MIT license to a new owner. What a carrot!!! |
They can fork the code, up until the BSL license change, and provide the code updates. The big headache though is, you have to update the code in a way that isn't a copy/paste from the other project.....but there are only so many ways to write an |
Like I said in a previous comment, this integration is still functional in it's current state with Unifi Protect 4. I had issues with the integration failing to start but that was traced back to a custom image on my G4 Pro doorbell. I simply have to revert the doorbell image back to the default and then restart the integration to fix the issue. Once the integration is running I am able to go back to a custom image on my doorbell and all works fine. I use this integration mainly for custom Alexa TTS messages, like when one of my cameras detects a person my Alexa can alert me "There is someone in the back yard" and I havent had any issues with that with Unifi Protect 4. |
This is kind of what i was referring to actually, i'm betting the owner of the BSL license will likely continually wage complaints against the new maintainers. i only use it for doorbell notifications so i might just run a diy sensor on the mechanical doorbell chime. I just see a rough road for awhile on this integration. If i were a python guy i'd offer to help on the integration, but alias i'm just an old school C programmer. |
Have the same setup, and happy to verify/test as needed. Confirmed removing the custom GIF/JPG on the G4 Doorbell Pro allows the integration to run. |
changelog: uilibs/uiprotect@v0.3.9...v0.4.0 fixes #117274
changelog: uilibs/uiprotect@v0.3.9...v0.4.0 fixes #117274
The problem
Hi, I know that EA versions of Unifi are not fully supported, but maybe this will be fixed... In the latest version of Protect, Ubiquity introduced the ability to set images on Doorbell Pro G4 instead of text message, and if i choose a image the Protect Integration will fail to start:
ValueError: 'IMAGE' is not a valid DoorbellMessageType
What version of Home Assistant Core has the issue?
core-2024.5.2
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Container
Integration causing the issue
Unifi Protect
Link to integration documentation on our website
https://www.home-assistant.io/integrations/unifiprotect/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
No response
The text was updated successfully, but these errors were encountered: