I am trying to modify an existing custom plugin for Strava to download more information rather than the distance I have run this year. At the moment, Lovelace and the History GUI will only display the year to date distance (State) whereas there are attributes with more information.
What I cannot work out is how to access the attributes returned. Or I am returning the wrong information if I want access to this data?
The Lovelace YAML I have tried appears below. The commented lines don’t work. Only sensor.strava_11527827 is working for me. Thanks
- type: entities title: Strava entities: - sensor.strava_11527827 #- sensor.strava_11527827.state.attributes["ytd_ride_distance"] #- sensor.strava_11527827.attributes["ytd_ride_distance"] #- sensor.strava_11527827.ytd_ride_distance