How to use environment variables (password, etc.) with Home Assistant addon? #22077
-
|
Hello, I'm confused and unsure how to use Frigate environment variables with the Home Assistant addon. BTW, the AI reply below is not helpful. I've looked through the docs already. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
|
For Home Assistant OS Add-on installations, the config file should be at You can access this directory using the VS Code Add-on by clicking File > Open folder... and navigating to For environment variable substitution with the Home Assistant Add-on, Frigate supports the use of environment variables starting with mqtt:
user: "{FRIGATE_MQTT_USER}"
password: "{FRIGATE_MQTT_PASSWORD}"For camera streams: - path: rtsp://{FRIGATE_RTSP_USER}:{FRIGATE_RTSP_PASSWORD}@10.0.10.10:8554/unicastFor ONVIF: onvif:
host: 10.0.10.10
port: 8000
user: "{FRIGATE_RTSP_USER}"
password: "{FRIGATE_RTSP_PASSWORD}"The environment variables themselves need to be set in your system environment where the Frigate container runs. The documentation shows these are substituted at runtime(1). Regarding your missing 📚 Sources:
Have another question? Just tag @inkeep. |
Beta Was this translation helpful? Give feedback.
-
Hoping someone can provide an answer. I can't find in the docs, where to configure the variables. |
Beta Was this translation helpful? Give feedback.
That's not possible currently when running as an addon, it's only possible when running in docker directly.
It would be great if home assistant enabled this capability with addons