home-assistant / ui-schema

A schema to define a user interface for Home Assistant.
Apache License 2.0
41 stars 6 forks source link

history-graph caches the image between views #135

Closed reevery closed 6 years ago

reevery commented 6 years ago

Hi

I have a couple of views which use history-graph but have different entities. When I switch between views, the graph needs a page refresh to get the correct graph.

Home: image

  - title: Home
    icon: mdi:home-assistant
    id: home
    cards:
      - type: history-graph
        title: Outside Temperature
        entities:
          - entity: sensor.yr_temperature
            name: YR
          - entity: sensor.owm_temperature
            name: OWM
          - entity: sensor.dark_sky_temperature
            name: Dark Sky

Now off to Living Room: image

  - title: Living Room
    id: lr
    cards:
      - type: history-graph
        title: Temperature
        entities:
          - entity: climate.living_room
            name: ac
          - entity: sensor.kitchen_temperature
            name: Kitchen
          - entity: sensor.dark_sky_temperature
            name: outside

Then F5 (refresh), to what Living Room should be like: image

shortbloke commented 6 years ago

Yes I'm seeing this too: Raspberry Pi 3 B+ Home Assistant: 0.74.1 Hass.io 121 HassOS 1.7 (64bit) Browser: Google Chrome 67.0.3396.99

Even with cards on the same tab I get mis-matches of entities being plotted on this card type.

balloob commented 6 years ago

I wonder if there is something wrong with the used cacheKey

c727 commented 6 years ago

^yep

I still can't reproduce this. if it's not fixed in 0.75 create a new issue