-
Notifications
You must be signed in to change notification settings - Fork 2
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
Configure Multiple Cars #20
Comments
Hi christoph, As this is still early development and i don't really have 2 cars to test with i would atm indeed just install the module in 2 separate folders and start it from those 2 folders (Note all config and tokens are saved from where you start so make sure you start from the right path ). and search in the code for the 6060 port and update to something like 6061. If you run into issues let me know, I can put this request on the roadmap to see if i can implement support for multiple cars. Should not be to hard seen i already running with parallel instances. |
I've created two subdirs in my users home and copied the volco4evcc directory and all config into this directory. The start failed:
If I changed the directory before I start to ~/XC90 it works. |
yep forgot about that one that is still static path, its on the back log to see how linux handles dynamic paths and than migrate all files interactions to dynamic paths. I just realize that the automatic process termination will probably also kill the first instance when the second instance starts. |
How are you cars configured on the volvo site, Is that 2 cars in 1 account or do you have a separate account per car ? |
Yeah i've got both cars in one account. |
let me see what i can do might take a few days |
Both instances are working separately, but if I start the second one in parallel to the first, the first one get's killed. vm-volvo4evcc:~/XC40# ~/XC40/volvo4evcc_XC40.sh vm-volvo4evcc:~/XC90# /root/XC90/volvo4evcc_XC90.sh |
I've changes start.ps1 to have the path of the script in Get-Process, then it's working
|
I have started analysing what is needed for multi car support ( i have assigned a test branch for this development and will keep you posted with progress.), Am i assuming correctly that on the volvo API the only difference is the VIN numbers ? you currently setup this module twice configuring the VIN as the difference. Progress update:
Todo:
|
As what I have seen, yes. That is why I included the VIN in my version (volvo2evcc - which I will remove, when yours is final, since it is the better approach). I used jq in evcc to parse the result for the correct VIN then. soc: |
Looks like we have a first test build for you to test @christoph-ng @jobe39 , Do note you have to remove the old module and log and config files that where created to be able to migrate successfull to this version than rerun config and update evcc yaml to match the cars. Please let me know any bugs asap as i don`t have 2 cars i can only fake my car twice hence it will get the same data from API.
|
That looks good, I'm getting the status of my two cars. Do I have to set the follwing in EVCC?
|
Looking at the yaml code I thing i did fix all the casing meaning you would need to use all lower case for all "value" fields in the JQ queries. Thats some good feedback to use VIN as identifier, but i was actually aiming to not expose any PII data in the module, I know a lot of modules for EVCC as very insecure as they expose all data unencrypted and even credentials. Maybe i can thing of something as a name placeholder that i can add. As this is a beta build i am planning to incorporate all feedback you can give inc some of the fixes from the main branch and then release it as a 2.0 of the addon. |
I've tested connection of both cars and do a summarize of the events. It seems that the detection after connection a new car is quite slow and takes some minutes. You can see the protocoll of my testing above. There is no refresh after the car gets disconnected and I got some errors in evcc. Please have a look, perhaps it helps you. The timestamps in volvo4evcc are not in my local time 09:07 => 10:07. You have to add one hour to my times and the evcc times. -> Car1 Connected
-> Disconnect Car1 on 10:17
-> ReConnect Car1 10:21
Timestamp of chargingConnectionStatus hasn't changed to 10:21. It seems that volvo4evv does not recognize the reconnect
10:27: 10:38: 11:13: Car1 gets disconnected in Volvo4evcc, this is the event of 10:24
11:14: Car0 connected
11:15 GuestCar shown in EVCC
11:18: EVCC gets the info that XC40 (CAR0) gets connected - 4 Minutes after connection
|
Thx, So in essence it seems to work but its slow atm , (This is due to the saving of API calls with a single car ) Let me see if i can add some enhanced logic to speed it up without generating excessive API calls. For the EVCC error, no clue here on my end looks like that the messaging part but i don't have enough experience with EVCC to know why that generates , did you have that with other modules ? not sure why it would relate other than using a custom vehicle VS a templated one. but the use the same base YAML |
I have updated the multiplecarsimple branch to include some new logic that should increase detection to under 30 sec. You can inplace upgrade , just copy the files over the folder and restart No support for vehicle name change yet just detection improvements (And multiple loadpoint support) |
Added the dynamic names @christoph-ng |
Do you have any feedback, is everything working better for you now with the updates ? |
Sorry I forgot to reply. Thats fine now, thanks. |
How could I arrange a connection of multiple cars?
If I have to start the script twice, a different port should be specified.
The text was updated successfully, but these errors were encountered: