Python Plugin: Volvo EV

Python and python framework

Moderator: leecollings

akamming
Posts: 368
Joined: Friday 17 August 2018 14:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Volvo EV

Post by akamming »

Yes, plug-in is working fine for me…

But I Only can test with full ev
akamming
Posts: 368
Joined: Friday 17 August 2018 14:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Volvo EV

Post by akamming »

Yes, plug-in is working fine for me…

Now also uses v2

But I Only can test with full ev
User avatar
FireWizard
Posts: 1886
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Python Plugin: Volvo EV

Post by FireWizard »

Hello @akamming,

Do you use the Energy API as well?

What about the Location API?

Regards
akamming
Posts: 368
Joined: Friday 17 August 2018 14:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Volvo EV

Post by akamming »

Connected, energy and location api’s

Feel free to give it a try and then you know if it works for your car.
HvdW
Posts: 612
Joined: Sunday 01 November 2015 22:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Twente
Contact:

Re: Python Plugin: Volvo EV

Post by HvdW »

Almost there.

Code: Select all

2023-12-14 16:07:06.404 Status: Volvo: Stop directive received.
2023-12-14 16:07:06.465 Status: Volvo: Exiting work loop.
2023-12-14 16:07:06.504 Status: Volvo: Stopping threads.
2023-12-14 16:07:06.504 Status: Volvo: Stopped.
2023-12-14 16:07:06.504 Status: Volvo: Entering work loop.
2023-12-14 16:07:06.504 Status: Volvo: Started.
2023-12-14 16:07:06.909 Status: Volvo: Initialized version 0.1.0, author 'akamming'
2023-12-14 16:07:07.123 Volvo: INFO: Login successful!
2023-12-14 16:07:07.306 Volvo: ERROR: VolvoAPI failed calling https://api.volvocars.com/connected-vehicle/v2/vehicles, HTTP Statuscode 401
2023-12-14 16:07:07.307 Volvo: ERROR: Reponse: {'status': 401, 'error': {'message': 'Access denied due to invalid VCC-API-KEY. Make sure to provide a valid key for an active application.'}}
Remark: username cannot find it , used my Volvo mail address.
Even after regenerating my API key it is rejected in the Domoticz call to Volvo.
Bugs bug me.
akamming
Posts: 368
Joined: Friday 17 August 2018 14:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Volvo EV

Post by akamming »

HvdW wrote: Thursday 14 December 2023 15:54 Almost there.

Code: Select all

2023-12-14 16:07:06.404 Status: Volvo: Stop directive received.
2023-12-14 16:07:06.465 Status: Volvo: Exiting work loop.
2023-12-14 16:07:06.504 Status: Volvo: Stopping threads.
2023-12-14 16:07:06.504 Status: Volvo: Stopped.
2023-12-14 16:07:06.504 Status: Volvo: Entering work loop.
2023-12-14 16:07:06.504 Status: Volvo: Started.
2023-12-14 16:07:06.909 Status: Volvo: Initialized version 0.1.0, author 'akamming'
2023-12-14 16:07:07.123 Volvo: INFO: Login successful!
2023-12-14 16:07:07.306 Volvo: ERROR: VolvoAPI failed calling https://api.volvocars.com/connected-vehicle/v2/vehicles, HTTP Statuscode 401
2023-12-14 16:07:07.307 Volvo: ERROR: Reponse: {'status': 401, 'error': {'message': 'Access denied due to invalid VCC-API-KEY. Make sure to provide a valid key for an active application.'}}
Remark: username cannot find it , used my Volvo mail address.
Even after regenerating my API key it is rejected in the Domoticz call to Volvo.
You should use your Volvo on call e-mailadres/password

The error however states something wrong with your api key

Can’t help with this, it is clearly an issue with your credentials at volvo
Losje
Posts: 1
Joined: Wednesday 27 December 2023 21:44
Target OS: Linux
Domoticz version:
Contact:

Re: Python Plugin: Volvo EV

Post by Losje »

