codingcyclist / ha_strava

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

Add date timestamp attribute to sensors #12

Open arturogutierrez opened 3 years ago

arturogutierrez commented 3 years ago

Hi there!

First, thanks for this amazing integration, it works flawlessly! Thanks for spend time here :)

Said that, I'm trying to make some automation when I come home after running or biking but, in order to detect if I'm coming from doing some exercise I'd like to know how much time has passed since the activity 0 finished. I'd just need a timestamp to be able to make some simple date maths. I've seen you already have it but you are just using it as a formatted title so, would be possible to add a new attribute with the raw timestamp?

Thanks in advance!

codingcyclist commented 3 years ago

hi @arturogutierrez adding the bare time stamp as a sensor is a good idea! I'm pretty busy at work these days, but I hope to get to that over the next couple of weeks.