Home Assistant asks for encryption key
Linked issue: #870
When adding your Glow to Home Assistant, you may be prompted to enter an encryption key. This should not happen if you're using the default firmware installed via this website.
What causes this?
The default firmware available on this website does not include an encryption key in the YAML configuration. However, if you have made any modifications to the firmware, an encryption key may have been added automatically.
The most common scenario is:
- You added the Glow to the ESPHome Builder (add-on)
- You clicked "Take Control" in ESPHome Builder
- ESPHome automatically installed custom firmware and added an
encryption->key:entry to your YAML configuration
What to do?
If you're using custom firmware through ESPHome Builder, you need to find the encryption key in your device's YAML configuration:
- Open ESPHome Builder
- Find your Glow device (e.g., "home-assistant-glow-XXXX")
- Click Edit to view the YAML configuration
- Look for the
api:section with theencryption->key:entry - Use this key when adding the device to Home Assistant
Once you start using the ESPHome Builder and make custom firmware modifications, you are responsible for managing your own configuration, including the encryption key. Using ESPHome Builder requires advanced skills and understanding of how ESPHome works.
Avoiding this issue
If you want to avoid encryption key issues:
- Stick with the default firmware if you don't need customization - this way you get automatic updates and no encryption complexity
- Only adopt the device in ESPHome Builder if you need specific customizations that aren't available in the default firmware
See Customizing the Firmware for more information about when and why you might want to customize.