2023.2: ESPHome deprecated API password: how to update to encryption key

And for me to understand, this base64_key , does it:

  • need to be unique for each ESPhome device?
  • is it unique for the add-on installation? (IOW there is 1 and only 1 base64 key for my HA installation)?
  • or can one have duplicate base64 keys ?
  • should it not be kept in the secrets file?

Thank U

I have one key,saved in secrets file, all working ok

  • Even need a key?

Most of my ESP devices don’t have any keys, or even an API password since I have never been a security paranoid. But I have decided to migrate them to a single key like @John_p recommends because it’s easy to do.

Did you find workaround? I have the same problem.

It worked for me, I added single key for all my devices. Besides this I created new secrets.yaml file under /config/esphome folder and saved my key there. ESPHome configuration was not able to reference my original secrets file under /config folder so ended up created new one right under /esphome folder. I also have my sample ESP device config file posted above for reference, hope this helps.

I have 2 devices. One works, one doesn’t.

I tried using these instructions after repeated warnings about the password deprecation. But I have a problem at the reconfigure step. It prompts me for a “password”. When I enter the base64 encryption key, it doesn’t accept it:

I think it is still looking for the old-style password, not the new encryption key, this is why it’s not working. Is there any way to update the device? I definitely don’t want to delete it because I’ll lose my history.

I reverted to the password again and it is reporting again, though the reconfigure badge is still there. Weird.