I asked the dev to add < > back and forward buttons to the dates to make navigation easier instead of always clicking on the calendar. Good to see he's open to suggestions.
@kahn-hubitat - Is attribute state being used any longer? It looks like it’s not being updated and is inconsistent with currentVehicleState. I perused the driver code, and can’t find it being used. Should it be removed from attributes?
Both come from Tesla, and they mean different things. status indicates the sleep/wake state, whereas state indicates whether the online/offline state (I.E. the vehicle has an active connection to Tesla).
The vehicle going offline can happen. TeslaFi actually has a warning that it issues when it happens, which went off for one of our cars every few weeks (for several years). In the last few months of using TeslaFi the warnings stopped, so I suspect (hope) that the issue was addressed by a firmware update. However, after adopting Tessie I turned off all other polling sources, including TeslaFi, so I can't really say for sure.
however the way the code works none of the data will be processed if it is not online.. not sure how to actually test that case (ie force offline) to see if the data can even be processed. so for now if it is not online nothing comes back.. and you just get an error that no data was returned,...
i think if it is not online the data is not valid anyway.. for now i will just return a special case with only state:offline if it is not online and process that..
no use in trying to process bogus old data in any case...
YMMV, but I would find it useful for the same purpose that TeslaFi did, which is to issue a warning that something is potentially wrong with the vehicle.
ya i am not saying get rid of it.. i am trying to change code to sense it.. mark offline in state but ignore the rest of the data if any as it will be bogus or suspect if offline anyway..
and this i can test easily by reversing the logic in the app and returning offline to make sure it processes correctly..
the alternative hard method may be to wrap the mirror in farday fabric.. but from what i found that is very difficult as even the slightest hole can let signal in.
ok version 1.97 in git hub.. on rare occasion car is offline. should sense it and report in the state attribute..