Thank you for sharing your solution.
Unfortunately I’ve got error message when tried to repeat it on my Home Assistant 0.104.3 (in docker). During config check I see following :
Invalid config for [sensor.rest]: [json_attributes_path] is an invalid option for [sensor.rest]. Check: sensor.rest->json_attributes_path.
Do you have any ideas why it could happen? I suppose your config above are working and I just copied it in my strava_sensor.yaml file (within sensors folder when other sensor files are located).
It looks like the code is correct. I am thinking that it has to be related to your HA version. In february 2020, there was a change regarding json/xml in rest sensors. I am working with the updated HA 0.111.4, so it must be that: https://github.com/home-assistant/core/pull/31809
Anyone?
You can try to remove both json_attributes_path and json_attributes, but that will force you to do a rest sensor for each value.
Thank you very much for assistance!
I’ll continue my research and may be update to latest version of HA (despite the fact that it might be painful due to breaking changes)
Many people in this thread have asked for a dedicated Strava Home Assistant Component; one that avoids rate-limit-, authentication-, and other issues with Strava’s API.
As of now, the integration can only pull data about the ten most recent activities on Strava. Down the line, it’d be great to add picture-, summary stats-, and other cool features, but it’s unclear yet when I’ll find the time to do that.
Please reach out if you have feedback and/or would like to contribute.
Thank you very much for writing this - it works great. Just a shame that Strava class everyone in Europe as wanting to use KM’s and not Miles like we do in the UK. Will sort out a template sensor to fix that but it’s nice to get my strava rides back into HA
I’m already working on pulling YTD and all-time summary stats for biking, running, and swimming. Also, I’m adding a camera entity to feature recent activity pictures as a photo-carousel…stay tuned
@codingcyclist good afternoon, I would like a help because I don’t know what to put in the Website field on the website https://www.strava.com/settings/api because I can generate the client id and client secret, but when will I put it in HA gives the following error when opening the page: