ESPHome - Emporia Vue 3 - The encryption key is invalid

Good morning,
I’m in the process of adding two Emporia Vue 3’s flashed with ESPHome to my home’s breaker panel. This process is taking much more effort than I initially expected, but I making progress. I’ve gotten the panel wired, and I’ve flashed the two units with ESPHome using the ESPHome Builder in Home Assistant.

I’m using the sample configuration found here to get both units set up. In my secrets file, I set up the wifi_ssid, wifi_password previously for other EPSHome devices, and they work properly.

The sample configuration has this section for encryption.

# Enable Home Assistant API…
api:
  encryption:
    key: !secret api_key

# …and use HA for setting our RTC time locally
time:
  - platform: homeassistant

# …and expose a (virtual) "switch" that HA can use to restart us
switch:
  - platform: restart
    name: Restart

# enable OTA updates after first flash
ota:
  platform: esphome
  password: !secret ota_key

For these devices, I needed to set up an api_key and ota_key.

# Your Wi-Fi SSID and password
wifi_ssid: "XXX_IOT"
wifi_password: "XXXXXXXX"

api_key: "mtbH45TqZsxuq5xevCAIL9LTf7V/D2GuovTeao/Evfw="
ota_key: "NKE7rCvTGj@ujRE3@awuKKmB"

The devices now show up in Home Assistant to be added. I paste the api key into the encryption key field, and I get the following error.

I’m sort of at a loss. Anybody know what is going on?

Try a new api key from this page it generates a new key every time the page is loaded. It’s about half way down the page.

Yeah, that’s where I generated my key from to begin with. I’m going to try again, but of course that means taking apart the device and reattaching the leads.

You might try OTA with esphome (it uses the other key that might work). If you do take it apart again, you might try a blank OTA key (no key). This means anybody on your network can overwrite the firmware, so not secure, but might be okay to debug the issues.