@@ -133,6 +133,25 @@ export class BluelinkCanada extends Bluelink {
133
133
df . dateFormat = 'yyyyMMddHHmmssZ'
134
134
const lastRemoteCheck = df . date ( lastRemoteCheckString )
135
135
136
+ // For whatever reason sometimes the status will not have the evStatus object
137
+ // deal with that with either cached or zero values
138
+ if ( ! status . evStatus ) {
139
+ return {
140
+ lastStatusCheck : Date . now ( ) ,
141
+ lastRemoteStatusCheck : forceUpdate ? Date . now ( ) : lastRemoteCheck . getTime ( ) ,
142
+ isCharging : this . cache ? this . cache . status . isCharging : false ,
143
+ isPluggedIn : this . cache ? this . cache . status . isCharging : false ,
144
+ chargingPower : this . cache ? this . cache . status . chargingPower : 0 ,
145
+ remainingChargeTimeMins : this . cache ? this . cache . status . remainingChargeTimeMins : 0 ,
146
+ range : this . cache ? this . cache . status . range : 0 ,
147
+ soc : this . cache ? this . cache . status . soc : 0 ,
148
+ locked : status . doorLock ,
149
+ climate : status . airCtrlOn ,
150
+ twelveSoc : status . battery . batSoc ,
151
+ odometer : odometer ? odometer : this . cache ? this . cache . status . odometer : 0 ,
152
+ }
153
+ }
154
+
136
155
return {
137
156
lastStatusCheck : Date . now ( ) ,
138
157
lastRemoteStatusCheck : forceUpdate ? Date . now ( ) : lastRemoteCheck . getTime ( ) ,
0 commit comments