Compare commits

...
4 Commits
Author SHA1 Message Date
Aulon MujajandColin Seymour a038a12cae Add MQTT auto discovery configuration options (#162)
Co-authored-by: Colin Seymour <colin@symr.io>
2026-11-30 17:08:58 +00:00
renovate[bot] eb95a60577 Update softprops/action-gh-release action to v3.0.5 (#159)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-11-30 16:02:27 +00:00
renovate[bot] ce4bc0707c Update TeslaMate to v4.5.0 (#163)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-11-30 15:57:26 +00:00
renovate[bot] 5988edbe7f Update frenck/action-addon-linter action to v2.21.3 (#160)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-11-26 16:44:24 +00:00
7 changed files with 18 additions and 4 deletions

No files matched your search

+1 -1
View File
@@ -17,6 +17,6 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: 🚀 Run Home Assistant Add-on Lint - name: 🚀 Run Home Assistant Add-on Lint
uses: frenck/action-addon-linter@b9cfd1bc62ba60d2c4fc96317b5f7ada5923f4a7 # v2.21.1 uses: frenck/action-addon-linter@479f4f053b96ed00a83ce2c7d8f858e22475aa98 # v2.21.3
with: with:
path: "./" path: "./"
+1 -1
View File
@@ -52,7 +52,7 @@ jobs:
git push --tags git push --tags
working-directory: ${{ github.workspace }}/teslamate working-directory: ${{ github.workspace }}/teslamate
- name: Create release - name: Create release
uses: softprops/action-gh-release@efb35369e0ad2afab669f228072c1b0d510eae64 # v3.0.3 uses: softprops/action-gh-release@88b783939ccdbabad21b9a37510aed7fad5f2e60 # v3.0.5
with: with:
tag_name: v${{ steps.semver.outputs.semver }} tag_name: v${{ steps.semver.outputs.semver }}
body_path: CHANGELOG.txt body_path: CHANGELOG.txt
+2
View File
@@ -63,6 +63,8 @@ See the [official docs][mosquitto-docs] on how to configure access control with
- `mqtt_namespace`: MQTT Namespace - `mqtt_namespace`: MQTT Namespace
- `mqtt_home_assistant_discovery`: Automatically publish MQTT discovery topics for Home Assistant. Default: `false`.
#### Grafana Options #### Grafana Options
I recommend you use the existing [Grafana add-on][grafana-addon] from the community add-ons, if you do, please enable the following plugins in your yaml configurations, e.g. I recommend you use the existing [Grafana add-on][grafana-addon] from the community add-ons, if you do, please enable the following plugins in your yaml configurations, e.g.
+1 -1
View File
@@ -1,4 +1,4 @@
ARG teslamate_version=4.4.0 ARG teslamate_version=4.5.0
FROM teslamate/grafana:${teslamate_version} AS grafana FROM teslamate/grafana:${teslamate_version} AS grafana
#--- #---
+2
View File
@@ -39,6 +39,7 @@
"mqtt_tls": false, "mqtt_tls": false,
"mqtt_tls_accept_invalid_certs": false, "mqtt_tls_accept_invalid_certs": false,
"mqtt_namespace": "", "mqtt_namespace": "",
"mqtt_home_assistant_discovery": false,
"timezone": "Europe/London", "timezone": "Europe/London",
"import_dir": "/share/teslamate", "import_dir": "/share/teslamate",
"default_geofence": "", "default_geofence": "",
@@ -65,6 +66,7 @@
"mqtt_tls": "bool", "mqtt_tls": "bool",
"mqtt_tls_accept_invalid_certs": "bool", "mqtt_tls_accept_invalid_certs": "bool",
"mqtt_namespace": "str?", "mqtt_namespace": "str?",
"mqtt_home_assistant_discovery": "bool",
"timezone": "str", "timezone": "str",
"import_dir": "str", "import_dir": "str",
"default_geofence": "str?", "default_geofence": "str?",
+8 -1
View File
@@ -18,6 +18,8 @@ MQTT_PASSWORD=$(bashio::config 'mqtt_pass')
MQTT_TLS_ACCEPT_INVALID_CERTS=$(bashio::config 'mqtt_tls_accept_invalid_certs') MQTT_TLS_ACCEPT_INVALID_CERTS=$(bashio::config 'mqtt_tls_accept_invalid_certs')
MQTT_TLS=$(bashio::config 'mqtt_tls') MQTT_TLS=$(bashio::config 'mqtt_tls')
MQTT_USERNAME=$(bashio::config 'mqtt_user') MQTT_USERNAME=$(bashio::config 'mqtt_user')
MQTT_HOME_ASSISTANT_DISCOVERY=$(bashio::config 'mqtt_home_assistant_discovery')
MQTT_HOME_ASSISTANT_DISCOVERY_PREFIX="homeassistant"
# Other things # Other things
IMPORT_DIR=$(bashio::config 'import_dir') IMPORT_DIR=$(bashio::config 'import_dir')
@@ -40,9 +42,14 @@ ingress_entry=$(curl -X GET \
export URL_PATH=$ingress_entry export URL_PATH=$ingress_entry
addon_slug=$(bashio::addons self addons.self.slug .slug)
MQTT_HOME_ASSISTANT_DISCOVERY_URL="homeassistant://app/${addon_slug}"
export DATABASE_HOST DATABASE_NAME DATABASE_PASS DATABASE_PORT DATABASE_USER \ export DATABASE_HOST DATABASE_NAME DATABASE_PASS DATABASE_PORT DATABASE_USER \
DISABLE_MQTT MQTT_HOST MQTT_NAMESPACE MQTT_PASSWORD MQTT_TLS_ACCEPT_INVALID_CERTS \ DISABLE_MQTT MQTT_HOST MQTT_NAMESPACE MQTT_PASSWORD MQTT_TLS_ACCEPT_INVALID_CERTS \
MQTT_TLS MQTT_USERNAME IMPORT_DIR PORT TZ DEFAULT_GEOFENCE ENCRYPTION_KEY URL_PATH MQTT_TLS MQTT_USERNAME IMPORT_DIR PORT TZ DEFAULT_GEOFENCE ENCRYPTION_KEY URL_PATH \
MQTT_HOME_ASSISTANT_DISCOVERY MQTT_HOME_ASSISTANT_DISCOVERY_PREFIX \
MQTT_HOME_ASSISTANT_DISCOVERY_URL
# These are optional and applied last so we can override those set above if needed. # These are optional and applied last so we can override those set above if needed.
for env_var in $(bashio::config 'env_vars|keys'); do for env_var in $(bashio::config 'env_vars|keys'); do
+3
View File
@@ -37,6 +37,9 @@ configuration:
mqtt_namespace: mqtt_namespace:
name: MQTT Namespace name: MQTT Namespace
description: MQTT namespace. description: MQTT namespace.
mqtt_home_assistant_discovery:
name: MQTT Home Assistant Discovery
description: Automatically publish MQTT discovery topics for Home Assistant.
grafana_import_dashboards: grafana_import_dashboards:
name: Import Grafana Dashboards? name: Import Grafana Dashboards?
description: Automatically import the grafana dashboards on startup? description: Automatically import the grafana dashboards on startup?