Weather.forecast_home card, replace temperature by sensor temperature

I’m still very new to HA. I am using a weather card with the met.no weather forecast that was, as far as I remember, preinstalled/preconfigured after HA installation. I like the layout and content of that card and the forecast that I get. All I want to do is switch out the temperature with the temperature of my own temperature sensor, but I have failed so far.

I created a template in configuration.yaml like so:

weather:
  - platform: template
    name: "Wetter Angerstein"
    condition_template: "{{ state_attr('weather.forecast_home', 'condition') }}"
    temperature_template: "{{ states('sensor.nibe_36404_40004') | float }}"
    temperature_unit: "°C"
    humidity_template: "{{ state_attr('weather.forecast_home', 'humidity') }}"
    forecast_template: "{{ state_attr('weather.forecast_home', 'forecast') }}"

but the card now looks like this:

image

instead of this:

image

So I do get my own temperature, which is great, but I’m losing everything else :slight_smile:

What do I have to do to keep most oft the met.no information and only replace the temperature?

I cannot tell as no experience with this but a lot of flex is offered via the platinum weather card (hacs)

Ok, I did get it to work like this:

weather:
  - platform: template
    name: "Wetter Zuhause"
    unique_id: wetter_zuhause
    condition_template: "{{ states('weather.forecast_home') }}"
    temperature_template: "{{ states('sensor.nibe_36404_40004') | float}}"
    humidity_template: "{{ state_attr('weather.forecast_home', 'humidity') }}"
    pressure_template: "{{ state_attr('weather.forecast_home', 'pressure') }}"
    forecast_template: "{{ state_attr('weather.forecast_home', 'forecast') }}"
    #wind_speed_template: "{{ states('weather.forecast_home', 'wind_speed')}}"
    #wind_bearing_template: "{{ states('sensor.ambient_wind_dir') | float}}"
    visibility_template: "{{ state_attr('weather.forecast_home', 'visibility') }}"

Not sure how to get the wind information from the forecast as well. when using

wind_speed_template: "{{ states('weather.forecast_home', 'wind_speed')}}"

all I get is “Wind speed: cloudy” :slight_smile:

Now the integrated weather card shows my locally measured temperature.

image

Odd as if it is wrong attr. then it should show nothing…
Does it show the same in devtools > templates ( I guess so) and cna you then paste how it shows in devtools > template?