skodaconnect / homeassistant-myskoda

Homeassistant integration for MySkoda.
91 stars 15 forks source link

Window heating with climatization #281

Open gerliczky opened 1 week ago

gerliczky commented 1 week ago

In the Skoda connect integration there was a switch to optionally to turn on window heating, when electric climatization is turned on. Is it possible to implemet that also here?

prvakt commented 1 week ago

can you provide screenshot? Checking the old integration but window heater is separated from the climatisation switch image

edit1: just checked source from old integration and indeed there is an option to start window heater together with climatisation so I'm wondering why its not visible on my place. Unfortunately this functionality is probably not supported in new API. But maybe a dummy switch (start_windows_heating_with_ac) can be used to handle this state and in case switch is enabled, we can start heating as well

edit2: can you enable climatisation and windows heating in single step inside new MySkoda app?

gerliczky commented 1 week ago

I marked the two switches related to window heating. image

In the My Skoda app you can enable automatic windows heating with climatization, if you click on climate control, then the three dits on the upper left corner and there you can find a switch under Automatic intelligent heating, called Window heating.

prvakt commented 1 week ago

ok this is not available in my Superb iV.. I can additionally choose only to enable or disable AC from battery if charging cable is unplugged.. Would it be possible to generate fixtures for your car?

gerliczky commented 1 week ago

If you give me instructions, I can assist.

prvakt commented 1 week ago

ideally by running myskoda[cli] (https://github.com/skodaconnect/myskoda?tab=readme-ov-file#as-cli). I'm not sure how much experience you have, but its possible to use ubuntu docker image with python installed

install ubuntu:latest docker image, then
1) apt-get update
2) apt-get install -y python3 python3-pip python3-venv (you will be prompted to enter your timnezone info)
3) python3 -m venv myenv 
4) source myenv/bin/activate
5) pip install myskoda[cli]
6) myskoda --help (and just follow the command instructions to generate fixtures)
 should take max 5 minutes and you are ready to test 😉

if its too complicated, you can enable debug logging and API tracing in myskoda integration and provide anonymized responses from the log - especially for the air-conditioning

WebSpider commented 1 week ago

I have the features in my Enyaq. Just don't have the API command to enable/disable the seat heating, window heating, etc.

gerliczky commented 1 week ago

I attached HA debug log. I hope it helps. enyaq.txt

prvakt commented 6 days ago

probably found the endpoint and body configuration in decompiled apk

api/v2/air-conditioning/{vin}/settings/windows-heating Body

{
    "windowHeatingEnabled" = True/False
}

will implement it once I'm finished with the AuxiliaryHeater