codingcyclist / ha_strava

Pipe your Activity Data from Strava directly into Home Assistant
MIT License
76 stars 29 forks source link

Integration doesn't show up in Home Assistant #32

Open Fleshi1981 opened 3 years ago

Fleshi1981 commented 3 years ago

Wow, that's super weird. Removed and readded the repository and it showed up under integrations immediately (I did this before opening the issue). Added clientid/secret and sensors are there and working. Computers are weird, will close this one out.

I have exact the same issue. I also did the same "steps" you did, only unfortunately for me the Strava integration doesn't show up.

_Originally posted by @Fleshi1981 in https://github.com/codingcyclist/ha_strava/issues/21#issuecomment-860178978_

sbik38 commented 3 years ago

Same issue on my side. I added your Repository and HACS Integration properly, but then impossible to add Strava Integration ( in Configuration/Integration).
As I already have that integration present, it shows now : "Not Loaded". (1st screenshot here below) If I remove the integration, to try to add-it again, then impossible to see when I search for it (2nd screenshot here below)

Note : I tried to remove HACS Integration and Repository + add them again, but same result Any idea ? Thanks

image

image

robotjoosen commented 3 years ago

@sbik38 @Fleshi1981 there is a PR for this issue: https://github.com/codingcyclist/ha_strava/pull/31/commits/62d0fd1ca03909b12eacb6b340e3429f16d18fb7

Until it is merged you can add the version manually. To have the effect to take place i had to restart the docker container instead of running a restart from the UI. Not sure how it is done with other setups.

sbik38 commented 3 years ago

On my custom_components folder, I can find the ha_strava folder, but into that folder, there is no manifest.json file for example. Ti install ha_strava manually, I could copy the code from Github dircetly in ha_strava folder, but where should I copy the file here below then ? (in "custom_components" or in "custom_components/ha_strava" folder ? image

robotjoosen commented 3 years ago

This is what my /config/custom_components/ha_strava folder looks like.

__init__.py
__pycache__
camera.py
config_flow.py
const.py
manifest.json
sensor.py
strava_img_urls.pickle
translations

And this is the content of my manifest.json. The version property is added manually.

{
  "domain": "ha_strava",
  "name": "Strava Home Assistant",
  "config_flow": true,
  "documentation": "https://github.com/codingcyclist/ha_strava",
  "requirements": ["aiohttp==3.6.1", "voluptuous==0.11.7"],
  "dependencies": [],
  "version": "0.1.1",
  "codeowners": ["@codingcyclist"]
}
sbik38 commented 3 years ago

I have the same as yours but still not working and HA_Strava still not visible when I add it in Integration

agujensen commented 3 years ago

Same problem, any solution?

walterb65 commented 2 years ago

Same here.

robotjoosen commented 2 years ago

Have you tried uninstalling it and reinstall it with the "quick fix". I'm not sure what I did, but it was a combination of removing updating and reinstall.

walterb65 commented 2 years ago

I have uninstalled and installed again a couple of times, but still not visible.

alesson25 commented 2 years ago

Same problem, any solution?

walterb65 commented 2 years ago

I got it working by adding Version Info to Manifest.json.

Original: { "domain": "ha_strava", "name": "Strava Home Assistant", "config_flow": true, "documentation": "https://github.com/codingcyclist/ha_strava", "requirements": ["aiohttp==3.6.1", "voluptuous==0.11.7"], "dependencies": [], "codeowners": ["@codingcyclist"] }

Updated: { "domain": "ha_strava", "name": "Strava Home Assistant", "config_flow": true, "documentation": "https://github.com/codingcyclist/ha_strava", "requirements": ["aiohttp==3.6.1", "voluptuous==0.11.7"], "dependencies": [], "version": "0.1.2",
"codeowners": ["@codingcyclist"] }

regisleclerc commented 2 years ago

I tried your workaround @walterb65, still doesn't work for me ...

joelez83 commented 2 years ago

I got it working by adding Version Info to Manifest.json.

Original: { "domain": "ha_strava", "name": "Strava Home Assistant", "config_flow": true, "documentation": "https://github.com/codingcyclist/ha_strava", "requirements": ["aiohttp==3.6.1", "voluptuous==0.11.7"], "dependencies": [], "codeowners": ["@codingcyclist"] }

Updated: { "domain": "ha_strava", "name": "Strava Home Assistant", "config_flow": true, "documentation": "https://github.com/codingcyclist/ha_strava", "requirements": ["aiohttp==3.6.1", "voluptuous==0.11.7"], "dependencies": [], "version": "0.1.2", "codeowners": ["@codingcyclist"] }

I got it working too!!! Thanks!

moseisleydk commented 2 years ago

No luck here with the WA, but this error disappered:

2021-11-06T17:08:21.656913535Z 2021-11-06 18:08:21 ERROR (SyncWorker_0) [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

moseisleydk commented 2 years ago

Well, suddenly it appeared... again, no clue why....

jszust commented 2 years ago

I'm adding on, I absolutely can't get this to work. I've tried the manifest.json update but that did not fix things. Even though I install through HACS and the custom repository, the files don't show up in the custom_components folder, and the integration does not show up.

moseisleydk commented 2 years ago

Hi @jszust - If they dont show up in the custom_components folder, something else must be wrong, that should happend.

CumpsD commented 2 years ago

Getting the same error

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
jjmateof commented 2 years ago

Same error here...