psa_car_controller icon indicating copy to clipboard operation
psa_car_controller copied to clipboard

config.ini accessible from home assistant

Open pika28 opened this issue 3 years ago • 9 comments

Hello,

From what I understand, I don't have access to the config.ini file when HA is supervised. Would it be possible to be able to modify the variables in the config.ini file from the addon configuration in home assistant?

Also, the command http://localhost:5000/wakeup/YOURVIN does not work on my end.

Thanks

pika28 avatar Oct 05 '22 19:10 pika28

Hello pika28, You find the solution for the HA addon in this discussion: https://github.com/flobz/psacc-ha/issues/21

duanra08 avatar Oct 06 '22 04:10 duanra08

Hello,

I managed to move forward thanks to you with this new addon that allows you to use docker commands.

I manage to make a "docker ps" and I finally see psa car controller.

Now how to extract or modify the config.ini file?

Thanks

pika28 avatar Oct 06 '22 05:10 pika28

I tried this command but I get access denied : docker exec -it addon_abcb0dfb_psacc /bin/sh -c /psa_car_controller

pika28 avatar Oct 06 '22 06:10 pika28

Pika, the good command is: docker exec -it "Names or Container ID" /bin/bash After that, you can navigate in the container folders

duanra08 avatar Oct 06 '22 07:10 duanra08

I finally found this command.

I did in order: apt-get update apt-get install vim vim /

I then modified the config.ini file present in data but nothing changes.

pika28 avatar Oct 06 '22 08:10 pika28

have you restart the container?

duanra08 avatar Oct 06 '22 08:10 duanra08

yes the container and HAOS

pika28 avatar Oct 06 '22 08:10 pika28

what parameter did you want to change?

duanra08 avatar Oct 06 '22 08:10 duanra08

[General] 
currency = ~B
minimum trip lenght = 1 
lenght unit = km 

[Electricity config] 
day price = 0.17
night price = 0.17 
night hour start = 23h00 
night hour end = 6h00 

pika28 avatar Oct 06 '22 08:10 pika28

I close this PR because its a discussion, not a PR.

flobz avatar Oct 31 '22 18:10 flobz