psvanstrom / esphome-p1reader

ESPHome custom component for reading P1 data from electricity meters.
MIT License
266 stars 116 forks source link

esphome encryption key instructions #64

Closed norrland closed 1 year ago

norrland commented 1 year ago

Use encryption key rather than password for api access. Using password is deprecated.

Something like:

api:
  encryption:
    key: !secrets encryption_key
pumpagubben commented 1 year ago

A random generated encryption key can be obtained here: https://esphome.io/components/api.html Typo above in code, no s in "!secret". Home assistant will automatically prompt to enter the new key.

# Enable Home Assistant API
api:
  encryption:
    key: !secret encryption_key
    #  password: !secret hass_api_password
psvanstrom commented 1 year ago

Thanks! This has now been fixed 👍