Hi all,
I am very new to ESPhome and am running into some issues with a few lines of code. It has to do with the secret.yaml and passwords in the code. The error message I am recieving for each password line is:
INFO ESPHome 2023.8.3
INFO Reading configuration /config/esphome/7-segment-clock.yaml...
ERROR Error while reading config: Invalid YAML syntax:
Secret 'hassio_api_password' not defined
in "/config/esphome/7-segment-clock.yaml", line 30, column 13:
password: !secret hassio_api_password
but I can’t tell what’s wrong. This is the ESPhome code:
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "${device_name} Fallback Hotspot"
password: !secret wifi_fallback_api_password
logger:
level: DEBUG
# Enable Home Assistant API
api:
password: !secret hassio_api_password
ota:
password: !secret ota_password
I am not getting an error on the wifi SSID or Password lines, but I am on each subsequent password line.
ALSO, I am not sure which passwords it wants for these passwords:
api:
password: !secret hassio_api_password
ota:
password: !secret ota_password
Sorry if this doesn’t make sense…it’s been a long day. But if anyone can point me in the right direction, I would greatly appreciate it!
Thanks!