Very cool stuff. I was surprised by how many data I got from my XC40 :D
Setup was quite painless, well explained by akamming! Thanks a lot!
akamming
Posts: 368
Joined: Friday 17 August 2018 14:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Volvo EV

Post by akamming »

Losje wrote: Wednesday 27 December 2023 21:49 Very cool stuff. I was surprised by how many data I got from my XC40 :D
Setup was quite painless, well explained by akamming! Thanks a lot!
You are welcome

And just made a change for even more data: if you update the plug-in to latest version, it now also retrieves all warnings in the car
HvdW
Posts: 612
Joined: Sunday 01 November 2015 22:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Twente
Contact:

Re: Python Plugin: Volvo EV

Post by HvdW »

I'd like to get some assistance.
I have my own Volvo ID using mail and password.
When I go to Developers I can only login with my github account.
There is an option to login on volvocars.biz and an option to login with Google. The first is not possible and the Google option is not connected to my Volvo car ID.
How do I get to the right spot?
Bugs bug me.
akamming
Posts: 368
Joined: Friday 17 August 2018 14:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Volvo EV

Post by akamming »

HvdW wrote: Saturday 30 December 2023 12:47 I'd like to get some assistance.
I have my own Volvo ID using mail and password.
When I go to Developers I can only login with my github account.
There is an option to login on volvocars.biz and an option to login with Google. The first is not possible and the Google option is not connected to my Volvo car ID.
How do I get to the right spot?
the volvo id and he id you use to login to developer site of volvo deos not have to be the same id or linked. Just register on the developer site and create an API key, that's enough..
HvdW
Posts: 612
Joined: Sunday 01 November 2015 22:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Twente
Contact:

Re: Python Plugin: Volvo EV

Post by HvdW »

Done!
Great!
Except for:

Code: Select all

