-
-
Notifications
You must be signed in to change notification settings - Fork 21
Description
With the free API Token from ESP, you get 50 credits a day, on startup and every hour there after the integration uses 2 of those credits... In normal circumstances this is OK as there are 24 hours a day times 2 is 48, which is under that limit, but I was trying to workout something this afternoon and restarted my home assistant way too many times now my load shedding sensors are broken (except the quota one) π

I see in the HA Dev Docs they have Restoring sensor states which might be an option, I know last time you used a custom json file in the .cache folder...
It would be nice if you're out of credits the previous state is maintained instead of going to Unavailable/Unknown...
I guess there is danger in having that stale state forever, so it could go unavailable if you couldn't update for more than 24 hours π€·π»ββοΈ ...
If I had a better understanding of Python I'd maybe tackle these, who knows maybe next weekend I'll give it a go π
Thanks again for making the integration and doing change to ESP