Skip to content

Transition effects not working with weather-forecast card #124

Open
@fuchsg

Description

@fuchsg

I'm not sure if this a generic incompatibility with this card, but I'm trying here. I have the following state-switch definition between an auto-entities card and the weather-forecast card:

type: custom:state-switch
entity: input_boolean.10_sekunden_timer
states:
  'on':
    type: weather-forecast
    entity: weather.forecast_home
    name: Wetter Wolfsgraben
    forecast_type: daily
    show_current: true
    show_forecast: true
    card_mod:
      style: |
        div.name {
          line-height: 1.2
        }
  'off':
    type: custom:auto-entities
    card:
      type: entities
      title: Raumklima
      card_mod:
        style: |
          :host {
            font-size: 1.5em;
          }
    filter:
      include:
        - entity_id: sensor.iot_shellyplusht_*_temperature
          options:
            type: custom:template-entity-row
            state: >-
              {% set nbsp = '  ' %}
              {% set humidity = states("this.entity_id".split("_temperature")[0]+"_humidity") %}
              {% set temperature = states("this.entity_id") %}
              {{ humidity + '% ' + nbsp + temperature + '°C' }}
            color: |-
              {% if states("this.entity_id") | float > 20 %}
                red
              {% else %}
                blue
              {% endif %}
      exclude: []

This works well and as expected. However, when I add transition: slide-left or any other transition effect, the weather-forecast card is empty when it slides over. The auto-entities card is fine, though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions