Yesterday and today I received an e-mail from OpenWeatherMap, warning me I had exceeded my free API limit of 1000 calls a day. This doesn’t ring a bell. It is configured for two calls every hour. So that would mean 48 calls daily.
For a long time, the documentation about scan_interval mentions ‘These options are being phased out and are only available for single platform integrations.’ Has this moment finally come? How can I find out? I am on HA 0.116.4.
This is in my configuration.yaml:
- platform: rest
name: openweather_report
json_attributes_path: "$.daily[0]" # 0=vandaag
json_attributes:
- temp
value_template: "{{ value_json['current']['dt'] | timestamp_custom('%Y-%m-%d %H:%M', true) }}"
resource: !secret openweathermap_resource
scan_interval: 3600
- platform: template
sensors:
openweather_maxtemp_today:
value_template: "{{ states.sensor.openweather_report.attributes.temp.max }}"
openweather_temp_tonight:
value_template: "{{ states.sensor.openweather_report.attributes.temp.night }}"
openweather_mintemp_today:
value_template: "{{ states.sensor.openweather_report.attributes.temp.min }}"
- platform: rest
name: openweather_report2
json_attributes:
- current
- daily
value_template: "{{ value_json['current']['dt'] | timestamp_custom('%Y-%m-%d %H:%M', true) }}"
resource: !secret openweathermap_resource2
scan_interval: 3600
- platform: template
sensors:
openweather_temp_day0_v3:
value_template: "{{ state_attr('sensor.openweather_report2', 'daily')[0].temp.day }}"
openweather_temp_night0_v3:
value_template: "{{ state_attr('sensor.openweather_report2', 'daily')[0].temp.night }}"
openweather_temp_day1_v3:
value_template: "{{ state_attr('sensor.openweather_report2', 'daily')[1].temp.day }}"
openweather_temp_night1_v3:
value_template: "{{ state_attr('sensor.openweather_report2', 'daily')[1].temp.night }}"
Thanks in advance,
Roelof