TA2k / ioBroker.vw-connect

ioBroker Adapter for VW We connect and Skoda connect
MIT License
90 stars 22 forks source link

FIX: fuelStatus and OilLevel #257

Closed martijnpoppen closed 1 year ago

martijnpoppen commented 1 year ago

Both values were overwritten by other keys. This prevents that and reports the proper data in the iobroker state

TA2k commented 1 year ago

I tried this with if (data[subkey]) { data[key + "_" + subkey] = res.data[key][subkey].value || {};

Because also solution could potential overwritten

martijnpoppen commented 1 year ago

Tried that with Golf 8. (VW is also changing their API already ;) )

I see that i didn't pick up the latest data. :/

Works now :) Will close this PR.