Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pplucky opened this issue Mar 13, 2023 · 19 comments
Open
Assignees
Labels
enhancement New feature or request

Comments

@pplucky
Copy link

pplucky commented Mar 13, 2023

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.

@pplucky pplucky added the bug Something isn't working label Mar 13, 2023
@tillsteinbach
Copy link
Owner

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

@pplucky
Copy link
Author

pplucky commented Mar 13, 2023

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.

@tillsteinbach
Copy link
Owner

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

@tillsteinbach
Copy link
Owner

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

@tillsteinbach tillsteinbach added enhancement New feature or request and removed bug Something isn't working labels Mar 14, 2023
@pplucky
Copy link
Author

pplucky commented Mar 15, 2023

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?

@tillsteinbach
Copy link
Owner

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,…).

@pplucky
Copy link
Author

pplucky commented Mar 15, 2023

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.

@tillsteinbach
Copy link
Owner

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?

@pplucky
Copy link
Author

pplucky commented Mar 15, 2023

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

@tillsteinbach
Copy link
Owner

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

@pplucky
Copy link
Author

pplucky commented Mar 15, 2023

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.

@tillsteinbach
Copy link
Owner

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

@pplucky
Copy link
Author

pplucky commented Mar 15, 2023

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)

@tillsteinbach
Copy link
Owner

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

@pplucky
Copy link
Author

pplucky commented Mar 16, 2023

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)

@tillsteinbach
Copy link
Owner

hmmm

@pplucky
Copy link
Author

pplucky commented Mar 21, 2023

hmmm

Can I try to help any further?

@tillsteinbach
Copy link
Owner

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

@pplucky
Copy link
Author

pplucky commented Mar 21, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants