Hello!
I am looking to make a custom weather Entity via the Weather Template so that i can have two weather cards from the same weather integration, one with Celsius and the other in Fahrenheit. I am using the Meteorologisk institutt (Met.no) integration. I started off by configuring a second entity from this integration and changing the temperature units to C and i got the following:
The numbers are correct in that they have been converted to C but the unit still showing F.
I figured the next step was to use the Weather Template to create my own entity. However, my code:
weather:
- platform: template
name: "Forecast Home (Celsius)"
unique_id: forecast_home_celsius_custom
condition_template: "{{ states('weather.forecast_home_celsius_met') }}"
temperature_template: "{{ state_attr('weather.forecast_home_celsius_met', 'temperature') | float }}"
temperature_unit: "°C"
humidity_template: "{{ state_attr('weather.forecast_home_celsius_met', 'humidity') }}"
wind_speed_template: "{{ state_attr('weather.forecast_home_celsius_met', 'wind_speed') }}"
wind_speed_unit: "mph"
forecast_daily_template: "{{ state_attr('weather.forecast_home_celsius_met', 'daily_forecast') }}"
forecast_hourly_template: "{{ state_attr('weather.forecast_home_celsius_met', 'hourly_forecast') }}"
results in:
The result is back in F and I don’t have the hourly forecast.
I think that I need to use weather.get_forcasts to get the hourly forecast but I am unsure how to make the connection.
Any help would be much appreciated!
Thank you in advance