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

Transition effects not working with weather-forecast card #124

Open
fuchsg opened this issue Nov 6, 2024 · 0 comments
Open

Transition effects not working with weather-forecast card #124

fuchsg opened this issue Nov 6, 2024 · 0 comments

Comments

@fuchsg
Copy link

fuchsg commented Nov 6, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant