tillsteinbach/WeConnect-python

Clarification: does the library provide Battery Care Mode info for id.3?

pplucky opened this issue · 19 comments

Hello.

Can anyone clarify if the library provides/is able to provide Battery Care Mode information for an id.3?
photo1678705721

Although this setting exists in the We Connect ID app, I could not find it via weconnect-cli. Is this not available at all, or can be added?

Thanks for clarifying.

Unfortunately my car does not support battery care yet. What does weconnect-cli -vv --selective all get / give? Are there warnings?

Unfortunately my car does not support battery care yet. What does weconnect-cli -vv --selective all get / give? Are there warnings?

I suppose this is what you were looking for:

2023-03-13T14:50:15+0000:WARNING:/vehicles/VIN_NR/domains/charging/chargingCareSettings: Unknown attribute batteryCareMode with value activated
2023-03-13T14:50:15+0000:WARNING:/vehicles/VIN_NR: Unknown domain batteryChargingCare with value {'chargingCareSettings': {'value': {'batteryCareMode': 'activated'}}}
2023-03-13T14:50:15+0000:WARNING:/vehicles/VIN_NR: Unknown domain climatisationTimers with value {'climatisationTimersStatus': {'value': {'timers': [{'id': 1, 'enabled': False, 'singleTimer': {'startDateTime': '2023-01-26T06:30:00Z'}}, {'id': 2, 'enabled': False, 'singleTimer': {'startDateTime': '2000-01-01T00:00:00Z'}}], 'carCapturedTimestamp': '2023-03-13T13:50:10.457Z', 'timeInCar': '2023-03-13T13:50:10Z'}}}

Thanks in advance for checking.

Yea, I will add battery care settings as soon as I find time.

Can you do the query with weconnect-cli again with batteryCareMode disabled?

Can you do the query with weconnect-cli again with batteryCareMode disabled?

Did not update anything, just ran it again with previous command:

2023-03-15T01:27:25+0000:INFO:Reusing tokens from previous session
2023-03-15T01:27:25+0000:INFO:Reading cachefile /tmp/weconnect.cache
2023-03-15T01:27:25+0000:WARNING:/vehicles/VIN_NR/domains/charging/chargingCareSettings: Unknown attribute batteryCareMode with value activated
2023-03-15T01:27:25+0000:WARNING:/vehicles/VIN_NR: Unknown domain batteryChargingCare with value {'chargingCareSettings': {'value': {'batteryCareMode': 'activated'}}}
2023-03-15T01:27:25+0000:WARNING:/vehicles/VIN_NR: Unknown domain climatisationTimers with value {'climatisationTimersStatus': {'value': {'timers': [{'id': 1, 'enabled': False, 'singleTimer': {'startDateTime': '2023-01-26T06:30:00Z'}}, {'id': 2, 'enabled': False, 'singleTimer': {'startDateTime': '2000-01-01T00:00:00Z'}}], 'carCapturedTimestamp': '2023-03-15T00:37:53.109Z', 'timeInCar': '2023-03-15T00:37:53Z'}}}

Although setting is deactivated in app, it seems to still be reporting activated?

ahhh, maybe caching was the problem here. Can you do it again and add the —no-cache option. I need to know how the deactivated state is actually named (disabled, deactivated, inactive,…).

Here it is now:

2023-03-15T07:41:45+0000:INFO:Reusing tokens from previous session
2023-03-15T07:41:45+0000:INFO:Reading cachefile /tmp/weconnect.cache
2023-03-15T07:41:45+0000:INFO:Token expired
2023-03-15T07:41:45+0000:INFO:Refreshing tokens
2023-03-15T07:41:52+0000:WARNING:/vehicles/VIN_NR/domains/charging/chargingCareSettings: Unknown attribute batteryCareMode with value deactivated
2023-03-15T07:41:52+0000:WARNING:/vehicles/VIN_NR: Unknown domain batteryChargingCare with value {'chargingCareSettings': {'value': {'batteryCareMode': 'deactivated'}}}
2023-03-15T07:41:52+0000:WARNING:/vehicles/VIN_NR: Unknown domain climatisationTimers with value {'climatisationTimersStatus': {'value': {'timers': [{'id': 1, 'enabled': False, 'singleTimer': {'startDateTime': '2023-01-26T06:30:00Z'}}, {'id': 2, 'enabled': False, 'singleTimer': {'startDateTime': '2000-01-01T00:00:00Z'}}], 'carCapturedTimestamp': '2023-03-15T01:24:27.547Z', 'timeInCar': '2023-03-15T01:24:27Z'}}}

Thanks for following up.

I released a development version (0.33.1.dev1). You can install it with pip3 install weconnect-cli=0.33.1.dev1 would you be so kind and test if it is working for you?

Looking good now!

Battery care activated:

[charging] Elements: 6 items
	[batteryStatus] (last captured 2023-03-15T16:12:58+00:00)
		Current SoC: 63%
		Range: 271km
	[chargingStatus] (last captured 2023-03-15T16:12:58+00:00)
		State: notReadyForCharging
		Mode: manual
		Remaining Charging Time: 0 minutes
		Charge Power: 0.0 kW
		Charge Rate: 0.0 km/h
		Charge Type: invalid
		Charging Settings: default
	[chargingSettings] (last captured 2023-03-15T16:12:58+00:00)
		Maximum Charge Current AC: maximum
		Auto Unlock When Charged: off
		Auto Unlock When Charged AC: off
		Target SoC: 80 %
	[chargeMode]
		Preferred charge mode: manual
		Available charge modes: [manual]
	[plugStatus] (last captured 2023-03-15T16:13:24+00:00)
		Plug: disconnected, unlocked, External Power: unavailable, Led color: none
	[chargingCareSettings]
		Battery Care Mode: activated

Battery care de-activated:

[charging] Elements: 6 items
	[batteryStatus] (last captured 2023-03-15T16:12:58+00:00)
		Current SoC: 63%
		Range: 271km
	[chargingStatus] (last captured 2023-03-15T16:12:58+00:00)
		State: notReadyForCharging
		Mode: manual
		Remaining Charging Time: 0 minutes
		Charge Power: 0.0 kW
		Charge Rate: 0.0 km/h
		Charge Type: invalid
		Charging Settings: default
	[chargingSettings] (last captured 2023-03-15T16:21:54+00:00)
		Maximum Charge Current AC: maximum
		Auto Unlock When Charged: off
		Auto Unlock When Charged AC: off
		Target SoC: 80 %
	[chargeMode]
		Preferred charge mode: manual
		Available charge modes: [manual]
	[plugStatus] (last captured 2023-03-15T16:21:54+00:00)
		Plug: disconnected, unlocked, External Power: unavailable, Led color: none
	[chargingCareSettings]
		Request: settings operation, status successful  Request Id: b681eaee-132c-4283-83ee-bc48bbc5888d
		Battery Care Mode: deactivated

Perfect. Can you also change the setting through weconnect-cli?

Perfect. Can you also change the setting through weconnect-cli?

Would you please be able to clarify how to do it? Honestly I have never user reconnect-cli for set activities, only get.

Thanks in advance.

Shpuld be something like weconnect-cli set /vehicles/VIN/domains/charging/chargingCareSettings/batteryCareMode deactivated

Shpuld be something like weconnect-cli set /vehicles/VIN/domains/charging/chargingCareSettings/batteryCareMode deactivated

id /vehicles/VIN_NR/domains/charging/chargingCareSettings/batteryCareMode cannot be set: Could not not set value (404)

ok and if you try: weconnect-cli set /vehicles/VIN/domains/batteryChargingCare/chargingCareSettings/batteryCareMode deactivated

ok and if you try: weconnect-cli set /vehicles/VIN/domains/batteryChargingCare/chargingCareSettings/batteryCareMode deactivated

Same:
id /vehicles/VIN_NR/domains/batteryChargingCare/chargingCareSettings/batteryCareMode cannot be set: Could not not set value (404)

hmmm

Can I try to help any further?

Currently not. I will need to find another way to deal with setting a new value

But the setting detail itself is expected to be included in 0.55.0, right?