Giter Site home page Giter Site logo

Comments (4)

phurth avatar phurth commented on May 28, 2024 1

I modified my NodeRed flow to delete the supported_features attribute and now it is working as expected. Thanks!

from clock-weather-card.

pkissling avatar pkissling commented on May 28, 2024

hi @phurth, can you please elaborate on your following statement:

in this case, the weather entity is set via the HA API

what do you mean by that? can you clarify?

from clock-weather-card.

phurth avatar phurth commented on May 28, 2024

Yes, sorry. I have a NodeRed flow set up that allows me to switch between predefined locations (and the related weather forecast). To do this, I have a weather entity set up in configuration.yaml which gets set via the HA API in NodeRed. The flow simply sets the custom location attributes from the JSON payload of the appropriate NWS entity attributes.

Using this weather entity allows me to set the front end up such that it updates automatically if the location is changed by the flow.

With the above, in version 2.1.3 of the card, the forecast displayed as expected. In subsequent versions, it does not.

Thanks in advance, and let me know if you need for specific details.

from clock-weather-card.

pkissling avatar pkissling commented on May 28, 2024

okay i see, thanks for the explanation.
the weather entity you are emulating exposes supported_features: 6. this indicates, that the weather entity does support the new weather.get_forecast service (https://www.home-assistant.io/integrations/weather/#service-weatherget_forecast). consequently clock-weather-card tries to subscribe to weather updates (which will fail - hence the forecast is not rendered properly).

please try to either

  1. override supported_features:6 with supported_features: 0
  2. omit the attribute entirely

this way, clock-weather-card will read the forecasts from the forecast attribute and will not try to subscribe to the weather service

from clock-weather-card.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.