Hello all,
since HA version 2023.12.X I get these Warnings in my log:
2023-12-19 10:30:13.908 WARNING (MainThread) [homeassistant.components.weather] Detected use of service 'weather.get_forecast'. This is deprecated and will stop working in Home Assistant 2024.6. Use 'weather.get_forecasts' instead which supports multiple entities
2023-12-19 10:30:13.928 WARNING (MainThread) [homeassistant.components.weather] Detected use of service 'weather.get_forecast'. This is deprecated and will stop working in Home Assistant 2024.6. Use 'weather.get_forecasts' instead which supports multiple entities
These warnings are pretty self explained. Therefore I changed my template from this:
template:
- trigger:
- platform: state
entity_id: weather.openweathermap_hourly
action:
- service: weather.get_forecast
data:
type: hourly
target:
entity_id: weather.openweathermap_hourly
response_variable: hourly
sensor:
- name: Weather Forecast Hourly
unique_id: weather_forecast_hourly
state: "{{ now().isoformat() }}"
attributes:
forecast: "{{ hourly.forecast }}"
- trigger:
- platform: state
entity_id: weather.openweathermap
action:
- service: weather.get_forecast
data:
type: daily
target:
entity_id: weather.openweathermap
response_variable: daily
sensor:
- name: Weather Forecast Daily
unique_id: weather_forecast_daily
state: "{{ now().isoformat() }}"
attributes:
forecast: "{{ daily.forecast }}"
to this
template:
- trigger:
- platform: state
entity_id: weather.openweathermap_hourly
action:
- service: weather.get_forecasts
data:
type: hourly
target:
entity_id: weather.openweathermap_hourly
response_variable: hourly
sensor:
- name: Weather Forecast Hourly
unique_id: weather_forecast_hourly
state: "{{ now().isoformat() }}"
attributes:
forecast: "{{ hourly['weather.openweathermap_hourly'].forecast }}"
- trigger:
- platform: state
entity_id: weather.openweathermap
action:
- service: weather.get_forecasts
data:
type: daily
target:
entity_id: weather.openweathermap
response_variable: daily
sensor:
- name: Weather Forecast Daily
unique_id: weather_forecast_daily
state: "{{ now().isoformat() }}"
attributes:
forecast: "{{ daily['weather.openweathermap'].forecast }}"
Sadly these warnings are still shown and doesnât disappear.
I also searched for any automation or template which is using this deprecated service âweather.get_forecastâ, but I canât find it.
Is it possible that this warning is buggy or is there any problem on my site?