This is driving me nuts!
I have this definition:
- name: bright_sky_rest
platform: rest
resource_template: https://api.brightsky.dev/weather?date={{ now().strftime('%Y-%m-%dT%H:00+02:00') }}&last_date={{ now().strftime('%Y-%m-%dT%H:00+02:00') }}&dwd_station_id=00403
json_attributes_path: "$.weather"
value_template: "OK"
scan_interval: 900
json_attributes:
- timestamp
- temperature
If check the resource_template in the template-debugger it renders the URL correctly and opening the resulting URL in the browser gets a valid JSON-response.
However the sensor just generates the following error in the logger:
JSON result was not a dictionary or list with 0th element a dictionary
I tried quoting, urlencode, etc. but nothing works.
Any Idea whats going on?