wubbl0rz / FiatChamp

FIAT (uconnect) Home Assistant Addon 🚗
https://github.com/wubbl0rz/FiatChamp
MIT License
98 stars 23 forks source link

fiatchamp does not work in a standalone container #59

Open marcobto58 opened 1 year ago

marcobto58 commented 1 year ago

HI Congratulations for the excellent work. I would like to migrate home assistant from the supervised version (where it works perfectly) to the one that uses containers. Unfortunately I can't if I can't get Fiatchamp to work I tried using the example configuration. I generated the token but I get this error:

ERROR: Call failed. Resource temporarily unavailable (supervisor:80): GET http://supervisor/core/api/states

see logs attached

Thanks in advance

portainer.fiatchamp.log

_FiatChamp_logs.txt

Originally posted by @marcobto58 in https://github.com/wubbl0rz/FiatChamp/issues/22#issuecomment-1713751717

wubbl0rz commented 1 year ago

i think you need to set these two environment variables in your docker config.

export FiatChamp_HomeAssistantUrl="https://hass.example.com"

and the token for the home assistant api.

export FiatChamp_SupervisorToken="jhiswgfrhjsfgdhjsgfhjfgsjhfghjfgshjgfhjfgdhjfgdhjgdf"

im not really sure :thinking: the problem is the standalone mode was not planned to be used and exists only that i can test it locally without loading a new addon in home assistant everytime. but im working on the next version which can be used both as standalone or as home assistant addon. with its own minimal webinterface for configuration.

marcobto58 commented 1 year ago

Thanks for the reply with the simple url of home assistant (without references to the supervisor path) it now works!!! Great!! I look forward to the next standalone version.

Thank you

Marco