2023-12-30 23:12:17.483 Volvo: Worker thread started.
2023-12-30 23:12:17.382 Status: Volvo: Stop directive received.
2023-12-30 23:12:17.480 Status: Volvo: Exiting work loop.
2023-12-30 23:12:17.482 Status: Volvo: Stopping threads.
2023-12-30 23:12:17.483 Status: Volvo: Stopped.
2023-12-30 23:12:17.483 Status: Volvo: Started.
2023-12-30 23:12:17.483 Status: Volvo: Entering work loop.
2023-12-30 23:12:17.885 Status: Volvo: Initialized version 0.1.0, author 'akamming'
2023-12-30 23:12:18.097 Volvo: INFO: Login successful!
2023-12-30 23:12:18.365 Volvo: INFO: 1 car(s) attached to your Volvo ID account:
2023-12-30 23:12:18.365 Volvo: INFO: YV1XZEEE4R2288999
2023-12-30 23:12:18.365 Volvo: INFO: Using configured VIN YV1XZEEE4R2288999
2023-12-30 23:12:18.713 Volvo: INFO: retreived a XC40, color Jupiter, model year 2024
2023-12-30 23:12:18.714 Volvo: INFO: Setting BatteryCapacity to 81.608
2023-12-30 23:12:18.714 Volvo: INFO: Updating Devices
2023-12-30 23:12:18.922 Error: Volvo: Call to function 'onStart' failed, exception details:
2023-12-30 23:12:18.929 Error: Volvo: Traceback (most recent call last):
2023-12-30 23:12:18.929 Error: Volvo: File "/home/hein/domoticz/plugins/Domoticz_VolvoRecharge_Plugin/plugin.py", line 1083, in onStart
2023-12-30 23:12:18.929 Error: Volvo: _plugin.onStart()
2023-12-30 23:12:18.929 Error: Volvo: File "/home/hein/domoticz/plugins/Domoticz_VolvoRecharge_Plugin/plugin.py", line 1040, in onStart
2023-12-30 23:12:18.929 Error: Volvo: Heartbeat()
2023-12-30 23:12:18.929 Error: Volvo: File "/home/hein/domoticz/plugins/Domoticz_VolvoRecharge_Plugin/plugin.py", line 877, in Heartbeat
2023-12-30 23:12:18.929 Error: Volvo: GetRechargeStatus()
2023-12-30 23:12:18.929 Error: Volvo: File "/home/hein/domoticz/plugins/Domoticz_VolvoRecharge_Plugin/plugin.py", line 688, in GetRechargeStatus
2023-12-30 23:12:18.929 Error: Volvo: UpdateSensor(vin,BATTERYCHARGELEVEL,"batteryChargeLevel",243,6,None,
2023-12-30 23:12:18.929 Error: Volvo: File "/home/hein/domoticz/plugins/Domoticz_VolvoRecharge_Plugin/plugin.py", line 356, in UpdateSensor
2023-12-30 23:12:18.929 Error: Volvo: Devices[vin].Units[idx].nValue = nv
2023-12-30 23:12:18.929 Error: Volvo: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-12-30 23:12:18.929 Error: Volvo: TypeError: 'float' object cannot be interpreted as an integer
Volvo Climatization, Volvo Electric range and Volvo battery charge level are present.
Bugs bug me.
akamming
Posts: 368
Joined: Friday 17 August 2018 14:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Volvo EV

Post by akamming »

HvdW wrote: Saturday 30 December 2023 23:10 Done!
Great!
Except for:

Code: Select all

2023-12-30 23:12:17.483 Volvo: Worker thread started.
2023-12-30 23:12:17.382 Status: Volvo: Stop directive received.
2023-12-30 23:12:17.480 Status: Volvo: Exiting work loop.
2023-12-30 23:12:17.482 Status: Volvo: Stopping threads.
2023-12-30 23:12:17.483 Status: Volvo: Stopped.
2023-12-30 23:12:17.483 Status: Volvo: Started.
2023-12-30 23:12:17.483 Status: Volvo: Entering work loop.
2023-12-30 23:12:17.885 Status: Volvo: Initialized version 0.1.0, author 'akamming'
2023-12-30 23:12:18.097 Volvo: INFO: Login successful!
2023-12-30 23:12:18.365 Volvo: INFO: 1 car(s) attached to your Volvo ID account:
2023-12-30 23:12:18.365 Volvo: INFO: YV1XZEEE4R2288999
2023-12-30 23:12:18.365 Volvo: INFO: Using configured VIN YV1XZEEE4R2288999
2023-12-30 23:12:18.713 Volvo: INFO: retreived a XC40, color Jupiter, model year 2024
2023-12-30 23:12:18.714 Volvo: INFO: Setting BatteryCapacity to 81.608
2023-12-30 23:12:18.714 Volvo: INFO: Updating Devices
2023-12-30 23:12:18.922 Error: Volvo: Call to function 'onStart' failed, exception details:
2023-12-30 23:12:18.929 Error: Volvo: Traceback (most recent call last):
2023-12-30 23:12:18.929 Error: Volvo: File "/home/hein/domoticz/plugins/Domoticz_VolvoRecharge_Plugin/plugin.py", line 1083, in onStart
2023-12-30 23:12:18.929 Error: Volvo: _plugin.onStart()
2023-12-30 23:12:18.929 Error: Volvo: File "/home/hein/domoticz/plugins/Domoticz_VolvoRecharge_Plugin/plugin.py", line 1040, in onStart
2023-12-30 23:12:18.929 Error: Volvo: Heartbeat()
2023-12-30 23:12:18.929 Error: Volvo: File "/home/hein/domoticz/plugins/Domoticz_VolvoRecharge_Plugin/plugin.py", line 877, in Heartbeat
2023-12-30 23:12:18.929 Error: Volvo: GetRechargeStatus()
2023-12-30 23:12:18.929 Error: Volvo: File "/home/hein/domoticz/plugins/Domoticz_VolvoRecharge_Plugin/plugin.py", line 688, in GetRechargeStatus
2023-12-30 23:12:18.929 Error: Volvo: UpdateSensor(vin,BATTERYCHARGELEVEL,"batteryChargeLevel",243,6,None,
2023-12-30 23:12:18.929 Error: Volvo: File "/home/hein/domoticz/plugins/Domoticz_VolvoRecharge_Plugin/plugin.py", line 356, in UpdateSensor
2023-12-30 23:12:18.929 Error: Volvo: Devices[vin].Units[idx].nValue = nv
2023-12-30 23:12:18.929 Error: Volvo: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-12-30 23:12:18.929 Error: Volvo: TypeError: 'float' object cannot be interpreted as an integer
Volvo Climatization, Volvo Electric range and Volvo battery charge level are present.
Just ran into the same bug when trying to upgrade my rpi to debian bookworm. You are probably also on bookworm / python 3.11?

Anyway: this morning i fixed it. If you do a "git pull" and restart the plugin it should work now..
HvdW
Posts: 612
Joined: Sunday 01 November 2015 22:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Twente
Contact:

Re: Python Plugin: Volvo EV

Post by HvdW »

Domoticz Volvo app.jpg
Domoticz Volvo app.jpg (171.77 KiB) Viewed 3769 times
Great!
It's all in place now.
Thanks a lot!

The display does remind me that I hope the developers will program a possibility to change the tile format to for example 2,4 6 tiles on a row and to offer the possibility to change the font size of the header.


EDIT
Oops! Just discovered a lot more information.
Volvo abundant.jpg
Volvo abundant.jpg (314.51 KiB) Viewed 3752 times
Nice to have those send a notification if one of these have exceptions to report.
Bugs bug me.
HvdW
Posts: 612
Joined: Sunday 01 November 2015 22:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Twente
Contact:

Re: Python Plugin: Volvo EV

Post by HvdW »

Question:
How do I get the value of Volvo-fullRange

Code: Select all

local range = domoticz.devices('Volvo-fullRange').fullRange
Is it km, range, fullrange?
Bugs bug me.
akamming
Posts: 368
Joined: Friday 17 August 2018 14:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Volvo EV

Post by akamming »

HvdW wrote: Wednesday 03 January 2024 0:12 Question:
How do I get the value of Volvo-fullRange

Code: Select all

local range = domoticz.devices('Volvo-fullRange').fullRange
Is it km, range, fullrange?
Imam not a scripting guru so maybe someone else can better anwser this question.

My 2 cents: it is a device of the type. So i would expect the nValue and sValue attributes might work Here (assuming this is a dzvents script)
User avatar
FireWizard
Posts: 1886
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Python Plugin: Volvo EV

Post by FireWizard »

Hello @HvdW,

Question: Is it a Hybrid (PHEV)?

If so, I assume that it is the SUM of Electric Range (distanceToEmptyBattery.value) and the Petrol range (distanceToEmptyTank.value)
See: https://developer.volvocars.com/apis/co ... tatistics/

Both ranges are expressed in km.

Something as fullRange does not exist, so you have to create that yourself.

Regards
akamming
Posts: 368
Joined: Friday 17 August 2018 14:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Volvo EV

Post by akamming »

This plug-in Only works for full ev…
HvdW
Posts: 612
Joined: Sunday 01 November 2015 22:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Twente
Contact:

Re: Python Plugin: Volvo EV

Post by HvdW »

I just found it using the 'secret formula' domoticz.devices(252).dump() or domoticz.devices('Volvo-fullRange').dump()
The secret word is 'state'.

Code: Select all

2024-01-03 15:25:00.330 Status: dzVents: device> idx: 252
2024-01-03 15:25:00.330 Status: dzVents: device> sValue: 442.3
2024-01-03 15:25:00.330 Status: dzVents: device> nValue: 442
2024-01-03 15:25:00.330 Status: dzVents: device> baseType: device
2024-01-03 15:25:00.330 Status: dzVents: device> id: 252
2024-01-03 15:25:00.330 Status: dzVents: device> hardwareTypeValue: 94
2024-01-03 15:25:00.330 Status: dzVents: device> switchTypeValue: 0
2024-01-03 15:25:00.330 Status: dzVents: device> name: Volvo-fullRange
2024-01-03 15:25:00.330 Status: dzVents: device> active: false
2024-01-03 15:25:00.330 Status: dzVents: device> sensorValue: 442.3
2024-01-03 15:25:00.330 Status: dzVents: device> sensorUnit: km
2024-01-03 15:25:00.330 Status: dzVents: device> Image: Custom
2024-01-03 15:25:00.330 Status: dzVents: device> _nValue: 442
2024-01-03 15:25:00.330 Status: dzVents: device> changed: false
2024-01-03 15:25:00.331 Status: dzVents: device> signalLevel: 12
2024-01-03 15:25:00.331 Status: dzVents: device> isSecurity: false
2024-01-03 15:25:00.331 Status: dzVents: device> isHardware: false
2024-01-03 15:25:00.331 Status: dzVents: device> rawData:
2024-01-03 15:25:00.331 Status: dzVents: device> 1: 442.3
2024-01-03 15:25:00.331 Status: dzVents: device> isScene: false
2024-01-03 15:25:00.331 Status: dzVents: device> deviceId: VIN number
2024-01-03 15:25:00.331 Status: dzVents: device> unit: 2
2024-01-03 15:25:00.331 Status: dzVents: device> description:
2024-01-03 15:25:00.331 Status: dzVents: device> hardwareId: 13
2024-01-03 15:25:00.331 Status: dzVents: device> isTimer: false
2024-01-03 15:25:00.331 Status: dzVents: device> deviceSubType: Custom Sensor
2024-01-03 15:25:00.331 Status: dzVents: device> hardwareID: 13
2024-01-03 15:25:00.331 Status: dzVents: device> lastUpdate: 2024-01-03 02:40:46
2024-01-03 15:25:00.331 Status: dzVents: device> _state: 442.3
2024-01-03 15:25:00.331 Status: dzVents: device> isDevice: true
2024-01-03 15:25:00.331 Status: dzVents: device> hardwareType: Volvo Recharge (Full EV)
2024-01-03 15:25:00.331 Status: dzVents: device> state: 442.3
2024-01-03 15:25:00.331 Status: dzVents: device> switchType: On/Off
2024-01-03 15:25:00.331 Status: dzVents: device> inActive: true
2024-01-03 15:25:00.331 Status: dzVents: device> sensorType: 1
2024-01-03 15:25:00.331 Status: dzVents: device> isHTTPResponse: false
2024-01-03 15:25:00.331 Status: dzVents: device> bState: false
2024-01-03 15:25:00.331 Status: dzVents: device> protected: false
2024-01-03 15:25:00.331 Status: dzVents: device> customImage: 0
2024-01-03 15:25:00.331 Status: dzVents: device> timedOut: true
2024-01-03 15:25:00.331 Status: dzVents: device> hardwareName: Volvo
2024-01-03 15:25:00.331 Status: dzVents: device> _data:
2024-01-03 15:25:00.331 Status: dzVents: device> rawData:
2024-01-03 15:25:00.331 Status: dzVents: device> 1: 442.3
2024-01-03 15:25:00.331 Status: dzVents: device> switchType: On/Off
2024-01-03 15:25:00.331 Status: dzVents: device> lastLevel: 0
2024-01-03 15:25:00.331 Status: dzVents: device> id: 252
2024-01-03 15:25:00.331 Status: dzVents: device> deviceID: VIN number
2024-01-03 15:25:00.331 Status: dzVents: device> image:
2024-01-03 15:25:00.331 Status: dzVents: device> lastUpdate: 2024-01-03 02:40:46
2024-01-03 15:25:00.331 Status: dzVents: device> iconNumber: 0
2024-01-03 15:25:00.331 Status: dzVents: device> switchTypeValue: 0
2024-01-03 15:25:00.331 Status: dzVents: device> protected: false
2024-01-03 15:25:00.331 Status: dzVents: device> subType: Custom Sensor
2024-01-03 15:25:00.331 Status: dzVents: device> timedOut: true
2024-01-03 15:25:00.331 Status: dzVents: device> description:
2024-01-03 15:25:00.331 Status: dzVents: device> changed: false
2024-01-03 15:25:00.331 Status: dzVents: device> batteryLevel: 255
2024-01-03 15:25:00.331 Status: dzVents: device> data:
2024-01-03 15:25:00.331 Status: dzVents: device> _state: 442.3
2024-01-03 15:25:00.331 Status: dzVents: device> protected: false
2024-01-03 15:25:00.331 Status: dzVents: device> unit: 2
2024-01-03 15:25:00.331 Status: dzVents: device> icon: Custom
2024-01-03 15:25:00.331 Status: dzVents: device> hardwareName: Volvo
2024-01-03 15:25:00.331 Status: dzVents: device> _nValue: 442
2024-01-03 15:25:00.331 Status: dzVents: device> customImage: 0
2024-01-03 15:25:00.331 Status: dzVents: device> sensorUnit: km
2024-01-03 15:25:00.331 Status: dzVents: device> Image: Custom
2024-01-03 15:25:00.331 Status: dzVents: device> hardwareTypeValue: 94
2024-01-03 15:25:00.331 Status: dzVents: device> hardwareType: Volvo Recharge (Full EV)
2024-01-03 15:25:00.331 Status: dzVents: device> hardwareID: 13
2024-01-03 15:25:00.331 Status: dzVents: device> sensorType: 1
2024-01-03 15:25:00.331 Status: dzVents: device> signalLevel: 12
2024-01-03 15:25:00.331 Status: dzVents: device> deviceType: General
2024-01-03 15:25:00.331 Status: dzVents: device> name: Volvo-fullRange
2024-01-03 15:25:00.331 Status: dzVents: device> baseType: device
2024-01-03 15:25:00.331 Status: dzVents: device> _adapters:
2024-01-03 15:25:00.331 Status: dzVents: device> 1: Custom sensor device adapter
2024-01-03 15:25:00.331 Status: dzVents: device> isGroup: false
2024-01-03 15:25:00.331 Status: dzVents: device> deviceType: General
2024-01-03 15:25:00.331 Status: dzVents: device> isVariable: false
2024-01-03 15:25:00.331 Status: dzVents: device> icon: Custom
2024-01-03 15:25:00.331 Status: dzVents: Debug: Volvo XC40 range: nil
The full dzvents code:

Code: Select all

return {
	on = {
		timer = {'every 15 minutes'},
	},
	data = {},
	    logging = {
        level = domoticz.LOG_DEBUG,
        -- change LOG_DEBUG to LOG_ERROR to stop logging in the log
        marker = 'Volvo XC40 range',
    },
	execute = function(domoticz, triggeredItem)
	    local range = domoticz.devices('Volvo-fullRange').state
	    local temp = domoticz.devices('Buitentemperatuur').temperature
        domoticz.log('De Volvo range is       : ' .. range, domoticz.LOG_DEBUG)
        domoticz.log('De buitentemperatuur is : ' .. temp, domoticz.LOG_DEBUG)
        domoticz.devices('Reikweidte').updateTempHum(temp, range)
        -- domoticz.devices(252).dump()
        domoticz.log(domoticz.devices('Volvo-fullRange').dump(),domoticz.LOG_DEBUG)
	end
}
I want to create a graph with temperature and range to find out the dependency. Just for fun.
Bugs bug me.
HvdW
Posts: 612
Joined: Sunday 01 November 2015 22:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Twente
Contact:

Re: Python Plugin: Volvo EV

Post by HvdW »

Hi @akamming
There is an option that hasn't been added in de python plugin yet.
It is reading and setting charging amperage.
I'd be very happy if it could be added.
Would serve well to balance PV output and home power consumption where the car can be charged from excess solar energy.
Bugs bug me.
akamming
Posts: 368
Joined: Friday 17 August 2018 14:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Volvo EV

Post by akamming »

HvdW wrote: Sunday 28 January 2024 20:53 Hi @akamming
There is an option that hasn't been added in de python plugin yet.
It is reading and setting charging amperage.
I'd be very happy if it could be added.
Would serve well to balance PV output and home power consumption where the car can be charged from excess solar energy.
Please look at the documentation: the plug-in is Only a wrapper around the API. If a feature is not present in the API I cannot make it available in the plug-in

API docs can be found Here: https://developer.volvocars.com/apis/
Last edited by akamming on Monday 29 January 2024 19:35, edited 1 time in total.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest