I have peeked at the audi connect component and it’s converting in the code so no secret parameter to set when requesting data.
I will fix conversion in next commit, should be easy enough to fix in both testing and main.
What an amazing job @Farfar@lendy007 . Ever since I saw the Carnet integration, I thought it could be leveraged to support Skoda Connnect – I even investigated but quickly got caught back by my lack of skills –.
Edit: Now when I re-read your post I understand. If you only have the electric option in the app then your car isn’t equipped with auxiliary heater (parking heater)? See text below:
The climate entity is somewhat broken, haven’t fixed it since it doesn’t really map well to how the current library handles data. If you change temp in climate entity for instance, there will be a call to the API to set the temperature. And when you activate heating another call… All of theese calls counts toward your maximum ammount (15) of requests until no further request can be made until the car has been started.
I am only using the switches for electric/aux heating.
You need the test branch of the library and integration to use the aux heater for PHEV. In short there’s two different API functions: rs and climater.
rs is legacy(?) function for cars with parking heater, petrol/diesel only afaik.
climater is newer and is used for EV/PHEV cars. Some PHEVs also have a parking heater, I named this auxiliary so it isn’t mistaken for the parking heater in non PHEV cars.
I’m not sure though how to tell if a car is equipped with aux heater since mine is and I can’t compare. So all EV/PHEVs should show the aux heater atm.
It’s 4 cards stack vertically, you will need some custom lovelace plugins and get the car image from skoda connect portal. The charger cable etc is ugly .pngs I have manually created in GIMP. Positions aren’t 100% accurate but looks good enough:
All entities are unavailable and log shows this error
Logger: homeassistant.util.package
Source: util/package.py:95
First occurred: 17:49:49 (1 occurrences)
Last logged: 17:49:49
Unable to install package skodaconnect==1.0.21: ERROR: Could not find a version that satisfies the requirement skodaconnect==1.0.21 (from versions: 1.0.7.dev2, 1.0.8.dev1, 1.0.9.dev1, 1.0.10, 1.0.11, 1.0.13, 1.0.14, 1.0.16, 1.0.17, 1.0.18) ERROR: No matching distribution found for skodaconnect==1.0.21 WARNING: You are using pip version 20.2.4; however, version 20.3.3 is available. You should consider upgrading via the '/usr/local/bin/python3 -m pip install --upgrade pip' command.
I had to publish @Farfar changes to pip which I had done right now. Unfortunately wasn’t able to publish as version 1.0.21, so now it is 1.0.23. Plugin repository also updated, should be working fine now.
I did the 1.0.23 release and have some sensor now unavailable… like the climate set temperature.
Also the last trip duration.
Logs show
File “/usr/local/lib/python3.8/site-packages/dashboardskoda.py”, line 126, in state
if val and self.unit and “mi” in self.unit and self.convert == True:
AttributeError: ‘Sensor’ object has no attribute ‘convert’
I have the same error since the 1.0.23:
2020-12-20 15:58:02 ERROR (MainThread) [homeassistant.components.sensor] Error adding entities for domain sensor with platform skodaconnect
Traceback (most recent call last):
File “/root/homeassistant/lib64/python3.8/site-packages/homeassistant/helpers/entity_platform.py”, line 316, in async_add_entities
await asyncio.gather(*tasks)
File “/root/homeassistant/lib64/python3.8/site-packages/homeassistant/helpers/entity_platform.py”, line 507, in _async_add_entity
await entity.add_to_platform_finish()
File “/root/homeassistant/lib64/python3.8/site-packages/homeassistant/helpers/entity.py”, line 531, in add_to_platform_finish
self.async_write_ha_state()
File “/root/homeassistant/lib64/python3.8/site-packages/homeassistant/helpers/entity.py”, line 296, in async_write_ha_state
self._async_write_ha_state()
File “/root/homeassistant/lib64/python3.8/site-packages/homeassistant/helpers/entity.py”, line 320, in _async_write_ha_state
sstate = self.state
File “/root/.homeassistant/custom_components/skodaconnect/sensor.py”, line 27, in state
return self.instrument.state
File “/root/homeassistant/lib64/python3.8/site-packages/dashboardskoda.py”, line 134, in state
elif val and self.unit and “°C” in self.unit and self.convert == True:
AttributeError: ‘Sensor’ object has no attribute ‘convert’
Sorry, you cannot modify it as it is part of Pypi package which is invisible for you. But I saw @Farfar is already working on fixed version so stay tuned, will be fixed very soon
Thanks for sharing your config. I’m wondering about the switch.superb_request_in_progress. I don’t have that entity and I was wondering what it does and whether it’s linked to the fact you have a PHEV (mine isn’t).
The request_in_progress is only implemented in the test branch so far. It’s an indication if there’s a API call in progress when the sensors are updated. Since a call can be done in ~10-15s it’s not that useful since HA states are updated once every minute at the most.
But it can also be used to manually trigger a status refresh, it will try to wake up the car so it sends latest data to the servers.
I am working on implementing all of the features to main branch, that you can install via HACS etc, but it keeps popping upp small changes that take precedence