Hyundai-Kia-Connect / kia_uvo

A Home Assistant HACS integration that supports Kia Connect(Uvo) and Hyundai Bluelink. The integration supports the EU, Canada and the USA.
MIT License
433 stars 85 forks source link

Heated seats constantly report as "On" even when vehicle is switched off #195

Closed PeteCooney closed 1 year ago

PeteCooney commented 2 years ago

Region and Brand of car United Kingdom / Kia (Sorento)

Describe the bug My vehicle has heated front & rear seats. These are reported as 4 sensors (Front Left Seat Heater etc) via the integration, however all 4 constantly report their status as "On" even though they are not. For example; the vehicle is currently parked with the ignition off and they are still showing as "On" in Home Assistant.

Debug logs if an error occurred N/A

To Reproduce

  1. Enable the integration
  2. Sign in
  3. Navigate to Configuration >> Devices >> {Vehicle Name}
  4. Inspect status of sensor(s)

Expected behavior Sensors should report "Off" when the seat heaters are off and only report "On" when they are switched on.

Screenshots Not really needed, but can provide if required.

Additional context Status is reporting correctly in the official Kia UVO app.

cdnninja commented 2 years ago

Are you able to confirm if this corrects after next scan?

fuatakgun commented 2 years ago

Please also share your Data sensor from Developer Tools.

PeteCooney commented 2 years ago

All still showing as "On" after the most recent update.

Data sensor state attributes as requested:

vehicle_data:
  vehicleLocation:
    coord:
      lat: **.******
      lon: **.******
      alt: 0
      type: 0
    head: 5
    speed:
      value: 0
      unit: 0
    accuracy:
      hdop: 10
      pdop: 10
    time: '20211201161404'
  vehicleStatus:
    airCtrlOn: false
    engine: false
    doorLock: true
    doorOpen:
      frontLeft: 0
      frontRight: 0
      backLeft: 0
      backRight: 0
    trunkOpen: false
    airTemp:
      value: 00H
      unit: 0
      hvacTempType: 1
    defrost: false
    lowFuelLight: false
    acc: false
    hoodOpen: false
    steerWheelHeat: 0
    sideBackWindowHeat: 0
    dte:
      value: 454
      unit: 3
    tirePressureLamp:
      tirePressureLampAll: 0
    seatHeaterVentState:
      frSeatHeatState: 2
      flSeatHeatState: 2
      rlSeatHeatState: 2
      rrSeatHeatState: 2
    battery:
      batSoc: 75
      batState: 0
      sjbDeliveryMode: 1
      batSignalReferenceValue:
        batWarning: 65
      powerAutoCutMode: 2
    lampWireStatus:
      stopLamp:
        stopLampStatus: false
        leftLamp: false
        rightLamp: false
      headLamp:
        headLampStatus: false
        leftLowLamp: false
        rightLowLamp: false
        leftHighLamp: false
        rightHighLamp: false
        leftBifuncLamp: false
        rightBifuncLamp: false
      turnSignalLamp:
        turnSignalLampStatus: false
        leftFrontLamp: false
        rightFrontLamp: false
        leftRearLamp: false
        rightRearLamp: false
    windowOpen:
      frontLeft: 0
      frontRight: 0
      backLeft: 0
      backRight: 0
    smartKeyBatteryWarning: false
    fuelLevel: 100
    washerFluidStatus: false
    breakOilStatus: false
    sleepModeCheck: true
    time: '20211201161406'
    remoteWaitingTimeAlert:
      remoteControlAvailable: 1
      remoteControlWaitingTime: 168
      elapsedTime: '04:04:45'
    systemCutOffAlert: 0
    tailLampStatus: 0
    hazardStatus: 0
  odometer:
    value: 1393
    unit: 1
vehicle_name: SORENTO
friendly_name: Sorento Data
Olivaref commented 2 years ago

Hi, It happens the same to me. My car is a Tucson HVE just bought in Spain. The Bluelink app reports all the seats heaters are off as these actually are, but HA reports all on (Encendido). Here is a screenshot. Captura de pantalla 2021-12-01 182417

cdnninja commented 2 years ago

Are you able to turn them on, force a update and post your data again? The data shows a "2" maybe that means off and a different number means on? Please also try turning the car off while heated seats are on and see if the value changes from whatever "on" is.

cdnninja commented 2 years ago

As well what does the Kia app report?

Olivaref commented 2 years ago

I've done a quick test. The data I sent previously was with the car's ignition off. Now, I started the car, and switched on the driver's seat heater to max power (Three orange leds lighting), and switched on the copilot seat air conditioner/fan to min power (One blue led lighting). In this Tucson, seats can be heated or cooled with three power levels. The first picture shows the switches for both front seats for heating and cooling with the orange and blue leds for the test condition. I saw the status changed in the Bluelink app (Bluelink picture), but HA reminded unchanged (value 2 for those sensors, HA picture). I made sure HA was updated.
T1 Bluelink HA Perhaps the value of these sensors is not well parsed. (?) I appreciate your work pretty much! Thanks a lot.

fuatakgun commented 2 years ago

I will also check with my Kia Niro PHEV with heated and cooled seats and publish my findings here.

OlwinFroon commented 2 years ago

Hm. My Kona doesn't report seat heat settings at all, let alone allow to set it ... :{

cdnninja commented 2 years ago

Could you do some mapping for us? Looks like @fuatakguns doesn't report these values so we can't use his car to test. We wrongly assumed this reported on / off but I think it actually follows something like this: https://github.com/fuatakgun/kia_uvo/issues/225#issuecomment-1006112071

1: Unknown 2: Off 3: Low Cool 4: Medium Cool 5: Full Cool 6: Low Heat 7: Medium Heat 8: High Heat

To test you will need to set the car to one of the above and run a force update via the developer update menu and then check the data in the data element.

cdnninja commented 2 years ago

Another question for everyone. How should we show this in home assistant? Do you want it to just show on off or do you want it to show cool, heat and the levels?

cdnninja commented 2 years ago

Could someone test the above PR for me and provide feedback?

caddyblack commented 2 years ago

I have checked the values in the latest version of HA (2022.2.2) Screenshot_20220206-115606_Chrome.jpg Screenshot_20220206-115344_Chrome.jpg The screenshots show the status in the niro.data component show status 2 for the seat heaters. The specific entity of the seat heater shows on. Do the dara is read correctly by niro.data but conversion to the seat heater entity is wrong.

cdnninja commented 1 year ago

Please test in 2.0 if you get a chance. If not solved it is the place we can now fix this.

cdnninja commented 1 year ago

Closing due to lack of response.