Skip to content

Commit 15766e3

Browse files
authored
Hassio: updated documentation (#740)
1 parent ac4da0d commit 15766e3

File tree

2 files changed

+213
-25
lines changed

2 files changed

+213
-25
lines changed

docs/installation/home-assistant.mdx

Lines changed: 106 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,29 @@
22
sidebar_position: 7
33
---
44

5+
import Tabs from "@theme/Tabs";
6+
import TabItem from "@theme/TabItem";
7+
58
# Home Assistant Addon
69

7-
:::important Wichtig
10+
:::info Wichtig
811
Das evcc Home Assistant Addon ist eine Community Integration und wird "noch" nicht offiziell von den evcc Maintainern unterstützt.
912
Der Grund dafür ist, dass im Fehlerfall wichtige Daten nicht einfach bereitgestellt werden können (fehlende `evcc cli`).
1013
:::
1114

15+
:::caution Datenmigration
16+
Bitte beachte, dass wir seit dem 16.02.2025 mit der Version 0.200.1 die Pfade im Addon geändert haben, um mit der [Vorgabe](https://developers.home-assistant.io/blog/2023/11/06/public-addon-config/) von Home Assistant konsistent zu sein.
17+
18+
Ab sofort werden also folgende Pfade im Addon verbunden:
19+
20+
- `/homeassistant/` -> zeigt in Home Assistant auf `/homeassistant/` bzw. `/config/`.
21+
- `/config/`-> zeigt in Home Assistant auf `/addon_configs/49686a9f_evcc/`.
22+
23+
Falls du von einer alten Version updatest, wird Deine Konfigurationsdatei automatisch in das neue Verzeichnis kopiert.
24+
Die Datenbank kopieren wir nur, wenn sie ebenfalls in `/config/` lag. Falls du sie in `/data/` hattest, bleibt sie dort.
25+
Den alten Dateien fügen wir `.migrated` an. Diese können dann von dir händisch gelöscht werden.
26+
:::
27+
1228
Diese Anleitung beschreibt die Installation von evcc als Home Assistant Addon.
1329
Im Gegensatz zur [Linux-Installation](./linux) oder [Docker-Installation](./docker) benötigst du hier kein Kommandozeilenwissen.
1430

@@ -20,15 +36,44 @@ Siehe [Home Assistant Dokumentation](https://www.home-assistant.io/installation/
2036

2137
## Installation
2238

23-
1. Klicke auf **Einstellungen****Addons****Addon Store**
24-
2. Klicke auf die **drei Punkte****Repositories**
25-
3. Füge die Repository-URL ein und klicke auf **Hinzufügen**
26-
```
27-
https://github.com/evcc-io/hassio-addon
28-
```
29-
4. Webseite neu laden
30-
5. Finde das Addon **evcc** und klicke es an.
31-
6. Klicke auf die Schaltfläche **Installieren**
39+
<Tabs groupId="release-type">
40+
<TabItem value="Release" label="Release" default>
41+
Die aktuelle stabile Version.
42+
43+
1. Repository automatisch hinzufügen: Klicke auf den nachfolgenden Button und dann auf **Open link**, dann auf **Hinzufügen**.
44+
[![Open your Home Assistant instance and show the add add-on repository dialog with a specific repository URL pre-filled.](https://my.home-assistant.io/badges/supervisor_add_addon_repository.svg)](https://my.home-assistant.io/redirect/supervisor_add_addon_repository/?repository_url=https%3A%2F%2Fgithub.com%2Fevcc%2Fhassio-addon)
45+
2. Repository manuell hinzufügen:
46+
1. Klicke auf **Einstellungen****Addons****Addon Store**
47+
2. Klicke auf die **drei Punkte****Repositories**
48+
3. Füge die Repository-URL ein und klicke auf **Hinzufügen**
49+
```
50+
https://github.com/evcc-io/hassio-addon
51+
```
52+
3. Webseite neu laden
53+
4. Finde das Addon **evcc** und klicke es an
54+
5. Klicke auf die Schaltfläche **Installieren**
55+
56+
</TabItem>
57+
<TabItem value="Nightly" label="Nightly">
58+
Die aktuelle Entwicklerversion. Täglich aktualisiert. Kann instabil sein.
59+
Kann zwar parallel zur Release Version installiert werden, aber es kann immer nur eine Version gleichzeitig laufen.
60+
Falls du das Nightly nutzt, ändern sich auch die in dieser Anleitung genannten Pfade bzw. Docker Container Namen, d.h. statt `evcc` muss `evcc-nightly` verwendet werden.
61+
62+
1. Repository automatisch hinzufügen: Klicke auf den nachfolgenden Button und dann auf **Open link**, dann auf **Hinzufügen**.
63+
[![Open your Home Assistant instance and show the add add-on repository dialog with a specific repository URL pre-filled.](https://my.home-assistant.io/badges/supervisor_add_addon_repository.svg)](https://my.home-assistant.io/redirect/supervisor_add_addon_repository/?repository_url=https%3A%2F%2Fgithub.com%2Fevcc%2Fhassio-addon)
64+
2. Repository manuell hinzufügen:
65+
1. Klicke auf **Einstellungen****Addons****Addon Store**
66+
2. Klicke auf die **drei Punkte****Repositories**
67+
3. Füge die Repository-URL ein und klicke auf **Hinzufügen**
68+
```
69+
https://github.com/evcc-io/hassio-addon
70+
```
71+
3. Webseite neu laden
72+
4. Finde das Addon **evcc (nightly)** und klicke es an
73+
5. Klicke auf die Schaltfläche **Installieren**
74+
75+
</TabItem>
76+
</Tabs>
3277

3378
## Konfigurationsdatei
3479

@@ -45,13 +90,62 @@ Gehe zum Menü **Konfiguration** und wähle dein Arbeitsverzeichnis aus (Beispie
4590

4691
Lasse den Abschnitt Netzwerk unverändert.
4792

48-
Lege eine Konfigurationsdatei `evcc.yaml` in deinem Home Assistant-Stammkonfigurationsordner (`/homeassistant`) an.
49-
Unter [Konfiguration](./configuration) findest du eine Anleitung, wie du diese erstellen kannst.
93+
Lege eine leere Konfigurationsdatei `evcc.yaml` in deinem Home Addon-Stammkonfigurationsordner (`/addon_configs/49686a9f_evcc`) an.
94+
Falls dieser Ordner noch nicht exisiert, erstelle ihn manuell.
95+
96+
Um die Konfigurationsdatei anzulegen bzw. zu editieren, hast du verschiedene Möglichkeiten, hier ein paar zur Auswahl:
97+
- [Visual Studio Code](https://github.com/hassio-addons/addon-vscode), in Visual Studio Code wähle das Hamburger-Menü oben links aus und wähle "File", "Open Folder...", select `/addon_configs/49686a9f_evcc`
98+
- [File Editor](https://github.com/home-assistant/addons/tree/master/configurator), stelle sicher, dass Du die Option "Enforce Basepath" in der Addon Konfiguration deaktiviert hast, starte das Addon neu und navigiere nach `/addon_configs/49686a9f_evcc`
99+
- [Advanced SSH & Web Terminal](https://github.com/hassio-addons/addon-ssh), navigiere nach `/addon_configs/49686a9f_evcc` und verwende z.B. nano
100+
101+
Unter [Konfiguration](./configuration) findest du eine Anleitung, wie du den Inhalt für die `evcc.yaml` erstellen kannst.
102+
103+
Wenn du erstmal mit einer Demo starten möchtest, kopiere den Inhalt dieser [Demo](https://github.com/evcc-io/evcc/blob/master/cmd/demo.yaml) in deine `evcc.yaml` Datei.
104+
105+
Jetzt bist du bereit und kannst das Addon starten.
50106

51107
## Aktualisierungen
52108

53109
Die Aktualisierung auf die neueste Version von evcc ist in den Home Assistant Update-Prozess integriert.
54110

111+
## Erweiterte Tips
112+
113+
Um die folgenden Funktionen auszuführen, benötigst du SSH Zugriff auf Home Assistant. Diesen kannst du z.B. mit dem oben erwähnten SSH Addon bekommen.
114+
115+
- Installiere [Advanced SSH & Web Terminal](https://github.com/hassio-addons/addon-ssh)
116+
- deaktiviere den "secure mode" in der Addon Konfiguration
117+
- Starte das Addon neu
118+
- Öffne die Benutzeroberfläche des Addons
119+
120+
### Wie komme ich an die evcc Datenbank?
121+
122+
Zeige die Dateien in `/data` an:
123+
```sh
124+
docker exec addon_49686a9f_evcc ls -la /data
125+
```
126+
127+
Kopiere die `evcc.db` nach `/addon_configs/49686a9f_evcc`:
128+
```sh
129+
docker cp addon_49686a9f_evcc:/data/evcc.db /addon_configs/49686a9f_evcc/
130+
```
131+
132+
### Wie kann ich das evcc CLI nutzen?
133+
134+
Öffne eine Shell zum evcc Docker Container:
135+
```sh
136+
docker exec -it addon_49686a9f_evcc /bin/sh
137+
```
138+
139+
Starte evcc CLI Befehle (hier als Beispiel `checkconfig`):
140+
```sh
141+
evcc -c /config/evcc.yaml checkconfig
142+
```
143+
144+
Schließe die Shell im evcc Docker Container wenn du fertig bist:
145+
```sh
146+
exit
147+
```
148+
55149
## Nächster Schritt: Integration
56150

57151
Wenn dein System läuft, kannst du dich um die Integration zwischen evcc und Home Assistant kümmern.

i18n/en/docusaurus-plugin-content-docs/current/installation/home-assistant.mdx

Lines changed: 107 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,29 @@
22
sidebar_position: 7
33
---
44

5+
import Tabs from "@theme/Tabs";
6+
import TabItem from "@theme/TabItem";
7+
58
# Home Assistant Addon
69

7-
:::important
10+
:::info
811
The evcc Home Assistant addon is a community integration and is not officially supported by the evcc maintainers.
912
The reason for this is that important data cannot simply be made available in the event of an error (missing `evcc cli`).
1013
:::
1114

15+
:::warning Datamigration
16+
Please note that since February 16, 2025, with version 0.200.1, we have changed the paths in the addon to be consistent with the [guidelines](https://developers.home-assistant.io/blog/2023/11/06/public-addon-config/) of Home Assistant.
17+
18+
From now on, the following paths are mapped in the addon:
19+
20+
- `/homeassistant/` -> points to `/homeassistant/` or `/config/` in Home Assistant.
21+
- `/config/` -> points to `/addon_configs/49686a9f_evcc/` in Home Assistant.
22+
23+
If you are updating from an older version, your configuration file will be automatically copied to the new directory.
24+
We will only copy the database if it was also located in `/config/`. If you had it in `/data/`, it will remain there.
25+
We will append `.migrated` to the old files. These can then be manually deleted by you.
26+
:::
27+
1228
This guide describes the installation of evcc as a Home Assistant addon.
1329
Unlike the [Linux installation](./linux) or [Docker installation](./docker), you don't need command line knowledge here.
1430

@@ -20,19 +36,48 @@ See [Home Assistant Documentation](https://www.home-assistant.io/installation/#a
2036

2137
## Installation
2238

23-
1. Click on **Settings****Addons****Add-on Store**
24-
2. Click on the **three dots****Repositories**
25-
3. Add the repository URL and click **Add**
26-
```
27-
https://github.com/evcc-io/hassio-addon
28-
```
29-
4. Reload the webpage
30-
5. Find the **evcc** addon and click on it
31-
6. Click on the **INSTALL** button
39+
<Tabs groupId="release-type">
40+
<TabItem value="Release" label="Release" default>
41+
The current stable version.
42+
43+
1. Automatically add repository: Click on the following button and then on **Open link**, then on **Add**.
44+
[![Open your Home Assistant instance and show the add add-on repository dialog with a specific repository URL pre-filled.](https://my.home-assistant.io/badges/supervisor_add_addon_repository.svg)](https://my.home-assistant.io/redirect/supervisor_add_addon_repository/?repository_url=https%3A%2F%2Fgithub.com%2Fevcc%2Fhassio-addon)
45+
2. Manually add repository:
46+
1. Click on **Settings****Addons****Add-on Store**
47+
2. Click on the **three dots****Repositories**
48+
3. Add the repository URL and click **Add**
49+
```
50+
https://github.com/evcc-io/hassio-addon
51+
```
52+
3. Reload the webpage
53+
4. Find the **evcc** addon and click on it
54+
5. Click on the **INSTALL** button
55+
56+
</TabItem>
57+
<TabItem value="Nightly" label="Nightly">
58+
The current developer version. Updated daily. May be unstable.
59+
Although it can be installed alongside the release version, only one version can run at a time.
60+
If you use the nightly version, the paths and Docker container names mentioned in this guide will change, i.e., instead of `evcc`, you must use `evcc-nightly`.
61+
62+
1. Automatically add repository: Click on the following button and then on **Open link**, then on **Add**.
63+
[![Open your Home Assistant instance and show the add add-on repository dialog with a specific repository URL pre-filled.](https://my.home-assistant.io/badges/supervisor_add_addon_repository.svg)](https://my.home-assistant.io/redirect/supervisor_add_addon_repository/?repository_url=https%3A%2F%2Fgithub.com%2Fevcc%2Fhassio-addon)
64+
2. Manually add repository:
65+
1. Click on **Settings****Addons****Add-on Store**
66+
2. Click on the **three dots****Repositories**
67+
3. Add the repository URL and click **Add**
68+
```
69+
https://github.com/evcc-io/hassio-addon
70+
```
71+
3. Reload the webpage
72+
4. Find the **evcc (nightly)** addon and click on it
73+
5. Click on the **INSTALL** button
74+
75+
</TabItem>
76+
</Tabs>
3277

3378
## Configuration File
3479

35-
Go to Information menu in the "evcc" Addon and activate "show in side bar" (evcc UI http://your-ha-instance-ip-address:7070)
80+
Go to Information menu in the "evcc" Addon and activate "show in sidebar" (evcc UI http://your-ha-instance-ip-address:7070)
3681

3782
Go to Configuration menu and select your working directory (example):
3883

@@ -45,13 +90,62 @@ Go to Configuration menu and select your working directory (example):
4590

4691
Leave the Network section unchanged.
4792

48-
Create an evcc configuration file `evcc.yaml` in your Home Assistant root configuration folder (`/homeassistant`).
49-
Under [Configuration](./configuration) you'll find instructions on how to create this.
93+
Create an empty evcc configuration file `evcc.yaml` in your Addon root configuration folder (`/addon_configs/49686a9f_evcc`).
94+
If this folder does not exist, create it manually.
95+
96+
To create or edit the configuration file, you have many options, here are a few:
97+
- [Visual Studio Code](https://github.com/hassio-addons/addon-vscode), in Visual Studio Code select the hamburger menu in the top left and choose "File", "Open Folder...", select `/addon_configs/49686a9f_evcc`
98+
- [File Editor](https://github.com/home-assistant/addons/tree/master/configurator), make sure you have disabled the "Enforce Basepath" option in the Addon configuration, restart the Addon and navigate to `/addon_configs/49686a9f_evcc`
99+
- [Advanced SSH & Web Terminal](https://github.com/hassio-addons/addon-ssh), navigate to `/addon_configs/49686a9f_evcc` and use e.g. nano
100+
101+
Under [Configuration](./configuration) you'll find instructions on how to create the content for the `evcc.yaml`.
102+
103+
If you want to start with a demo, copy the content of this [demo](https://github.com/evcc-io/evcc/blob/master/cmd/demo.yaml) into your `evcc.yaml` file.
104+
105+
Now you are ready and can start the addon.
50106

51107
## Updates
52108

53109
The update to the latest version of evcc is integrated into the Home Assistant update process.
54110

111+
## Advanced Tips
112+
113+
To perform the following functions, you need SSH access to Home Assistant. You can get this, for example, with the above-mentioned SSH Addon.
114+
115+
- Install [Advanced SSH & Web Terminal](https://github.com/hassio-addons/addon-ssh)
116+
- Disable the "secure mode" in the Addon configuration
117+
- Restart the Addon
118+
- Open the Addon user interface
119+
120+
### How do I access the evcc database?
121+
122+
Show the files in `/data`:
123+
```sh
124+
docker exec addon_49686a9f_evcc ls -la /data
125+
```
126+
127+
Copy the `evcc.db` to `/addon_configs/49686a9f_evcc`:
128+
```sh
129+
docker cp addon_49686a9f_evcc:/data/evcc.db /addon_configs/49686a9f_evcc/
130+
```
131+
132+
### How can I use the evcc CLI?
133+
134+
Open a shell to the evcc Docker container:
135+
```sh
136+
docker exec -it addon_49686a9f_evcc /bin/sh
137+
```
138+
139+
Run evcc CLI commands (here as an example `checkconfig`):
140+
```sh
141+
evcc -c /config/evcc.yaml checkconfig
142+
```
143+
144+
Close the shell in the evcc Docker container if you are done:
145+
```sh
146+
exit
147+
```
148+
55149
## Next Step: Integration
56150

57151
Once your system is running, you can set up the integration between evcc and Home Assistant.

0 commit comments

Comments
 (0)