Closed dh99999 closed 1 year ago
Very good idea. I have merged this into main. You can test by switching the intergration to use main branch instead of latest release.
Let us know if it works!
Looks good to me - data fetch takes just over a second now. Much much better! Thanks!
ps: I think the "ensemble" call can also be made optional - does not return anything in my system,
That one contains battery information (if available) and takes 200ms to retrieve.. Let's keep the code as simple as possible. I'm closing this now, thanks for confirming!
Calls to home.json appear to take a disproportionately large amount of time to complete as opposed to the other calls - on my system the actual time varies from around 2 seconds to 5 seconds - it is in the example below it is 4 seconds, eith most other calls less than a second:
In addition to this it appears that "grid_status" is the only sensor which uses the call, and for me at least, grid_status is always "Unavailable".
I am not sure why it is always Unavailable, but from other reading it may be related to installer accounts or batteries.
Either way, would it be possible to optimise the calling pattern to home.json to only call it if needed?
ie: If the previous call did not return "Unavailable"