Not updating after a run activity
badguy99 opened this issue · 3 comments
The Zwift sensors are not updating after I complete a run activity.
e.g. in Home Assistant, the sensor.zwift_online_<my_user_number> currently has the following attributes:
runAchievementLevel: 1625
totalRunDistance: 655127
totalRunTimeInMinutes: 3817
totalRunExperiencePoints: 49507
totalRunCalories: 46108
Whereas, if I log in with the underlying zwift-client:
In [4]: client = Client(username, password)
In [5]: profile = client.get_profile()
In [6]: profile.profile
Out[6]:
<snip>
'runAchievementLevel': 1632,
'totalRunDistance': 660196,
'totalRunTimeInMinutes': 3847,
'totalRunExperiencePoints': 49937,
'totalRunCalories': 46561,
I'll try and take a look at this in the next couple of days, but wanted to note it here, in case anyone else runs in to it, and so I don't forget.
This also affects rides, it isn't restricted to runs, so at least I don't need to run a lot now.
It looks like the periodic update just stops. The line below is the last message in the logs. I did a ride later that day, which wasn't picked up. I'm not sure how all the update code hangs together though.
2021-04-07 07:59:09 DEBUG (SyncWorker_1) [custom_components.zwift.sensor] dispatching zwift data update for player <my zwift id>
The updates seem to be happening ok before that, but timing is a bit variable:
2021-04-07 07:53:19 DEBUG (SyncWorker_2) [custom_components.zwift.sensor] dispatching zwift data update for player <my zwift id>
2021-04-07 07:53:47 DEBUG (SyncWorker_0) [custom_components.zwift.sensor] dispatching zwift data update for player <my zwift id>
2021-04-07 07:54:59 DEBUG (SyncWorker_21) [custom_components.zwift.sensor] dispatching zwift data update for player <my zwift id>
2021-04-07 07:55:33 DEBUG (SyncWorker_28) [custom_components.zwift.sensor] dispatching zwift data update for player <my zwift id>
2021-04-07 07:56:26 DEBUG (SyncWorker_32) [custom_components.zwift.sensor] dispatching zwift data update for player <my zwift id>
2021-04-07 07:57:10 DEBUG (SyncWorker_5) [custom_components.zwift.sensor] dispatching zwift data update for player <my zwift id>
2021-04-07 07:59:09 DEBUG (SyncWorker_1) [custom_components.zwift.sensor] dispatching zwift data update for player <my zwift id>
There don't seem to be any errors in the log around this.
No, it's fine now, I'll close this - the progress bar is going up, so I can see how much I still have to do :)