robinostlund / homeassistant-volkswagencarnet

Volkswagen Carnet Component for home assistant
GNU General Public License v3.0
340 stars 63 forks source link

Cannot set charge level on ID7 #633

Closed PoulKlemmensen closed 5 months ago

PoulKlemmensen commented 5 months ago

Before you post a new issue - you must first check the following (and check the boxes with an "X" below)

Environment

Describe the bug

Steps to Reproduce

Expected behavior

Screenshots

Traceback/Error logs

Debug information - all JSON responses from logfile

Additional context

Note

Issues lacking sufficient details or context may be subject to closure without prior notice. Detailed bug reports are essential for effective issue resolution. Thank you for your cooperation.

PoulKlemmensen commented 5 months ago

I did add a copy of the HomeAssistant log, but not sure where it went .... Trying again.

File "/usr/src/homeassistant/homeassistant/components/number/init.py", line 121, in async_set_value await entity.async_set_native_value(native_value) File "/config/custom_components/volkswagencarnet/number.py", line 104, in async_set_native_value await self.instrument.set_value(value) File "/usr/local/lib/python3.12/site-packages/volkswagencarnet/vw_dashboard.py", line 608, in set_value await self.vehicle.set_charging_settings( File "/usr/local/lib/python3.12/site-packages/volkswagencarnet/vw_vehicle.py", line 353, in set_charging_settings self.battery_target_charge_level = value ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: property 'battery_target_charge_level' of 'Vehicle' object has no setter

stickpin commented 5 months ago

lol... I introduced this bug a long ago... interesting that nobody was paying attention to it. I will release a fix tomorrow.

PoulKlemmensen commented 5 months ago

No problem and no hurry. I am trying to use HomeAssistant as much as possible instead of all these different apps that I have to keep track of. And I wanted to set the charge level at 90 for tomorrow :D

stickpin commented 5 months ago

@PoulKlemmensen please try v5.0.1