From b44a29f060112b6c491f3dadc8807c3ead4c67e5 Mon Sep 17 00:00:00 2001 From: Linus Dietz <45101649+Dielee@users.noreply.github.com> Date: Sun, 18 Jun 2023 14:31:34 +0200 Subject: [PATCH 1/5] Change build to new release --- .github/workflows/build_image.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_image.yml b/.github/workflows/build_image.yml index d7153fc..10f5317 100644 --- a/.github/workflows/build_image.yml +++ b/.github/workflows/build_image.yml @@ -10,9 +10,9 @@ name: Create and publish a Docker image on: - push: - branches: ['main'] - + release: + types: [created] + env: REGISTRY: ghcr.io IMAGE_NAME: ${{ github.repository }} From 2f3ca63b60ee78e4269c7f02da1b92e613ddd813 Mon Sep 17 00:00:00 2001 From: Linus Dietz <45101649+Dielee@users.noreply.github.com> Date: Sun, 18 Jun 2023 15:30:45 +0200 Subject: [PATCH 2/5] Update build_image.yml --- .github/workflows/build_image.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_image.yml b/.github/workflows/build_image.yml index 10f5317..f1a21f1 100644 --- a/.github/workflows/build_image.yml +++ b/.github/workflows/build_image.yml @@ -19,7 +19,7 @@ env: jobs: build-and-push-image: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 permissions: contents: read packages: write From 5139d8460293b2cc711b2d03e6a9ea3600314c05 Mon Sep 17 00:00:00 2001 From: Linus Dietz <45101649+Dielee@users.noreply.github.com> Date: Sun, 18 Jun 2023 21:33:23 +0200 Subject: [PATCH 3/5] Add install instructions --- README.md | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f3461ab..c253e9e 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,21 @@ -# volvo2mqtt -Home Assistant addon for connecting AAOS Volvos +# Volvo2Mqtt + +This component establishes a connection between the newer AAOS Volvo cars and Home Assistant via MQTT.
+Maybe this component works also with other Volvo cars. Please try out the native Volvo [integration](https://www.home-assistant.io/integrations/volvooncall/) before using this component! If the native component doesn't work for your car, try this mqtt bridge. + +## Setup + +Just install this addon with the following command. +Please note to fill in your settings inside the environment variables. + +`docker run -e CONF_updateInterval=300 -e CONF_babelLocale='de' -e CONF_mqtt='@json {"broker": "", "username": "", "password": ""}' -e CONF_volvoData='@json {"username": "", "password": "", "vin": ""}' -e TZ='' --name volvo2mqtt ghcr.io/dielee/volvo2mqtt:main` + +Here is what every option means: + +| Name | Type | Default | Description | +| -------------------- | :-------: | :----------: | --------------------------------------------------------------- | +| `updateInterval` | `int` | **required** | Updateintervall in seconds. | +| `babelLocale` | `string` | **required** | Locale for date Format | +| `mqtt` | `json` | **required** | Broker = Mqtt Broker IP / Username and Passwort are optional! | +| `volvoData` | `json` | **required** | Username and password are required. Car vin is optional. If no vin is provided, the system will always use the first vehicle in API. | +| `TZ` | `string` | | Container timezone eg "Europe/Amsterdam" | From 9eba31804d6319d3df92ca60408ed76aed401469 Mon Sep 17 00:00:00 2001 From: Linus Dietz <45101649+Dielee@users.noreply.github.com> Date: Sun, 18 Jun 2023 21:34:12 +0200 Subject: [PATCH 4/5] Add TZ to default sample --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c253e9e..45e2a62 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Maybe this component works also with other Volvo cars. Please try out the native Just install this addon with the following command. Please note to fill in your settings inside the environment variables. -`docker run -e CONF_updateInterval=300 -e CONF_babelLocale='de' -e CONF_mqtt='@json {"broker": "", "username": "", "password": ""}' -e CONF_volvoData='@json {"username": "", "password": "", "vin": ""}' -e TZ='' --name volvo2mqtt ghcr.io/dielee/volvo2mqtt:main` +`docker run -e CONF_updateInterval=300 -e CONF_babelLocale='de' -e CONF_mqtt='@json {"broker": "", "username": "", "password": ""}' -e CONF_volvoData='@json {"username": "", "password": "", "vin": ""}' -e TZ='Europe/Berlin' --name volvo2mqtt ghcr.io/dielee/volvo2mqtt:main` Here is what every option means: @@ -18,4 +18,4 @@ Here is what every option means: | `babelLocale` | `string` | **required** | Locale for date Format | | `mqtt` | `json` | **required** | Broker = Mqtt Broker IP / Username and Passwort are optional! | | `volvoData` | `json` | **required** | Username and password are required. Car vin is optional. If no vin is provided, the system will always use the first vehicle in API. | -| `TZ` | `string` | | Container timezone eg "Europe/Amsterdam" | +| `TZ` | `string` | | Container timezone eg "Europe/Berlin" | From e690f604337b8e11056ef913c9ad69892552baf0 Mon Sep 17 00:00:00 2001 From: Linus Dietz <45101649+Dielee@users.noreply.github.com> Date: Mon, 19 Jun 2023 09:35:03 +0200 Subject: [PATCH 5/5] Try to add arm and arm64 build support --- .github/workflows/build_image.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build_image.yml b/.github/workflows/build_image.yml index f1a21f1..d17566a 100644 --- a/.github/workflows/build_image.yml +++ b/.github/workflows/build_image.yml @@ -19,28 +19,31 @@ env: jobs: build-and-push-image: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest permissions: contents: read packages: write steps: - name: Checkout repository - uses: actions/checkout@v3 - + uses: actions/checkout@v3 + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + with: + platforms: 'arm64,arm' + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 - name: Log in to the Container registry uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Extract metadata (tags, labels) for Docker id: meta uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - - name: Build and push Docker image uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4 with: