snicker / zwift_hass

Zwift Sensor Integration for HomeAssistant
52 stars 13 forks source link

Add Run Level sensor and tidy up white space #6

Closed badguy99 closed 4 years ago

badguy99 commented 4 years ago

Adding a sensor that provides Zwift running level. I've tested this on my Home Assistant instance, running HA 0.109.2, and it is reporting my run level correctly there.

badguy99 commented 4 years ago

This could be extended, as the code currently does - runAchievementLevel / 100 gives the current level. It could be extended to include runAchievementLevel % 100 which would give the percentage through the current level for running. And similar things could be done with achievementLevel for cycling.

badguy99 commented 4 years ago

I've added the cycle / run level progress sensors that I mentioned previously, as I wanted to use them for bar graphs showing progress through the current level.

CaptureProgress