psvanstrom / esphome-p1reader

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

Home Assistant configuration #11

Closed dessibelle closed 2 years ago

dessibelle commented 3 years ago

I've been running Home Assistant for some time, but am new to ESPHome and I've ran into some issues with the configuration before flashing my NodeMCU. I understand this is essentially a Home Assistant and/or ESPHome question, but I have not been able to find anything useful when googling, so attempting a post here.

It's the value for hass_api_password in particular I'm having problems understanding. I assume it is an API password for some REST API that can be enabled within home assistant. Is that at all correct? I've tried both the legacy_api_password method and the newer REST API without being able to successfully connect (using curl that is, not esphome-p1reader which I haven't even attempted yet).

I've also considered that hass_api_password could be something ESPHome related, which I have very little knowledge about, but my research has come up blank there as well. I'd greatly appreciate if someone could point me in the right direction with regards to what hass_api_password is and how I can set it up. Thanks!

psvanstrom commented 2 years ago

The hass_api_password value is the password that will be enabled for the ESPHome API that Home Assistant uses for communication. Just invent a password and replace hass_api_password with that value, then when you set up the integration in Home Assistant it will ask your for your API password and use that to communicate with your device.

dessibelle commented 2 years ago

Great, thanks for clearing that out! 🙏