Closed magico13 closed 3 years ago
Hmm, it seems they broke their own API for getting the day usage. https://api.emporiaenergy.com/usage/devices?start=2020-06-01T22:51:54Z&end=2020-06-05T22:51:54Z&scale=1D&unit=WATTS&customerGid={{customerGid}}
returns a 400 with "message": "End instant must be equal or after start instant"
. Even in the official app viewing the day usage doesn't update. Viewing the historical usage in the graph view does work though but that data might be cached or using a different call.
Date parsing fixed with v0.9.9 by using dateutil instead. Issue with the day call is on their api. I reported it via email so we'll see how they respond.
Observed in a project I'm working on, making an issue so I can get back to this easily later and for visibility.