Hi Jorgensen,
I’ve been struggling for 3 days with this (after 3+ years with openhab) and i cannot wrap my head around it…
Can you please post your solution. I would like to take data from exactly eloverblik.dk.
Using the HTTP binding I managed to get a token but using the token string from the item receiving it, to the headers for the other calls eludes me. I ended up using the JINJA transform for the body as here (HTTP binding send JSON body in PUT request (restful api)) but that just gives me 400 Bad request, which according to the docs for the API means I am not authorized. Yet the token works from python… This is really frustrating as it took me 10 mins to get the whole thing going in python and the supposedly trivial part of porting to openhab has been a nightmare…
Thanks for the help!