mirror of
https://github.com/lildude/ha-addon-teslamate.git
synced 2026-10-13 21:19:16 -04:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4bc610e9a7 | ||
|
|
48cc287c98 |
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"name": "HA Addon: TeslaMate",
|
||||
"image": "ghcr.io/home-assistant/devcontainer:addons",
|
||||
"image": "ghcr.io/home-assistant/devcontainer:2-addons",
|
||||
"appPort": ["7123:8123", "7357:4357"],
|
||||
"postStartCommand": "sudo sed -i 's/export SUPERVISOR_VERSION=.*/export SUPERVISOR_VERSION=2024.03.1.dev1803/' /etc/supervisor_scripts/common && bash devcontainer_bootstrap", // Workaround until https://github.com/home-assistant/supervisor/issues/5021 is fixed"
|
||||
"postStartCommand": "bash devcontainer_bootstrap",
|
||||
"runArgs": ["-e", "GIT_EDITOR=code --wait", "--privileged"],
|
||||
"containerEnv": {
|
||||
"WORKSPACE_DIRECTORY": "${containerWorkspaceFolder}"
|
||||
@@ -27,5 +27,8 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"mounts": ["type=volume,target=/var/lib/docker"]
|
||||
"mounts": [
|
||||
"type=volume,target=/var/lib/docker",
|
||||
"type=volume,target=/mnt/supervisor"
|
||||
]
|
||||
}
|
||||
@@ -9,6 +9,7 @@
|
||||
"aarch64",
|
||||
"amd64"
|
||||
],
|
||||
"hassio_api": true,
|
||||
"ingress": true,
|
||||
"init": false,
|
||||
"panel_icon": "mdi:car-connected",
|
||||
|
||||
@@ -76,9 +76,12 @@ else
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z $(PGPASSWORD="$DATABASE_PASS" psql -h "$DATABASE_HOST" -p "$DATABASE_PORT" -U "$DATABASE_USER" "$DATABASE_NAME" -Atqc "SELECT 1 FROM settings WHERE base_url LIKE '%api/hassio_ingress%'" 2&> /dev/null ) ]]; then
|
||||
if [[ -z $(PGPASSWORD="$DATABASE_PASS" psql -h "$DATABASE_HOST" -p "$DATABASE_PORT" -U "$DATABASE_USER" "$DATABASE_NAME" -Atqc "SELECT 1 FROM settings WHERE base_url LIKE '%api/hassio_ingress%'" 2> /dev/null ) ]]; then
|
||||
teslamate_ingress=$(bashio::addon.ingress_entry)
|
||||
grafana_ingress=$(bashio::addon.ingress_entry $(bashio::supervisor.addons | grep grafana))
|
||||
if [[ "$teslamate_ingress" == "$grafana_ingress" ]]; then
|
||||
grafana_ingress="** Grafana addon not found. Ensure the addon is installed and running. **"
|
||||
fi
|
||||
|
||||
bashio::log.info "Configure TeslaMate settings by adding these values
|
||||
to the URL you use to access your Home Assistant instance:
|
||||
|
||||
Reference in New Issue
Block a user