Skip to content

Commit

Permalink
Update vehicle.ex
Browse files Browse the repository at this point in the history
Added climate overheat protection status.
  • Loading branch information
cwanja committed Aug 16, 2023
1 parent ab61990 commit f63e6a8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/teslamate/vehicles/vehicle.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1160,7 +1160,9 @@ defmodule TeslaMate.Vehicles.Vehicle do

climate = %Climate{
outside_temp: position.outside_temp,
inside_temp: position.inside_temp
inside_temp: position.inside_temp,
cabin_overheat_protection: position.cabin_overheat_protection,
cabin_overheat_protection_actively_cooling: position.cabin_overheat_protection_actively_cooling
}

vehicle_state = %VehicleState{
Expand Down Expand Up @@ -1261,6 +1263,8 @@ defmodule TeslaMate.Vehicles.Vehicle do
passenger_temp_setting: vehicle.climate_state.passenger_temp_setting,
is_rear_defroster_on: vehicle.climate_state.is_rear_defroster_on,
is_front_defroster_on: vehicle.climate_state.is_front_defroster_on,
cabin_overheat_protection: vehicle.climate_state.cabin_overheat_protection,
cabin_overheat_protection_actively_cooling: vehicle.climate_state.cabin_overheat_protection_actively_cooling
battery_heater_on: vehicle.charge_state.battery_heater_on,
battery_heater: vehicle.climate_state.battery_heater,
battery_heater_no_power: vehicle.climate_state.battery_heater_no_power,
Expand Down

0 comments on commit f63e6a8

Please sign in to comment.