Code Monkey home page Code Monkey logo

Comments (19)

tillsteinbach avatar tillsteinbach commented on June 12, 2024 1

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

from weconnect-python.

tillsteinbach avatar tillsteinbach commented on June 12, 2024 1

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

from weconnect-python.

tillsteinbach avatar tillsteinbach commented on June 12, 2024

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

from weconnect-python.

pplucky avatar pplucky commented on June 12, 2024

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.

from weconnect-python.

tillsteinbach avatar tillsteinbach commented on June 12, 2024

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

from weconnect-python.

pplucky avatar pplucky commented on June 12, 2024

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?

from weconnect-python.

tillsteinbach avatar tillsteinbach commented on June 12, 2024

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

from weconnect-python.

pplucky avatar pplucky commented on June 12, 2024

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.

from weconnect-python.

tillsteinbach avatar tillsteinbach commented on June 12, 2024

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?

from weconnect-python.

pplucky avatar pplucky commented on June 12, 2024

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

from weconnect-python.

tillsteinbach avatar tillsteinbach commented on June 12, 2024

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

from weconnect-python.

pplucky avatar pplucky commented on June 12, 2024

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.

from weconnect-python.

tillsteinbach avatar tillsteinbach commented on June 12, 2024

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

from weconnect-python.

pplucky avatar pplucky commented on June 12, 2024

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)

from weconnect-python.

tillsteinbach avatar tillsteinbach commented on June 12, 2024

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

from weconnect-python.

pplucky avatar pplucky commented on June 12, 2024

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)

from weconnect-python.

tillsteinbach avatar tillsteinbach commented on June 12, 2024

hmmm

from weconnect-python.

pplucky avatar pplucky commented on June 12, 2024

hmmm

Can I try to help any further?

from weconnect-python.

pplucky avatar pplucky commented on June 12, 2024

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

from weconnect-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.