teslamateapi
teslamateapi copied to clipboard
Summary Endpoint For more climate information
json in /api/v1/cars/:CarID/status, the climate_details has "inside_temp" and "outside_temp" information, can you add more information for climate such as driver_temp_setting? thanks
Hi @feelingfrance,
The TeslaMate API exposes in the car status endpoint only the data that comes from the official TeslaMate MQTT topics (see https://docs.teslamate.org/docs/integrations/mqtt/). For climate-related fields, the available values are currently only inside_temp, outside_temp, and is_climate_on.
In TeslaMate, driver_temp_setting is retrieved from the positions table. Because of that, we have two possible approaches:
- Extend the car status endpoint to also read this value from the database (not my preferred option).
- Update TeslaMate itself to publish
driver_temp_settingvia MQTT, and then update the car status endpoint to include it.