Giter VIP home page Giter VIP logo

ha_strava's People

Contributors

codingcyclist avatar craibo avatar jlapenna avatar madmic1314 avatar stefanroelofs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ha_strava's Issues

Sensor has device class None

Receiving warnings from HA on each load.

Logger: homeassistant.components.sensor
Source: components/sensor/__init__.py:597
Integration: Sensor ([documentation](https://www.home-assistant.io/integrations/sensor), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+sensor%22))
First occurred: 2:43:15 PM (2 occurrences)
Last logged: 2:43:23 PM

Sensor sensor.strava_0_0 has device class None, state class measurement and unit None thus indicating it has a numeric value; however, it has the non-numeric value: 2023-03-04 18:43:59 (<class 'datetime.datetime'>); Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.
Sensor sensor.strava_0_2 has device class None, state class measurement and unit min/km thus indicating it has a numeric value; however, it has the non-numeric value: 12:31 (<class 'str'>); Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.

All sensors unavailable

Hi,
I haven't looked in a few weeks, so I'm not sure when this started, but all of my strava entities now show up as unavailable.
I am running version 3.2.16 of your great integration, currently on HASS 2023.4.5, with OS 10.0. When I search the logbook for strava, I see that strava_cam keeps changing to different images, but nothing else.
I've tried removing the integration (and restarting) and reinstalling, and then doing that with a newly generated client secret, and no luck.
Thanks!

Sensors are dead?

I connected my Strava yesterday to my Home Assistant instance. Everything connection wise worked out great.

  1. I can see the sensors
  2. I can add them to a lovelace card there are no connection errors.
    However, it does not appear to update any values of those strava sensor. Not with previous data nor with new one.
    Do I need to "force" update or do anything other than just connect Strava to Homeassistant?

In Strava I also do not see any REST calls/requests within my Strava API APPS Dashboard.

integrations dosnt connect

i get this fault in when i try to connect it

{"message":"Bad Request","errors":[{"resource":"Application","field":"redirect_uri","code":"invalid"}]}

HA 2025.1 functions

Logger: homeassistant.const
Source: helpers/deprecation.py:205
First occurred: 16:42:03 (10 occurrences)
Last logged: 16:42:25

DEVICE_CLASS_DATE was used from ha_strava, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.DATE instead, please create a bug report at https://github.com/craibo/ha_strava/issues
DEVICE_CLASS_POWER was used from ha_strava, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.POWER instead, please create a bug report at https://github.com/craibo/ha_strava/issues
TIME_SECONDS was used from ha_strava, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTime.SECONDS instead, please create a bug report at https://github.com/craibo/ha_strava/issues

Installation issue: HA remotely accessible but can't install

Hi,

I followed instructions on installing the addon but I can't get past the message that my system would not be remotely accessible. As a matter of fact, I am configuring the addon remotely (from work).
Is it neccesary to have Home Assistant Cloud service (from Nabu Casa) or should "normal" remote access be sufficient?
Tried a number of restarts of the HA system but didn't help.

Best regards,

Björn

Authorize error

When opening the site to authorize, this error occurs.

{"message":"Bad Request","errors":[{"resource":"Application","field":"redirect_uri","code":"invalid"}]}

Feature request: Service to update activities

It would be really useful if the integration allowed activity properties to be updated. The main one I'd find useful would be to update the sport_type property, as certain activities synced from 3rd party services come over as "workout", and I'd like to use HA to correctly set the sport type. I'm not averse to helping to develop this (though time-poor!), just opening an issue to start a discussion and see if there's any reason it couldn't be done. Thanks!

README should give direct link to settings page for API key

The README documents how to get your API key:

After you've set up remote access and configured the External URL for your Home Assistant instance, head over to your Strava Profile. Under "Settings", go to "My API Application", follow the steps in the configuration wizard, and eventually obtain your Strava API credentials (ID + secret). We need those credentials during the final installation step.

However, "My API Application" isn't there. You need to navigate to the URL directly:
https://www.strava.com/settings/api

We should probably just put this link here in the docs. I can create a PR to fix up this bit of the README soon.

extract bike data from My Profile

I really like your integration.

Would there be a way to also obtain Strava data from "My profile" such as the kilometers of my different bicycles?

or integrate them into future updates. Thank you

Distance, Duration, Pace now showing -1 values after 2022.6.0

After upgrading to 2022.6.0 here's what I'm seeing in the log:

`Logger: homeassistant.config_entries
Source: custom_components/ha_strava/sensor.py:410
Integration: HA Strava 2.0 (documentation, issues)
First occurred: 12:44:53 PM (1 occurrences)
Last logged: 12:44:53 PM

Error unloading entry Strava for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 478, in async_unload
result = await component.async_unload_entry(hass, self)
File "/usr/src/homeassistant/homeassistant/components/sensor/init.py", line 246, in async_unload_entry
return await component.async_unload_entry(entry)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 174, in async_unload_entry
await platform.async_reset()
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 633, in async_reset
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 832, in async_remove
await self.async_will_remove_from_hass()
File "/config/custom_components/ha_strava/sensor.py", line 410, in async_will_remove_from_hass
super().async_will_remove_from_hass(self)
TypeError: async_will_remove_from_hass() takes 1 positional argument but 2 were given`

Metric or Imperial option outside of HA

In the UK we use Celsius and Miles instead of Km's. Apart from changing HA to use the US unit system and changing all my temperatures to Fahrenheit , it would be nice if we could over-ride the metric system and have miles instead of km's. Not sure how easy this would be to implement?

I have been copying over the sensors to get miles but then every update breaks this and I need to add my hack again.

Refactor Sensors based on Activity Type

Currently the sensors are in a loop and the activity type is not considered. Now that the sensor stats are fixed, this results in the historical stats being mixed between all activites that are recorded via Strava.

Suggested solution:

  1. Create 2 sensors per activity type
    eg. run_0, run_1, ride_0, ride_1, swim_0, swim_1, etc

  2. sensors to include

  • walk
  • run
  • ride
  • swim
  • mountain bike
  • workout
  • other

Pace units of measurement are now handled in HA need to set value correctly

Logger: homeassistant.components.sensor
Source: components/sensor/init.py:605
Integration: Sensor (documentation, issues)
First occurred: 15:57:41 (15 occurrences)
Last logged: 15:59:07

Sensor sensor.strava_0_2 has device class None, state class measurement and unit min/km thus indicating it has a numeric value; however, it has the non-numeric value: 6:02 (<class 'str'>); Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.
Sensor sensor.strava_1_2 has device class None, state class measurement and unit min/km thus indicating it has a numeric value; however, it has the non-numeric value: 6:38 (<class 'str'>); Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.
Sensor sensor.strava_2_2 has device class None, state class measurement and unit min/km thus indicating it has a numeric value; however, it has the non-numeric value: 6:04 (<class 'str'>); Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.
Sensor sensor.strava_3_2 has device class None, state class measurement and unit min/km thus indicating it has a numeric value; however, it has the non-numeric value: 13:31 (<class 'str'>); Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.
Sensor sensor.strava_4_2 has device class None, state class measurement and unit min/km thus indicating it has a numeric value; however, it has the non-numeric value: 6:26 (<class 'str'>); Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.

Error doing job

Logger: homeassistant
Source: helpers/entity.py:526
First occurred: 07:54:34 (11 occurrences)
Last logged: 07:57:04

Error doing job: Future exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/ha_strava/camera.py", line 65, in image_update_listener
    camera.rotate_img()
  File "/config/custom_components/ha_strava/camera.py", line 228, in rotate_img
    self.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 526, in async_write_ha_state
    raise RuntimeError(f"Attribute hass is None for {self}")
RuntimeError: Attribute hass is None for <Entity strava_cam: https://dgtzuqphqg23d.cloudfront.net/dTrG59sGN9rEEHj1Qmv1BkRdyHREykXdk5SHjjHUCbU-512x384.jpg>

This error floods the Ha logs. Can I do something about it?
Thank you for your hard work!

Undefined variable

`This error originated from a custom integration.

Logger: homeassistant.loader
Source: custom_components/ha_strava/sensor.py:93
Integration: HA Strava 2.0 (documentation, issues)
First occurred: 00:03:30 (1 occurrences)
Last logged: 00:03:30

Unexpected exception importing platform custom_components.ha_strava.sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 681, in get_platform
cache[full_name] = self._import_platform(platform_name)
File "/usr/src/homeassistant/homeassistant/loader.py", line 698, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
File "/usr/local/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/config/custom_components/ha_strava/sensor.py", line 88, in
class StravaSummaryStatsSensor(SensorEntity):
File "/config/custom_components/ha_strava/sensor.py", line 93, in StravaSummaryStatsSensor
_attr_state_class = SensorStateClass.TOTAL
NameError: name 'SensorStateClass' is not defined
`

Future exception was never retrieved

Hello Tim,

Great update yesterday! There are massive features available now! Thank you for your hard time.

I'm having the following error in the version 3.0.10:

Logger: homeassistant
Source: custom_components/ha_strava/sensor.py:450
Integration: HA Strava 2.0 (documentation, issues)
First occurred: 18:12:09 (7 occurrences)
Last logged: 18:12:12

Error doing job: Future exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/ha_strava/sensor.py", line 455, in strava_data_update_event_handler
    self.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 545, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 579, in _async_write_ha_state
    attr = self.capability_attributes
  File "/config/custom_components/ha_strava/sensor.py", line 412, in capability_attributes
    metric = self.get_metric()
  File "/config/custom_components/ha_strava/sensor.py", line 450, in get_metric
    return sensor_metrics[self._sensor_index]
IndexError: list index out of range

Is there something that I can do?

would elevation gain YTD be possible

Hi,

I like the YTD statistics as YTD ride distance.
As I ride a lot in the mountins a summary of the YTD elevation gain would be nice.
Is this possible?

Requires a public URL

I have my home assistant through nginx proxy, but it is a public domain

I receive the following message when I add the integration to configure it

Your Home Assistant Instance does not seem to have a public URL. The Strava Home Assistant integration requires a public URL

Strava Summary sensors all unavailable since 2023.8.0

Since the update to 2023.8.0 this morning, I noticed that all my summary sensors are unavailable. All other sensors are working ok. I tried reloading and restarting HA, but there is no change.

image

Here are the logs

`Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 980, in _wrap_create_connection
return await self._loop.create_connection(*args, **kwargs) # type: ignore[return-value] # noqa
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/asyncio/base_events.py", line 1112, in create_connection
transport, protocol = await self._create_connection_transport(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/asyncio/base_events.py", line 1145, in _create_connection_transport
await waiter
File "/usr/local/lib/python3.11/asyncio/sslproto.py", line 575, in _on_handshake_complete
raise handshake_exc
ConnectionResetError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/config/custom_components/ha_strava/init.py", line 732, in strava_startup_functions
await renew_webhook_subscription(
File "/config/custom_components/ha_strava/init.py", line 581, in renew_webhook_subscription
callback_response = await websession.get(url=config_data[CONF_CALLBACK_URL])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 536, in _request
conn = await self._connector.connect(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 540, in connect
proto = await self._create_connection(req, traces, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 901, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 1209, in _create_direct_connection
raise last_exc
File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 1178, in _create_direct_connection
transp, proto = await self._wrap_create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 988, in _wrap_create_connection
raise client_error(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host xxxxx.ui.nabu.casa:443 ssl:default [None]`

Entity value contains units of measurement, should be an attribute

Hi,

I'd like to use the summary entities for weekly/monthly stats however currently their state includes not only the numeric value but also the unit making the entity state a string that cannot be directly used in e.g. utility meters:

{{ states("sensor.strava_stats_summary_all_run_distance") }}

Result type: string
245.54 km

If I'm not mistaken the correct way to handle this is to move the "km" in this case to an unit_of_measurement attribute.

Thanks!

Add two more sensors

Hi! Awesome work, really congrats! Saved me a bunch of time.

I was wondering: is it possible to add also MTD distance (monthly distance to date) and WTD (same, for week)?

Looking at your code, I didn’t see a way immediately… However, Strava does provide these values on highest level, so I think they should be easily accessible.

This would be a very cool enhancement.

Thanks again!

Strava integration failed to initiate

After the fix with summary data, it worked for a day or 2. Since then then integration fails. Tried deleting the integration and adding the files again, but the integration won't be added anymore.
I can add the client id and secret, it loads and doesn't appear. I tried both the HA-Strava-Main and HA-Strava (which is available in main/custom_components) folders.

There is no logging available.

geocode.xyz - out of credits

All my recent activities were showing as "Unknown Area" so I logged into my geocode.xyz account and found that I am out of credits -

image

Not sure why this is happening as I only use Strava a couple of time a month.

is_metric deprecation in 2023.1

Logger: homeassistant.helpers.frame
Source: helpers/frame.py:77
First occurred: 20:35:25 (5 occurrences)
Last logged: 20:35:26

Detected integration that accesses the `is_metric` property of the unit system. This is deprecated and will stop working in Home Assistant 2023.1. Please adjust to use instance check instead.. Please report issue to the custom integration author for ha_strava using this method at custom_components/ha_strava/sensor.py, line 340: if not self.hass.config.units.is_metric:
Detected integration that accesses the `is_metric` property of the unit system. This is deprecated and will stop working in Home Assistant 2023.1. Please adjust to use instance check instead.. Please report issue to the custom integration author for ha_strava using this method at custom_components/ha_strava/sensor.py, line 355: if not self.hass.config.units.is_metric:
Detected integration that accesses the `is_metric` property of the unit system. This is deprecated and will stop working in Home Assistant 2023.1. Please adjust to use instance check instead.. Please report issue to the custom integration author for ha_strava using this method at custom_components/ha_strava/sensor.py, line 327: if not self.hass.config.units.is_metric:
Detected integration that accesses the `is_metric` property of the unit system. This is deprecated and will stop working in Home Assistant 2023.1. Please adjust to use instance check instead.. Please report issue to the custom integration author for ha_strava using this method at custom_components/ha_strava/sensor.py, line 364: if not self.hass.config.units.is_metric:
Detected integration that accesses the `is_metric` property of the unit system. This is deprecated and will stop working in Home Assistant 2023.1. Please adjust to use instance check instead.. Please report issue to the custom integration author for ha_strava using this method at custom_components/ha_strava/sensor.py, line 174: if not self.hass.config.units.is_metric:

Just a reminder, there are 3 months time for them to be deprecated :D

Calories sensor value showing incorrectly

          one other thing I will mention... whilst playing with some of the new stuff.

I've noticed that the calories on my last activity...so sensor.strava_0_7 and showing wrong on the integration only...they are showing as 166kcal on the integration, but My watch and strava both show it as 599 .....so no idea what is wrong there,all other stats appear correctly. Not the end of the world, but thought you might like to know/see

Having had a quick look back, it seems to be a similar story on all the other captured stats for Calories only...but no idea where it is pulling that stat from as all of my runs are 10K so the count would never be that low...and even on my recent 60K ride they show as only 224... assuming it's the conversion from calories to kcals...at a multiplication factor of 4.2... it's still out by 20%

image
image

Originally posted by @jouster1974 in #79 (comment)

Entities become unavailable after HA restart

I have the integration up and running. When setting up Strava integration, the connection is made and entities get the correct values. However, after every HA restart, all entities show unavailable. When removing the integration and reinstalling/reconfiguring it again it works again until the next HA restart. Anyone else who has experienced this and if so how to resolve? I am running the latest version of HA and the strava integration.

every 30s error in log for Strava image update

Every 30 seconds, I get a HA_strava related error message in the log. Even when I switch off image update in the Strava config.

2023-01-31 23:17:04.535 ERROR (MainThread) [homeassistant] Error doing job: Future exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/ha_strava/camera.py", line 65, in image_update_listener
camera.rotate_img()
File "/config/custom_components/ha_strava/camera.py", line 229, in rotate_img
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 549, in async_write_ha_state
raise RuntimeError(f"Attribute hass is None for {self}")
RuntimeError: Attribute hass is None for <Entity strava_cam: https://dgtzuqphqg23d.cloudfront.net/xxxxxxxxxxxxxxxx.jpg>

Is there something I can do to fix this? And do more people have the same problem? You can open the HA logs and see if this message regularly appears.

Unable to submit configuration of integration "Unknown error occurred"

strava HA

LOG:
This error originated from a custom integration.

Logger: aiohttp.server
Source: custom_components/ha_strava/config_flow.py:199
Integration: HA Strava 2.0 (documentation, issues)
First occurred: 3:34:24 PM (17 occurrences)
Last logged: 3:49:09 PM

Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
resp = await request_handler(request)
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 79, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 136, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 238, in post
return await super().post(request, flow_id)
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 62, in wrapper
result = await method(view, request, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 109, in post
result = await self._flow_mgr.async_configure(flow_id, data)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 277, in async_configure
result = await self._async_handle_step(
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 359, in _async_handle_step
result: FlowResult = await getattr(flow, method)(user_input)
File "/config/custom_components/ha_strava/config_flow.py", line 199, in async_step_init
_entity_registry = await async_get(hass=self.hass)
TypeError: object EntityRegistry can't be used in 'await' expression

All activity types

Hi, great integration! As a person living above lat 64 I would like to track nordic ski as well as weight-training sessions. Is it possible to import those types of activites? Maybe a setting to choose wich activityTypes to get? this referes to the summary-enitity

Photo won't load

Thanks for this working fork :) The only thing that won't work is loading the photo's from Strava. Can you please take a look at that :) My programming skills aren't good enough.

Cannot fully submit options since update 3.1.1

After the latest update I am unable to go further than the 1st submit option. Any settings on the slider reset the settings as per the picture.

image

I tried rolling back and resintalling the add-on but I still get the same issue.

Map and / or photos sensors

Hi,

Firstly, awesome. Was really glad to see this integration taken over, I really like it.

Only thing missing for me is the ability to include a sensor of the media attached to the strava activity. Map and / or photos. Is this in the future plans?

Thanks.

Error adding entities for domain sensor with platform ha_strava

Hi,

I'm getting the following message in my log file (see below), and I was wondering if I was doing something wrong or forgot the configure?

HA 2023.8 supervised version.


Logger: homeassistant.components.sensor
Source: helpers/device_registry.py:191
Integration: Sensor (documentation, issues)
First occurred: 12:39:17 (2 occurrences)
Last logged: 12:39:17

Error adding entities for domain sensor with platform ha_strava
Error while setting up ha_strava platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 510, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 619, in _async_add_entity
device = dev_reg.async_get(self.hass).async_get_or_create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 484, in async_get_or_create
configuration_url = _validate_configuration_url(configuration_url)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 191, in _validate_configuration_url
raise ValueError(f"invalid configuration_url '{value}'")
ValueError: invalid configuration_url ''

Wrong name of activity

Real name
image

integration name

image

ah.... Kcal wrong

image

Home Assistant Core 2022.6.2
Home Assistant Supervisor 2022.05.3
Home Assistant OS 8.1

Question about Strava Developer Program

I got an email from Strava saying:

Apply to Strava’s Developer Program
Here’s a friendly reminder to apply to Strava’s new Developer Program by March 4th, 2024. If you don’t, you’ll lose access to our API and miss out on new program features and benefits.
Apply Now

The linked form is quite involved and requires uploading screenshots of your application.

Does every user of this plugin need to fill out this form or risk losing access to the API?

Request: Add 2 Accounts

Would it be possible to allow 2 Strava accounts to be added so I can show mine and my partners stats?

More than 10 activities

Hi,

Thank you SO much for this custom integration!!!

I have written a sensor to calculate the distance run in a week automatically in HA and setup some input_numbers to show my weekly/ distance goals on a dashboard.

I have been training hard and found I ran over 10 activities in a week however this integration only pulls the latest 10 activities.

Is it possible to get a few more activities pulled in?

Thanks

Installation problem - Home Assistant 2022.8.6

Hi,

I'm getting this error when i want to install ha_strava

This integration does not support configuration via the UI. If you followed this link from the Home Assistant website, make sure you run the latest version of Home Assistant.

Add "commute" sensor

Strave provides a value for the "commute" tag. It would be great to add this to the integration so we are able to filter the activities in HA.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.