I use the following integration and it still works: https://github.com/codingcyclist/ha_strava
I’m getting
2021-11-25 16:39:29 ERROR (SyncWorker_3) [homeassistant.loader] The custom integration 'ha_strava' does not have a version key in the manifest file and was blocked from loading. See https://developers.home-assistant.io/blog/2021/01/29/custom-integration-changes#versions for more details
Ok, I fixed this by manually adding a version in the manifest. But now when returning from the Strava URL, the dialog stays open to go to an external website
HA says:
500 Internal Server Error
Server got itself in trouble
Turns out there was a space at the end of my client secret when copying from the Strava site which caused this. Working now
seems the latest HASS update has broken this integration for now
Same here - broke this morning.
I turned on debug logging and found it was failing to import HTTP_OK from /usr/src/homeassistant/homeassistant/const.py
I looked at the code and decided to remove the import and hard code the value :
/config/custom_components/ha_strava # pwd
/config/custom_components/ha_strava
/config/custom_components/ha_strava # grep HTTP_OK *py
__init__.py:HTTP_OK = "200"
__init__.py: status=HTTP_OK, data={"hub.challenge": webhook_subscription_challenge}
__init__.py: return Response(status=HTTP_OK)
__init__.py: return Response(status=HTTP_OK)
config_flow.py:HTTP_OK = "200"
As well as setting the value, you need to remove the import (If the import is at the end of a list, be sure to remove the trailing comma too)
Edit :
This fix is better adopts removal of hass.const.HTTP_* by thoemmi · Pull Request #36 · codingcyclist/ha_strava · GitHub
thanks very much for this…changes to two files were made and now working as expected
great news!
fyi, je bent van regio brugge/oostende neem ik aan? (HA’ers van de buurt, altijd leuk )
Indeed, Varsenare
My Strava stopped working so I deleted it and reinstalled from HACS. I’ve done a restart but now when I try to add it to integrations it is not there. I can see it in custom_components, I have changed the manifest and added the version and restarted but it still does not show up. I’m on Home Assistant 2021.12.1
Any help would be appreciated
same here …
There is a PR that fixes the errors since 2021.12.0.
2 files need to be fixed for it to start working.
Look Here
Watching this as well as I’m running into the same issue of the integration not showing up.
I just tried the adopts removal of hass.const.HTTP_* by thoemmi · Pull Request #36 · codingcyclist/ha_strava · GitHub fix and it doesn’t help. I don’t see strava under available integrations. Did something new break?
Question, is there a way to pull the data which you walked from Strava on the same way we pull running, riding and swimming from Strava?
2022-02-08 03:02:03 WARNING (MainThread) [homeassistant.helpers.entity] Entity camera.strava_cam (<class 'custom_components.ha_strava.camera.UrlCam'>) implements device_state_attributes. Please report it to the custom component author.
Hope they fix this warning too
has development stopped on this integration? I’ve tried all the manual fixes that guys have identified, but I can’t even get my HA to let me add in the integration, as it can’t see it
I’m getting the usual log entry that it’s an untested custom integration, but that’s about it.
have also tried this fork, which gives me the same outcome: https://github.com/madmic1314/ha_strava
if anyone has it working, can they share what they did to make it work?
I just installed the Strava integration via HACS (madmic1314’s fork) last night and have no issue with it. It throws some things in the logs but still works without issue. After installing from HACS did you add the integration from the Integrations panel?
yep, followed it the way I would if I’d copied down any other Integration from a GitHub repo that’s not available via HACS. I’ll try again in case I missed something…