Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lovelace media-control and weather-forecast broken in main view vertical-stack with 0.81.0 #17863

Closed
hudecitydave opened this issue Oct 27, 2018 · 10 comments

Comments

@hudecitydave
Copy link

Home Assistant release with the issue:
0.81.0

Last working Home Assistant release (if known):
0.80.3

Operating environment (Hass.io/Docker/Windows/etc.):
Hass.io

Component/platform:
raspberry

Description of problem:
After upgrading to 0.81.0 my lovelace ui shows up with red areas in my main view vertical-stacks. The error shown is "Cannot read property 'states' of undefined", followed by a dump of the config, which is not copy/paste-able... Same config worked in 0.80.3.

For me the media-control and weather-forecast types are affected. Outside of horizontal or vertical stacks everythings works fine.

Problem-relevant ui-lovalace.yaml entries:
examples:

  - type: vertical-stack
    id: WohnzimmerSicht
    cards:
      - type: entities
        title: Wohnzimmer
        show_header_toggle: true
        entities:
          - sensor.co2ppm
          - sensor.wozitemp
          - sensor.wozifeucht
          - switch.fernsehgruppe
          - input_select.tvscene
          - switch.wohnzimmertv
          - switch.wohnzimmer_ecke
          - switch.wohnzimmer_sofa
          - switch.esszimmer
      - type: media-control
        entity: media_player.openelec
      - type: media-control
        entity: media_player.wohnzimmer
      - type: media-control
        entity: media_player.sony_bravia_tv
      - type: media-control
        entity: media_player.bespin
      - type: media-control
        entity: media_player.playstation_4

and

  - type: vertical-stack
    id: WetterSicht
    cards:
      - type: entities
        title: Wetter ASU19
        entities:
          - sensor.temp_feucht_temperature
          - sensor.temp_feucht_humidity
          - sensor.barometerdruck
          - sensor.gardenierung
          - sensor.abinsbeet
          - sensor.feinstaub_pm10
          - sensor.feinstaub_pm25
          - sun.sun
      - type: weather-forecast
        entity: weather.wetter_hude
      - type: picture-entity
        title: Bewölkung
        entity: camera.bewolkung
        camera_image: camera.bewolkung
        show_info: true
        tap_action: dialog
      - type: picture-entity
        title: Regen
        entity: camera.regen
        camera_image: camera.regen
        show_info: true
        tap_action: dialog
@paulvt
Copy link

paulvt commented Oct 27, 2018

Ah, it's the vertical stack that breaks it, thanks for pointing that out!
Same issue occurs in combination with a sensor card too.

@cocomaddox
Copy link

The upgrade has broken most of my cards. Have spent hours trying to isolate the issue with no real success so have restored a backup and will wait for 0.81.1. Hopefully whatever happened to break this will be resolved then.

@hudecitydave
Copy link
Author

Additionally my camera items within a horizontal-stack do not open the "full-image-sizeoverlay" on click. I think something essential is broken in lovelace with the actual update.

@ronytomen
Copy link
Contributor

Can can confirm having the same issue as @hudecitydave with Camera cards but in a vertical stack. I too rolled back to 0.80.3 because of this issue and 2 others.

@fillwe
Copy link

fillwe commented Oct 27, 2018

Same issue here but with horizontal stack and sensor cards since updating!

@vandalon
Copy link

Same issue here. but in some cases vertical stack works (home page) in other it just don't work and yet another i get the above error. this is only with media-control items. when removing media-control items the error disappears but stacking does not work anymore.

Weird thing is that stacking is working on my default / home tab.

@vandalon
Copy link

So it seems that with cards in some kind of order it does work ( i had the climate card as last card in my first vertical stack and that worked. removing the climate card broke vertical stacking completely).

@vandalon
Copy link

vandalon commented Oct 27, 2018

also column_width: calc(100% / 3) seems to be ignored. when only showing 3 items it's ok. But when a fourth item comes up I get 4 items on 1 line instead of a new line.

@ulnic
Copy link

ulnic commented Oct 27, 2018

Having the same error when using vertical stack combined with condition cards.

@ghost
Copy link

ghost commented Oct 28, 2018

This issue was moved by fabaff to home-assistant/home-assistant-polymer#1904.

@ghost ghost closed this as completed Oct 28, 2018
@home-assistant home-assistant locked and limited conversation to collaborators Feb 5, 2019
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants