Dielee / volvo2mqtt

Home Assistant addon for connecting AAOS Volvos
MIT License
127 stars 25 forks source link

Add temperature sensor? #156

Closed SanderH030 closed 5 months ago

SanderH030 commented 5 months ago

A couple of weeks ago, Volvo implemented an update in the app. After this update, the temperature is also visible in the app. I assume that this temperature sensor originates from the car itself. The sensor is also capable of deciding whether to heat or cool based on the temperature. Will this sensor be made available over MQTT as well? I've created some automations for my car, which are currently all based on the outside temperature at my home. Having access to the car's own temperature would be a significant enhancement.

Thank you in advance :)

Schermafbeelding 2024-01-08 om 23 00 21

PoLoMoTo commented 5 months ago

I don't think this is actually a sensor, at least not on my 2023 V60 T8. It is currently parked in my garage and says it is 24F. I also happen to have a temperature sensor in my garage that is currently reading 48F, albeit it is mounted a little bit higher than the top of the car so it could be colder lower buuuuuut 24 degrees? Idk. Even still, it isn't even that cold outside, I happen to also have a temperature sensor outside that is currently reporting 29F and the last time the car was outside a few hours ago it most certainly would have been even warmer. My only thought is that they are grabbing that temperature from a weather service based on the cars location, at least for my car right now.

Dielee commented 5 months ago

They removed the API endpoint for the outside temperature in the last change. So there is no way to get this information, sorry!

SanderH030 commented 5 months ago

Thanks for the reply guys. I think, I made it happen for myself. I installed the OpenWeatherMap as a home assistant integration. With this integration, you can get a temperature based on a specific location (with Longitude and Latitude). Secondly I created an automation, that sends the coordinates where the car is parked when the engine state changes to 'off' for 1 minute.

For me, this solves the issue and I have created the temperature sensor I was looking for. Thanks for the inspiration :)!