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

sensor.strava_0_0 state / attributes #13

Open
Proxx opened this issue Nov 3, 2020 · 2 comments
Open

sensor.strava_0_0 state / attributes #13

Proxx opened this issue Nov 3, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@Proxx
Copy link

Proxx commented Nov 3, 2020

First of all.

I really like this integration. Great work

This is not an issue more a design question.
My personal option is to have one sensor per activity. fill the state with eg. distance or name and use the attributes for the details.
this way you have less sensors and all info combined per sensor.

@codingcyclist
Copy link
Owner

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?

@codingcyclist
Copy link
Owner

@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.

@codingcyclist codingcyclist added the enhancement New feature or request label Jan 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants