Charging

→ GetChargeState

Declaration

hmkit.autoapi.commands.get_charge_state.GetChargeState()

Discussion

Command to request the charge state. The car will respond with the Charge State command.

← ChargeState

Discussion

Command sent when a Get Charge State command is received by the car or when the car is plugged in, disconnected, starts or stops charging, or when the charge limit is changed.

get_estimated_range

Declaration

get_estimated_range()

Discussion

Get the estimated range in km.

get_battery_level

Declaration

get_battery_level()

Discussion

Get the battery level percentage.

get_battery_current_ac

Declaration

get_battery_current_ac()

Discussion

Get the battery current in AC.

get_battery_current_dc

Declaration

get_battery_current_dc()

Discussion

Get the battery current in DC.

get_charger_voltage_ac

Declaration

get_charger_voltage_ac()

Discussion

Get the Charger voltage in AC.

get_charger_voltage_dc

Declaration

get_charger_voltage_dc()

Discussion

Get the Charger voltage in DC.

get_charge_limit

Declaration

get_charge_limit()

Discussion

Get the Charge limit percentage.

get_time_to_complete_charge

Declaration

get_time_to_complete_charge()

Discussion

Get the time to complete the charge in minutes.

get_charging_rate

Declaration

get_charging_rate()

Discussion

Get the charging rate in kW, when charging.

get_charge_port_state

Declaration

get_charge_port_state()

Discussion

Get the charge port state.

get_charge_mode

Declaration

get_charge_mode()

Discussion

Get the charge mode.

get_maxcharging_current

Declaration

get_maxcharging_current()

Discussion

Get the maximum charging current.

get_plug_type

Declaration

get_plug_type()

Discussion

Get the plug type.

get_charging_window_chosen

Declaration

get_charging_window_chosen()

Discussion

Get indication on whether charging window is chosen.

get_departure_times

Declaration

get_departure_times()

Discussion

Get the departure times.

get_reduction_of_charging_currenttimes

Declaration

get_reduction_of_charging_currenttimes()

Discussion

Get the reduction of charging current times.

get_battery_temperature

Declaration

get_battery_temperature()

Discussion

Get the battery temperature in Celsius.

get_timers

Declaration

get_timers()

Discussion

Get the charging timers.

get_pluggedin

Declaration

get_pluggedin()

Discussion

Get the plugged in state.

get_active_state

Declaration

get_active_state()

Discussion

Get the charging active state.

get_timer

Declaration

get_timer(ChargingTimer.Type)

Parameters

type

The charge timer type. Enum hmkit.autoapi.properties.value.charging.charge_timer.TimerType

Discussion

Get the charge timer for the given type.

→ SetChargeMode

Declaration

hmkit.autoapi.commands.set_charge_mode.SetChargeMode(ChargeMode)

Parameters

ChargeMode

The charge mode. Enum hmkit.autoapi.properties.value.charging.charge_mode.ChargeMode. ie.ChargeMode.INDUCTIVE

Discussion

Set the charge mode of the car.

→ SetChargeTimer

Declaration

hmkit.autoapi.commands.set_charging_timers.SetChargingTimers(None, chargingtimer)

Parameters

ChargingTimer

hmkit.autoapi.properties.value.charging.ChargingTimer() ie ChargingTimer(None; TimerType.PREFERRED_END_TIME; enddatetime)

Discussion

Set the charge timer of the car. The command can include one of the different timer types or all.

→ StartStopCharging

Declaration

hmkit.autoapi.commands.start_stop_charging.StartStopCharging(bool)

Parameters

bool

True/False

Discussion

Start or stop charging, which can only be controlled when the car is plugged in. The result is sent through the evented Charge State command.

→ SetChargeLimit

Declaration

hmkit.autoapi.commands.set_charge_limit.SetChargeLimit(float)

Parameters

float

The charge limit. ie. 0.6

Discussion

Set the charge limit, to which point the car will charge itself. The result is sent through the evented Charge State command.

→ OpenCloseChargePort

Declaration

hmkit.autoapi.commands.open_close_charge_port.OpenCloseChargePort(chargePortState)

Parameters

chargePortState

The charge port state. Enum hmkit.autoapi.properties.value.charging.charge_port_state.ChargePortState

Discussion

Open or close the charge port of the car. This is possible even if the car is locked.

→ SetReductionOfChargingCurrentTimes

Declaration

hmkit.autoapi.commands.setreduction_chargingcurrent_times.SetReductionChargingCurrentTimes(None, reductiontimes)

Parameters

reductionTimes

The charging current times reductions. hmkit.autoapi.properties.value.charging.reduction_time.ReductionTime

Discussion

Set Reduction of Charging-current Times.