Comments (4)
Hi @patfelst
The activity id has been added to the title sensor attributes. You can use a template to create the url for now until I get a chance to add the full url to the attributes
from ha_strava.
thanks, is it possible to make it clickable using something like this?
entities:
- type: custom:template-entity-row
icon: mdi:web
state: "https://www.strava.com/activities/{{ state_attr('sensor.strava_0_0', 'activity_id') }}"
from ha_strava.
Thanks for adding activity_url
attribute. I'm still struggling with how to display it on the front end so it's clickable. Do you have an example pls? I tried this, but it seems you can't template entities with a type of url:
title: Strava
type: entities
entities:
- type: weblink
url: '{{ state_attr('sensor.strava_0_0', 'activity_url') }}'
from ha_strava.
Never mind, the markdown card works
Activity 0 [{{ state_attr('sensor.strava_0_0', 'friendly_name').split(" |")[0] }}]({{ state_attr('sensor.strava_0_0', 'activity_url') }})
Activity 1 [{{ state_attr('sensor.strava_1_0', 'friendly_name').split(" |")[0] }}]({{ state_attr('sensor.strava_1_0', 'activity_url') }})
Activity 2 [{{ state_attr('sensor.strava_2_0', 'friendly_name').split(" |")[0] }}]({{ state_attr('sensor.strava_2_0', 'activity_url') }})
from ha_strava.
Related Issues (20)
- All activity types HOT 3
- YtD & Lifetime stats are wrong HOT 8
- invalid suggested_unit_of_measurement
- issues since upgrading to 2024.3.1 HOT 3
- Can Strava get access through Cloudflare Tunnel with a reliable IP or other authentication method? HOT 3
- Add a second entry for a second account HOT 1
- Expected str HOT 2
- Need to restart HA to get Strava sensors updates HOT 9
- Detected that custom integration 'ha_strava' calls async_create_task from a thread at custom_components HOT 5
- Further issues with HA Strava after 2024.5.2 update (simialr to #153) HOT 2
- Not handling Co-routine correctly
- ha_strava' calls async_create_task from a thread at custom_components/ha_strava/__init__.py, line 824 HOT 1
- Potential issues with Strava integration HOT 2
- HA 2024.6 and latest strava version HOT 2
- "Camera" not working - exception HOT 1
- Camera not working HOT 3
- Setup Error "Config flow could not be loaded: 500 Internal Server Error Server got itself in trouble" HOT 2
- Handle deprecated method for removal in HA 2025.1
- Integration stopped working with HA OS 13.0 - webhook could not be deleted HOT 1
- Weekly snapshot
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ha_strava.