Secrets are not working for me for some reason.
I have created a secrets.yaml file and used !secret my_secret_name in the configuration.yaml file. my_secret_name is pointing to the same entry in the secrets.yaml file.
When I perform a config check (sudo hass -c /var/opt/homeassistant/ --script check_config --secrets) it passes with flying colors, so there are no syntax errors. Home Assistant also starts up fine. It is just that all the components containing secrets are not showing up in the view.
When I move, lets say the forecast.io api key from the secrets.yaml into the configuration.yaml it works perfectly.
I can not figure out how to fix this. Does anyone have any suggestions?
Relevant(?) information:
Installed on: Raspberry Pi 3 B
Installation/config/secrets directory: /var/opts/homeassistant
Installation method: manual
Edit:
Hah. “Solved” it. All those things using secrets relied on a network connection. It looks like the Pi started HAS before there was a network connection. So I used the rasp-config utility and set it to wait for the network untill finishing the boot, and now everything seems to work fine. It was just a coincidence that I noticed it whilst implementing secrets and rebooting the device a couple of times.