codingcyclist / ha_strava

Pipe your Activity Data from Strava directly into Home Assistant

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add date timestamp attribute to sensors

arturogutierrez opened this issue · comments

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!

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.