frigate: Supervisor 2021.02.1 seams breaking the Addon
Dear @blakeblackshear thanks a lot for this awesome addon and customcomponent. It was runing like a charm. Unfortunately I face an isse after upgrading my supervisor (supervised install method of Home assistant).
Now each time I want to save my config I geet this error (Chrome console):
chunk.97b95a62afbc18471344.js:3350 Uncaught (in promise) TypeError: Cannot read property 'find' of null
at HTMLElement.value (chunk.97b95a62afbc18471344.js:3350)
at HTMLElement.performUpdate (entrypoint.cf81f6d9.js:35547)
at HTMLElement._enqueueUpdate (entrypoint.cf81f6d9.js:35547)
Could not load content for webpack://home-assistant-frontend/chunk.97b95a62afbc18471344.js (HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME)
{result: "ok", data: {}}
data: {}
result: "ok"
I dunno what’s going on here or how I can find the issue. If you might have a look in this. I guess this will impact other users with updated suervisor as well.
Please let me know if you need additional information.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 2
- Comments: 55 (26 by maintainers)
Just pushed a new version of the addon. Frigate’s config can no longer be managed in the
Configuration
tab of the addon (at least for now). The addon expects afrigate.yml
file to exist in the root of your homeassistant config directory. You can edit it using whatever editor you use for homeassistant config.If you are using HassOS the snapshots take backups of your addon config too, but this is exactly why frigate does not have the ability to modify it’s own config. Even when it does, it will always just be a UI for modifying the config file with a clear option for those who want to save it out into source control since this is how I do it. There will never be a
.storage
folder for frigate.Managed to do something similar to get the addon started again. Thanks for the tip.
I don’t think that will work because the developer docs state “Only nested arrays and dictionaries are supported with a deep of two size”.
I just updated to latest Supervisor version with own Api for configuration
https://github.com/home-assistant/developers.home-assistant/pull/794/files
BUT i get still an error:
With config:
Config is saved but somehow not? Nothing in Chrome Console
this is in logs:
@hawkeye217 As this is a problem for me, too, could you add some information how you installed the watch on the file? Thx, Sebastian
I’m really surprised that this isn’t breaking lots of addons. It doesn’t seem to be possible to disable schema validation and allow an open ended yaml configuration anymore. The schema validation builtin to the supervisor is not advanced enough for frigate. If that was intentional, I will have to move to reading the config file from homeassistant’s config directory instead, and it will no longer be possible to use the addon configuration tab to edit your config.
As a work-around, I’ve backed up a JSON formatted version of my configuration (used
faq
to convert from YAML to JSON) and installed a watch on theoption.json
file to replace it by the backup as soon as it is overwritten by supervisor:Sadly, Supervisor 2021.02.5 is out of beta, so it is now auto upgrading from 2021.01.x but the Frigate addon is still no longer compatible (same
Error parsing config: 'mqtt'
error as already reported above).Downgrading to 2021.01.8 does not help as it will re-upgrade to 2021.02.5 right after startup:
I guess the solution is to wait until the next bugfix release or roll your install back.
facing the same problem, now i can load the configuration but it stuck on the mqtt