Problem with encryption key for HA Voice PE

Hi all,
after the latest HA update my Voice Assistant PE suddenly asked for the ESPHome encryption key.
Turned out there was not even a key in the yaml file.
I tried a lot of things including completely removing it from ESPHome and also resetting the device.
It keeps getting discovered and there is no more file in the ESPhome folder that points to this specific device but still I keep getting the question about the ESPHome key, which obviously I do not have.

I would not even know what log or config to post here…since there should not be one.

I also restarted Home Assistant, cleared the browser cache…

Not sure how to get this thing back into HA.

Any idea?

Thanks in advance.

Merc

In the meantime I have also factory reset the device and tried to flash a new firmware with both methods described (bootloader and non bootloader). But nothing works.
How can I get it back alive and how can I remove it completely from HA? Somwhere it still seems to be remembered.

Hi, if you go to

Open your Home Assistant instance and show your integrations.
and open the ESPHome integration: don’t you see your Voice PE there?

You can delete it by clicking the 3 dots at the end of the device entry.

Hi Nick,
No. It is gone from the Esphome integration and also from EsphomeBuilder.

It is discovered as new device. As soon as I click on it to add it to HA I get asked for the encryption key which, according to the text on the screen, can get from Esphome…but obviously I cannot…


That’s because the encryption key is stored in the device and you have to reinstall the VPE so it creates a new encryption key.

Yes and I tried that as well but it keeps stuck in the “preparing installation” phase…

At which exact point in the procedure do you get this message?

I connect the device to usb, select it from the drop down menu and start to firmware flashing process. Then a small pop up opens and tells me it is preparing the installation.
This never stops. I have also tried the bootloader method and had it running over night. In the morning it had not proceeded…still preparing…

Which browser are you using?
Are you using browser add-ons?
Did you try with another browser?

Used Edge, no special addons I am aware of. Flashing of other devices has worked before.

What if you open this: Home Assistant Voice PE

That is the page I am using

So you’re not using ESPHome builder?!

No. It does not show up there.

Apparently, it’s not ?foreseen/possible/advised? to configure it through ESPHome builder…

I would be fine with whatever solution but so far nothing works.
I am also surprised that the 22sec reset does not seem to get rid of the encryption key.
How can I wipe the full thing completely?

This is the screen it is stuck in for hours…

Is there any option with console commands?

The web installer does not seem to work but I managed to get the device back into ESP Home Builder and into my wifi.
But still it is not fully working.
Could someone please share the standard yaml file for installation with me?
I will try to install this and see what happens.

Thanks

Sorry man, I can’t help because I don’t own one.

Also, I have seen warnings about not to add the device to the ESPHome builder but I didn’t find any info about the why.
Because of that, a regular user will not be able to share the YAML code.
I have looked left and right but did find the code either.

Hi Merc,

Did you add your Voice PE into ESPhome Device builder? It sounds like I experienced a similar issue. After trying to configure my device for a few days it started playing up so I tried to reset it by deleting out of ESPhome and ESPhome Device builder and then holding the button on the device for 20 seconds. Then when it popped up as a new device I couldn’t add it without an encryption key which I didn’t have. After hours of digging around I noticed in Studio Code Server there was a trash folder under config>esphome.


I found my old voice yaml file in trash and copied it back into the main folder config>esphome. My voice device was then visible in ESPhome device builder again and after clicking edit on the device and installing the yaml file it all started working again. Hope this helps you