Hello,
I am trying to read sensor data from Home Assistant with GET requests. I want to return the data using JSON.
I can get it to return:
{"result":"off"}
However, when I set the header content-type to application/json it shows:
{"result":"off"}
What am I doing wrong and how can I fix this?