craibo/ha_strava

Refactor Sensors based on Activity Type

craibo opened this issue · 0 comments

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