core: Missing precipitation_template in Template Weather Provider
The problem
Hi,
in Template Weather Provider there are data pairs such as:
temperature_template - temperature_unit pressure_template - pressure_unit visibility_template - visibility_unit etc
but, I find precipitation_unit but I don’t find precipitation_template.
precipitation_template is missing,
I think it is a sufficiently important field,
Thanks
What version of Home Assistant Core has the issue?
2023.9
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Container
Integration causing the issue
Template Weather Provider
Link to integration documentation on our website
https://www.home-assistant.io/integrations/weather.template
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
[547175529024] Cannot quick reload all YAML configurations because the configuration is not valid: Invalid config for [weather.template]: [precipitation_template] is an invalid option for [weather.template]. Check: weather.template->precipitation_template. (See ?, line ?).
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 227, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1969, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2006, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 980, in admin_handler
await result
File "/usr/src/homeassistant/homeassistant/components/homeassistant/__init__.py", line 316, in async_handle_reload_all
raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Cannot quick reload all YAML configurations because the configuration is not valid: Invalid config for [weather.template]: [precipitation_template] is an invalid option for [weather.template]. Check: weather.template->precipitation_template. (See ?, line ?).
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 3
- Comments: 46 (22 by maintainers)
Still an issue
This is really strange, just came across the same thing - apart of the temperature, this is the second most important attribute in my opinion. it would be great if this can be added
Agree. It is weird that
precipitation_templateshould be missing@home-assistant close
Wow!! It’s exactly what I asked at the beginning of the thread, I think this variable should be integrated into the HA weather entity and into the template.
Thank you very much.
@PacmanForever FYI this weather card lets you add precipitation to be displayed in the frontend, it has an individual field for it: https://github.com/altrdev/platinum-weather-card
I don’t understand.
Anyway, whether you agree with me or not, the precipitation_template should just be made to exist like the others I mentioned. I don’t see why this one should be different.
Precipitation should be daily accumulation, not current precipitation, I think.
With this problem it is evident that no one is going to die, but it would be nice to give it a little attention. There are small details that can be important to someone.