mattlongman / Hassio-Access-Point

Hass.io addon to let you create a WiFi access point, perfect for using WiFi devices on off-grid installations.
MIT License
91 stars 64 forks source link

Support the use of secrets in the add-on configuration #16

Closed bsfaxi closed 3 years ago

bsfaxi commented 3 years ago

Hi, I'm using the add-on and it works like a charm. I tried to use secrets inside the configuration like for the other add-ons, especially for the "wpa_passphrase", and eventually for the "ssid", since I want it hidden.

The part of the configuration should look like below:

ssid: '!secret HotSpot_name'
wpa_passphrase: '!secret HotSpot_password'

But, when I try to save the configuration, I have the following error:

Error.... Unknown secret 'HotSpot_name' in Hass.io Access Point (30e576d0_hassio-access-point). Got {'ssid': '!secret HotSpot_name', 'wpa_passphrase': '!secret HotSpot_password', 'channel': '6', '...}

The secrets are of course stored in the secrets.yaml file of Home Assistant. Thanks in advance for your support.

Bilel

bsfaxi commented 3 years ago

Sorry for this wrong issue. I had to restart the supervisor to take into account the new secrets. Now, it works fine with secrets. ;)