Skip to content

401 Unauthorized #57

Description

@AymericLeFeyer

Hello !
I have successfully installed PSA Car Controller via HA Addons, and it's working
When I try to add sensors, I have a 401 Unauthorized error, because of cookie "ingress_session" (I think)
What can I do to fix my issue ?

PSA Car Controller

Image

CURL Without cookie

Image

CURL With cookie

Image

Home Assistant

For debugging, I set value_template: "{{ value | tojson }}"

- platform: rest
  name: peugeot_3008
  resource: ip/get_vehicleinfo/vin?from_cache=1
  scan_interval: 60
  timeout: 30
  value_template: "{{ value | tojson }}"
  json_attributes:
    - energy
    - timed_odometer
    - battery

And I have that
Image

Should I set the cookie by hand ? I think it will expires soon ...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions