Code Monkey home page Code Monkey logo

Comments (2)

codingcyclist avatar codingcyclist commented on August 17, 2024

Hi @Proxx ,

I really like the idea of grouping all stats (distance, time, power, etc.) into a single sensor entity. What I wonder, though, is how users would then be able to display these sensor details in their Lovelace UI? I've tried both the entity- and the sensor card, but I could not figure out a way of displaying sensor detail values, instead of the default sensor state value. Do you have an idea for how to do that?

from ha_strava.

codingcyclist avatar codingcyclist commented on August 17, 2024

@Proxx I just did some more research and figured that the HA's template platform (https://www.home-assistant.io/integrations/template/) would be a way to coerce state attributes like distance, time, power, etc. into distinct template sensors which could then be rendered to the UI using entity and/or state cards.

I think templating would make your idea work, but wouldn't you end up with the same number of sensors in the end? I mean you'd need to create a separate template sensor for every state attribute which you'd like to render to the UI, just as if that sensor was already there by default.

Please let me know if I'm missing something here. Otherwise I'll close this issue for now and open a feature request when several people bring up that idea again.

from ha_strava.

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.