piotrmachowski/home-assistant-custom-components-tauron-amiplus ? reverse-engineered prompt
Reverse engineered prompt
Build me a Home Assistant custom integration for Tauron AMIplus that pulls energy usage and generation data from the TAURON eLicznik website using their unofficial API.
I want it to work nicely from the Integrations screen with a setup form, and also support the older YAML setup if needed. It should let me log in with my eLicznik username and password, choose my energy meter ID, and pick which values I want to monitor, like current consumption, daily, monthly, yearly, last 12 months, and the same for generation and balance.
Make sure it creates useful sensors for Home Assistant and can keep the data refreshed on a regular schedule. If there are missing readings, include a way to download or fill in statistics later. Use current Home Assistant best practices, and if you need to check the latest integration docs online, go ahead and do that.