Hello,
I’ve searched a lot on the forum already but cannot find exactly the solution to my challenge.
Tried already many setups but the sensor always comes out as “unknown”.
Does anyone know how to translate the following curl to a rest command?
In the mean time I switched to a simpler command_line sensor using the curl command.
The output is: HTTP/1.1 200 OK Date: Sun, 02 Jul 2023 07:02:20 GMT Content-Type: application/json Transfer-Encoding: chunked Connection: keep-alive X-Frame-Options: SAMEORIGIN {"access_token":"bladibladibla","token_type":"bearer","expires_in":3600}
trying to get the access_token out with: value_template: "{{value_json.access_token}}"
gives the error: 'value_json' is undefined when rendering '{{ value_json.access_token }}'
how to solve?
The response is not JSON?