ciotlosm / lovelace-thermostat-dark-card

🌡 Thermostat card with a round and black feel to it
MIT License
734 stars 187 forks source link

using cards inside a horizontal stack throws "hass is undefined" error #218

Closed davidmonro closed 6 years ago

davidmonro commented 6 years ago

Running HA 0.81.0 I have the following view (just taken from an example for the gauge card):

  - id: 1  # Automatically created id
    title: Display
    icon: mdi:home-assistant
    cards:
      - id: 3c97759a8f8a40b48fcf0c4c02eb2263  # Automatically created id
        type: horizontal-stack
        cards:
          - type: custom:gauge-card
            title: Temperature
            entity: sensor.temp_main_bed
            min: -20
            max: 35
          - type: custom:gauge-card
            title: Oil
            entity: sensor.temp_spare_bed
            severity:
              red: 50
              green: 0
              amber: 40

But when I go that view I get a red box with the following content:

hass is undefined

{
  "id": "3c97759a8f8a40b48fcf0c4c02eb2263",
  "type": "horizontal-stack",
  "cards": [
    {
      "type": "custom:gauge-card",
      "title": "Temperature",
      "entity": "sensor.temp_main_bed",
      "min": -20,
      "max": 35
    },
    {
      "type": "custom:gauge-card",
      "title": "Oil",
      "entity": "sensor.temp_spare_bed",
      "severity": {
        "red": 50,
        "green": 0,
        "amber": 40
      }
    }
  ]
}

I've tried some of the other custom cards and they seem to have the same issue (bignumber and monster). Not sure if this bug is really for this project or for the HA project.

davidmonro commented 6 years ago

Actually this seems to be a 0.81 problem based on the comments at https://community.home-assistant.io/t/0-81-new-lovelace-cards-lg-soundbars-dyson-fans-elk-m1/75277/43

davidmonro commented 6 years ago

And it is fixed in 0.81.1. Closing the issue.