I’m trying to display power consumption and generation values from a power usage system called Reposit (repositpower.com) which I already have installed. I’ve managed to interrogate the iOS app and I have found the API URL. The output is displayed within a browser (following authentication) as:
Hi @mathewryan . Have you made any progress with the Reposit interface? I have one as well, and would love some way of interfacing Home Assistant to it.
Was your response string above using the web API, or were you able to pull this data locally?
I don’t have a reposit box (interested in the tech though) so I can’t help you with the URL in @mathewryan’s example…
However if you manage to find out that URL, I’ve done enough wrangling with the rest module to help solve @mathewryan’s original question should he come back.
I haven’t made a whole lot of progress. I can successfully gain access to the API data in a browser, but when I use the same credentials in HA i’m now getting the error:
@harrisony, Thanks for cleaning up the code for me, without being able to get past my authentication issue, I can’t comment of how effective it is, but I did need to remove the value_template: 'OK' as it was masking my error message.
I’m trying to get reposit data but I’m not clear re the Token as every time I run the curl command from RB pi command it generates new token. What should I replace theuserkey with.