Skip to content

Home Dashboard Shows Unpredictable Weather Forecast Card If User Has More Than One Weather Service Defined #27305

@mtl010957

Description

@mtl010957

Checklist

  • I have updated to the latest available Home Assistant version.
  • I have cleared the cache of my browser.
  • I have tried a different browser to see if it is related to my browser.
  • I have tried reproducing the issue in safe mode to rule out problems with unsupported custom resources.

Describe the issue you are experiencing

I have the NWS integration setup with two different locations, thus two weather services and two weather.????_daynight entities. The new Home dashboard picks one or the other of these entities to show, seemingly randomly, with no particular pattern of which one will appear at any time or after any browser reload or other action.

Describe the behavior you expected

I expect some predictable way to see one of the weather forecast entities of my choice. I know I can hide one of them but that would hide it from the entire UI and that is not acceptable.

Steps to reproduce the issue

  1. Define more than one weather forecast service
  2. Define a Home dashboard
  3. Open the Home dashboard and note which of the weather entities are shown
  4. Restart HA, reload the browser, go to another browser, etc. and note if the weather entity shown switches
    ...

What version of Home Assistant Core has the issue?

core-2025.10.0

What was the last working version of Home Assistant Core?

No response

In which browser are you experiencing the issue?

Mozilla Firefox Nightly 145.0a1 (2025-10-02) (64-bit)

Which operating system are you using to run this browser?

Ubuntu 25.04

State of relevant entities

NWS Service #1:
weather.kptk_daynight
temperature: 76
temperature_unit: °F
humidity: 31
pressure: 30.28
pressure_unit: inHg
wind_bearing: 0
wind_speed: 0
wind_speed_unit: mph
visibility: 10
visibility_unit: mi
precipitation_unit: in
attribution: Data from National Weather Service/NOAA
friendly_name: KPTK
supported_features: 6

NWS Service #2:
weather.kslh_daynight
temperature: 72
temperature_unit: °F
humidity: 50
pressure: 30.24
pressure_unit: inHg
wind_bearing: 30
wind_speed: 6.93
wind_speed_unit: mph
visibility: 10
visibility_unit: mi
precipitation_unit: in
attribution: Data from National Weather Service/NOAA
friendly_name: KSLH
supported_features: 6

Problem-relevant frontend configuration

JavaScript errors shown in your browser console/inspector

Additional information

This behavior appears to be set starting at or around line 183 in home-main-view-strategy.ts

I'm not familiar with frontend development so not sure what the best strategy to handle this might be. Please let me know if I can help further.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions