I get a 403 FORBIDDEN error written to the file energybaseline.txt
Where PASSWORD is I am using the raw token from long live token.
Did lot o reading and tried lots o variations of the above curl with the same result.
I call the curl from a script. which is called from an automation.
that all goes fine I Just get 403 forbidden written to the file.
So I figured it out… I was missing the Authorization: Bearer and token and the url was asking for the wrong sensor… I dig the curl stuff but it gets confusing…
Thanks for the input.