Discontinued, if you search for a functional script look here https://github.com/PimDoos/kia_connect
A plugin which send all your myKIA data to your MQTT.
Just enter the mqtt data in the script.
mqtt_host = "<IP>"
mqtt_port = 1883
mqtt_username = "<USER>"
mqtt_password = "<PASSWORD>"
Also, you have to login to the service and extract the SessionID and enter into the script.
cookies = {
'ASP.NET_SessionId': '<SESSIONID>',
'NL_MyKiaLogin': '_LoginGuid=<EMAIL>',
}
Everything done? Greate your data should now appear in the MQTT.
#Charge Level
- platform: mqtt
name: "Battery_KIA"
state_topic: "mashina/status/ev/soc"
#Doors Locked
- platform: mqtt
name: "Doors_KIA"
state_topic: "mashina/status/DoorsLocked"
#Range
- platform: mqtt
name: "Range_KIA"
state_topic: "mashina/status/Range"
#Cable plugged
- platform: mqtt
name: "Plugged_in"
state_topic: "mashina/status/ev/isPlugged"
#Charging
- platform: mqtt
name: "Charging_KIA"
state_topic: "mashina/status/ev/charging"
#Remaining charge time
- platform: mqtt
name: "Charging_remain"
state_topic: "mashina/status/ev/timeUntillCharged"
entities:
- entity: sensor.range_kia
icon: 'mdi:car'
name: Available range
- entity: sensor.doors_kia
icon: 'mdi:car-door-lock'
name: Doors Locked
- entity: sensor.battery_kia
icon: 'mdi:battery'
name: Battery charge percentage
- entity: sensor.charging_kia
icon: 'mdi:battery-charging'
name: Charging status
- entity: sensor.plugged_in
icon: 'mdi:power-plug'
name: Car plugged in
- entity: sensor.charging_remain
icon: 'mdi:timer'
name: Remaining charge time
show_header_toggle: false
title: Kia
type: entities
you can even build a device tracker based on this mqtt message
mashina/status/Geo/location
HowTo: https://www.home-assistant.io/integrations/device_tracker/