dbweb-ch / ioBroker.tesla-motors

ioBroker Adapter for Tesla Motors Cars
MIT License
11 stars 9 forks source link

undefined is not a valid state value #70

Closed xengosam closed 3 years ago

xengosam commented 3 years ago

Hi,

after updating I get following messages that are spamming my log ..

tesla-motors.0 | 2021-05-07 16:05:27.188 | info | (26991) undefined is not a valid state value for tesla-motors.0.vehicle.homelink_device_count

tesla-motors.0 | 2021-05-07 16:05:27.188 | info | (26991) undefined is not a valid state value for tesla-motors.0.vehicle.homelink_nearby

For your information, I do not have Homelink on my Tesla Model 3.

Thanks , xengosam

dbweb-ch commented 3 years ago

Thanks for the report. It seems that homelink-states do not exist when the car has no autopilot. I've made a hotfix for this and pushed it to the latest version on github, if you want you can update from there.

xengosam commented 3 years ago

Thanks for the fix! Everything works like expected.