How do i configure the travel time card ?
Also need help on configuring maps on my dashboard
Did you managed to do this ?
Im also looking for the same soloution but its not answered anywhere
How to solve the problem when trying to install the home assistant addon ? Error message:
Can’t install flobz/psa_car_controller:v3.0.12: 404 Client Error for http+docker://localhost/v1.42/images/flobz/psa_car_controller:v3.0.12/json: Not Found (“No such image: flobz/psa_car_controller:v3.0.12”)
Anyone seeing an issue with the battery charge status being unavailable?
Mine stopped reporting yesterday. I have re-started the psa addon and no change, the status is available from the Peugeot app.
Everything else appears to be reporting correctly…
Check replys from GewoonJaap and sod75
I followed sod75 and it is back working.
Hi, thanks for the amazing work, I had this working at the 1st attempt.
Newbie question: How can I use it in automations? O create a virtual device that can for example be shown in the dashboard, and activated/deactivated to start/stop charge of the car?
It’s work now ?
Waiting your reply
Hey i got also the psa addon working fine and refresh the states
But my (rest) sensors dont refresh and show nothing
Have you a example for me in your yaml? To see differences ?
Same here. Have the addon working again with the new API, states visible and updating in the addon but my sensors haven’t come back and show unavailable. Not sure where to begin?!
I got my addon working but now app doesnt work. It just doesnt get data from the car although it is connected to a car.
So i dont have data in ha.
Hello,
thank you very very much for this powerful add on, I am amazed that there are way more offered possibilities than with the official Peugeot app. That confirms to me they do not care about this part of the world of car right now.
And also for this very simple tutorial how to install it, even a newbie like me succeded in this
Anyway,
I still have some troubles but mainly with the integration in the dashboard part:
- I cannot see all the commands linked to the command_line.yaml… because I simply created it but I did not link it to anything, and I did not find any information about this kind of file. Do I need to add a line in configuration.yaml, like for the sensors.yaml?
- I cannot see the picture of my Peugeot 2008 :(. I did find I think the same on internet, copied it in local/image & even tried to copy it in local/www but no luck, I cannot see it. Should I respect a limit in size?
I have also one question regarding the PSA Car Controller: how does it calculate the costs? Because I never indicated this and when I try to calculate, it is not the one of my personal consumption.
And I may ask a lot but:
I charged at home but also now with a charger at work, because it is cheaper. So the cost is different, so it might be useful to be able to choose between different options of cost in the “charge” panel.
Hi,
I’ve started to configure this plugin for our new Opel Corsa e.
In the login process I got through until the SMS part. I entered my mobile number in the myOpel app… but did not get the SMS.
When calling the curl command to ask for vehicle status, I get this:
curl http://homeassistant:5000/get_vehicleinfo/<VIN>?from_cache=1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>500 Internal Server Error</title>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>
from the addon, and in the addon log I see this:
2024-04-12 16:47:36,336 :: ERROR :: get_vehicle_info: ApiException: (404)
Reason: Not Found
HTTP response headers: HTTPHeaderDict({'Connection': 'close', 'Date': 'Fri, 12 Apr 2024 14:47:36 GMT', 'Content-Type': 'application/hal+json', 'Expires': '0', 'Cache-Control': 'no-store, no-cache, must-revalidate, private', 'Set-Cookie': 'rememberMe=deleteMe; Path=/; Max-Age=0; Expires=Thu, 11-Apr-2024 14:47:36 GMT, JSESSIONID=<ID>; path=/, PSACountry=DE; Domain=.groupe-psa.com; Path=/', 'Strict-Transport-Security': 'max-age=15724800; includeSubDomains', 'X-Global-Transaction-ID': '3248667966194988bf6b7a0d'})
HTTP response body: {"uuid":"id","code":40400,"message":"Not Found: We didn't find the status for this vehicle.","timestamp":"2024-04-12T14:47:36.289Z"}
Looks to me, that the authentication did not went through…
Now, do I need the payed service to get the possibility to “talk” to my car via that REST API?
What do I miss to register correctly?
Thanks!
Update:
I’m connected, even without the SMS verification. The key was (I think) using the --remote-disable option when starting the addon.
But, no charging status available:
2024-04-12 22:21:55,063 :: ERROR :: Charge control not setup check your PSACC configuration and logs
assuming, that means, it is only available when activating this service?
for 80 € / year ?!?
Can someone confirm this?
Thanks!
Hi,
Thanks for the integration, everything works fine!
I am driving a PHEV. How can I pull the range on gas from the API data? Currently, it only shows the range of the electric motor.
Yes, you can get those data. Use the Rest interface (“get_vehicleinfo”) psa_car_controller/docs/psacc_api.md at 1179ec39aa5be6f1ecdf7138751e5c31e32f66e1 · flobz/psa_car_controller · GitHub
@mrrodge did you manage to fix this in the end?
I have the same issue, addon works fine but all my sensors are “unavailable”
So my PSA Car controller addon stopped working 2 months ago, so i fully reinstalled the addon, and the addon now works, but I’m not able to setup my sensors correctly anymore, they all show UNAVAILABLE, so I might be doing something wrong.
Please see below my YAML code that I use in the config.yaml.
It might be the IP that I’m using (my HA IP address) is the issue? I’ve read somewhere the IP to use is not the HA IP.
THx!
rest:
===============================================================
PSA Rest Entities
-
resource: “http://TheIPofMyHomeAssistant:5000/charge_control?vin=MycarsVIN”
scan_interval: 60
sensor:- name: “PSA Charge Control”
unique_id: psa_charge_control
value_template: ‘OK’
json_attributes:- _next_stop_hour
- percentage_threshold
- name: “PSA Charge Control”
-
resource: “http://TheIPofMyHomeAssistant:5000/get_vehicleinfo/MycarsVIN”
scan_interval: 60
sensor:- name: PSA
unique_id: psa
value_template: ‘OK’
json_attributes: op- energy
- timed_odometer
- battery
- last_position
- preconditionning
- name: PSA
rest_command:
===============================================================
PSA Rest commands
psa_wakeup:
url: “http://TheIPofMyHomeAssistant:5000/wakeup/MycarsVIN”
psa_climate_on:
url: “http://TheIPofMyHomeAssistant:5000/preconditioning/MycarsVIN/1”
psa_climate_off:
url: “http://TheIPofMyHomeAssistant:5000/preconditioning/MycarsVIN/0”
psa_change_charge_threshold:
url: “http://TheIPofMyHomeAssistant:5000/charge_control?vin=MycarsVIN&percentage={{ states(‘input_number.psa_charging_threshold’) | int }}”
method: GET
-
sensor:
===============================================================
PSA Sensors
-
name: PSA Charging Status
unique_id: psa_charging_status
state: >-
{{ states.sensor.psa.attributes[“energy”][0][“charging”][“status”] }} -
name: PSA Battery Level
unique_id: psa_battery_level
state: >-
{{ state_attr(‘sensor.psa’, ‘energy’)[0].level }}
unit_of_measurement: “%”
device_class: battery -
name: PSA Mileage
unique_id: psa_mileage
state: ‘{{ (states.sensor.psa.attributes[“timed_odometer”][“mileage”] * 1) | round(0,“floor”) }}’
unit_of_measurement: “KM”
icon: ‘mdi:road-variant’
device_class: distance
state_class: total_increasing -
name: PSA Range
unique_id: psa_range
state: ‘{{ (states.sensor.psa.attributes[“energy”][0][“autonomy”] * 1) | round(0,“floor”) }}’
unit_of_measurement: “KM”
icon: ‘mdi:map-marker-distance’
device_class: distance
state_class: measurement -
name: PSA Preconditioning Status
unique_id: psa_preconditioning_status
state: >-
{{ state_attr(‘sensor.psa’, ‘preconditionning’).air_conditioning.status }} -
name: PSA Charging Mode
unique_id: psa_charging_mode
state: >-
{{ state_attr(‘sensor.psa’, ‘energy’)[0].charging.charging_mode }}
icon: mdi:lightning-bolt -
name: PSA Charge Rate
unique_id: psa_charge_rate
state: >-
{{ state_attr(‘sensor.psa’, ‘energy’)[0].charging.charging_rate }}
unit_of_measurement: “mph”
icon: mdi:speedometer
device_class: speed
state_class: measurement -
name: “PSA Next Stop Time”
unique_id: psa_stop_hour
state: >-
{{ state_attr(‘sensor.psa_charge_control’,‘_next_stop_hour’) }} -
name: “PSA Charge Threshold”
unique_id: psa_charge_threshold
state: >-
{{ state_attr(‘sensor.psa_charge_control’,‘percentage_threshold’) }}
unit_of_measurement: “%”
state_class: measurement
-
-
binary_sensor:
===============================================================
PSA Binary Sensors
-
name: PSA Plugged In
unique_id: psa_plugged_in
state: >-
{{ state_attr(‘sensor.psa’, ‘energy’)[0].charging.plugged }}
device_class: connectivity -
name: PSA Position
unique_id: psa_position
state: >-
{{ state_attr(‘sensor.psa’, ‘kinetic’).moving }}
device_class: moving
attributes:
latitude: “{{ state_attr(‘sensor.psa’, ‘last_position’).geometry.coordinates[1] }}”
longitude: “{{ state_attr(‘sensor.psa’, ‘last_position’).geometry.coordinates[0] }}”
-
I did - it turned out to be the port settings from what I remember; I had to set 5000 again in the add-on config. When I did that it all sprung back to life.
Hi, I wanted to ask a question: is the value of scan_interval and timeout in seconds?
I have the (almost) same issue. Only get SOC in the dashboard, nothing else. Did you resolve your issue?
Hi,
No, but I didn’t tried. Maybe in meanwhile something changed… but I don’t know.