Hello, I’ve created a simple rest platform, but sometimes api returns errors (with error messages). I would like to read these error messages, is it possible? HA logs are very generic and says nothing. e.g.
Logger: homeassistant.components.rest.data
Source: components/rest/data.py:74
Integration: RESTful (documentation, issues)
First occurred: 10:12:06 PM (1 occurrences)
Last logged: 10:12:06 PMError fetching data: https://airapi.airly.eu/v2/measurements/point?lat=50.0845&lng=20.007 failed with [Errno -3] Try again
Code:
- platform: rest
resource: https://airapi.airly.eu/v2/measurements/point?lat=50.0845&lng=20.007
name: "newairly25_rest"
scan_interval: 960
headers:
apikey:
value_template: "{{ value_json['current']['values'][1]['value'] }}"