flobz / psa_car_controller

Control psa car with connected_car v4 API.
GNU General Public License v3.0
403 stars 210 forks source link

Unable to access to endpoints to configure sensors in HA #388

Closed marcorizzi closed 2 years ago

marcorizzi commented 2 years ago

I installed this addon via HA. PSA is working and I'm trying to configure sensors. The point is how to get the address of the contaner if the log there is "http://0.0.0.0:5000/"

Question are:

I'm sorry but I'm confused on how to configure sensors

Environment (please complete the following information):

Additional context Add any other context about the problem here.

kurim commented 2 years ago

Did you enable Port 5000 in HA, like: image

Then this should be work: http://localhost:5000/get_vehicleinfo/ (i use it in node-red)

marcorizzi commented 2 years ago

I found the solution. Due to the configuration of docker, the PSA container is not mapped to public network but only on the private network. Inspecting PSA container in docker I found the internal IP address and I'm now able to configure sensors. In this way only HA can access to PSA endpoints and they are not public available on my LAN.

Anyway, the log entry with http://0.0.0.0:5000 seems to be an error.