Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation w/ Containerized Home Assistant #22

Closed
sethgho opened this issue Nov 26, 2022 · 6 comments
Closed

Installation w/ Containerized Home Assistant #22

sethgho opened this issue Nov 26, 2022 · 6 comments
Assignees
Labels
enhancement New feature or request

Comments

@sethgho
Copy link

sethgho commented Nov 26, 2022

Hi! I'm still pretty new to the Home Assistant ecosystem. The installation instructions say to install via Add-Ons. I'm running Home Assistant in a container, so the add-on system isn't available. Would it still be possible to install FiatChamp? I'm assuming I could spin it up in a separate adjacent container like I do zwave-js-ui and esphome, yea?

I'd like to give this a go and test it against a Ram truck, if possible.

@wubbl0rz
Copy link
Owner

the container reads information provided by the supervisor at startup. mqtt server, token, options etc. https://github.com/wubbl0rz/FiatChamp/blob/master/FiatChampAddon/run.sh

this will fail if its not running as a addon. so i do not think the container will work standalone. to make it work standalone you would need to compile the .net program, build your own container and then provide all the environment variables normally set by the home assistant supervisor. so in theory it works but i would advise against it. maybe i should build a standalone container and offer it as an alternative install method.

@wubbl0rz wubbl0rz self-assigned this Nov 26, 2022
@wubbl0rz wubbl0rz added the enhancement New feature or request label Nov 26, 2022
wubbl0rz added a commit that referenced this issue Dec 3, 2022
wubbl0rz added a commit that referenced this issue Dec 3, 2022
wubbl0rz added a commit that referenced this issue Dec 3, 2022
@wubbl0rz
Copy link
Owner

wubbl0rz commented Dec 3, 2022

running as standalone is supported in 3.0.4 which will be released soon 😄

example for docker compose:

version: "3.9"                                                                                                                                     
services:
  FiatChamp:
    image: ghcr.io/wubbl0rz/image-amd64-fiat-champ:3.0.4
    environment:
      - 'STANDALONE=True'
      - 'FiatChamp_FiatUser=user@example.com'
      - 'FiatChamp_FiatPw=123456'
      - 'FiatChamp_FiatPin=9999'
      - 'FiatChamp_SupervisorToken=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiI5NGFmMGJhZTFjYTQ0ODk2YWEzYjgzMGI5YmE4NGQxNiIsImlhdCI6MTY3MDA3Mjc
      - 'FiatChamp_StartDelaySeconds=1'
      - 'FiatChamp_Region=Europe'
      - 'FiatChamp_Brand=Fiat'
      - 'FiatChamp_CarUnknownLocation=Unknown'
      - 'FiatChamp_ConvertKmToMiles=False'
      - 'FiatChamp_MqttUser=mqtt'
      - 'FiatChamp_MqttPw=123456'
      - 'FiatChamp_MqttServer=192.168.2.132'
      - 'FiatChamp_MqttPort=1883'

@wubbl0rz
Copy link
Owner

wubbl0rz commented Dec 3, 2022

3.0.4 can now be run as standalone container. see example above. i tried it locally and it works but maybe everything. if you have any problems just make a new issue 😄

@wubbl0rz wubbl0rz closed this as completed Dec 3, 2022
@SpykeKrepshaw
Copy link

Did you ever get this working? I'm not sure how to set up a stand-alone version. Any help would be appreciated.

@wubbl0rz
Copy link
Owner

@SpykeKrepshaw how does your docker compose file look ? its really not meant running standalone but should be possible.

@marcobto58
Copy link

marcobto58 commented Sep 11, 2023

HI
Congratulations for the excellent work.
I would like to migrate home assistant from the supervised version (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

portainer.fiatchamp.log

_FiatChamp_logs.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants