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
426 stars 85 forks source link

Expose scheduled charge/climate control as sensor #627

Closed sammort closed 8 months ago

sammort commented 1 year ago

Hey thanks for the great work on this API and integration with HA, it's really helpful to be able to setup some more advanced automations.

I hoped it might be possible to see the status of scheduled charging/climate control as a binary sensor in HA. My use case is this:

I usually only want my EV to charge during the 'off-peak' tariff, and this mostly works well when scheduled charging is set and enabled in the Bluelink app. However, frustratingly the setting will (seemingly at random) reset and scheduled charging is no longer enabled. This usually results in someone plugging in the car and not noticing that it immediately starts to charge (costing an arm and a leg with the current energy prices!)

It would be great to be able to detect this 'reset' using this API's integration with HA, by exposing this setting as a sensor in the app, would this be possible?

(This is similar to request in https://github.com/Hyundai-Kia-Connect/hyundai_kia_connect_api/issues/18)

cdnninja commented 1 year ago

What region are you in? I think most of this was added already but may not be all regions.

sammort commented 1 year ago

I'm in the EU, so I can see things like 1st Scheduled Departure Time, 2nd Scheduled Departure Time and Off Peak Start and End Time are alreayd implemented.

Some things that don't currently seem available, that are in the Bluelink app:

  1. Whether 'Scheduled charging' and 'Scheduled climate control' are enabled/disabled (shows in the Status page of the bluelink app)
  2. Within 'Scheduled for charging' configuration there are options to set off-peak timeframe (already exposed to HA) but also whether 'Prioritisation' is 'Off-peak tariffs prioritised' or 'Off-peak tariffs only'

I find that when the car/API resets my setting to only charge during off-peak hours, the setting 'Scheduled charging' will be disabled. If this was exposed as a binary sensor I could have some automation based on that sensor switching from true to false.

(Let me know if it would be useful to have screenshots from the EU Bluelink app)

cdnninja commented 1 year ago

Got it. Today we have "EV First Scheduled Departure" and second which I think is related?

sammort commented 1 year ago

That's correct, in the Scheduled charging configuration is where you are able to set the 1st and 2nd departure schedules

cdnninja commented 1 year ago

Could you screenshot what it shows in app that is missing? Today we have a binary sensor that should display for first and second departure schedules. This is showing if enabled.

erelke commented 1 year ago

I marked with red missing datas - from my Kia Connect app (Niro EV MY20/EU) IMG_20230415_105905 IMG_20230415_110021

erelke commented 1 year ago

Charging completion alert settings also missing from HA Screenshot_2023-04-15-11-07-10-688_com kia connect eu

kalaws commented 1 year ago

Would it be possible to show the date and/or day of week for which charging has been scheduled?

DJBenson commented 1 year ago

Is it possible to expose the below as controls rather than sensors?

image

cdnninja commented 11 months ago

All of this is possible just need someone to write and test it. I don't have a Kia anymore so less invested. I also didn't have an EV so hard to test.

sammort commented 8 months ago

It was possible to build an automation to notify when this value had reset in Bluelink by watching for changes in value of Off Peak End Time and Off Peak Start Time. When both of these values = 00:00:00 then the off-peak charging values had been reset.

Closing this issue as no additional work required to achieve what is intended in this request.