mirror of
https://github.com/lildude/ha-addon-teslamate.git
synced 2026-12-05 15:24:38 -05:00
Compare commits
2
Commits
v2.10.0
...
a038a12cae
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a038a12cae | ||
|
|
eb95a60577 |
No files matched your search
@@ -52,7 +52,7 @@ jobs:
|
||||
git push --tags
|
||||
working-directory: ${{ github.workspace }}/teslamate
|
||||
- name: Create release
|
||||
uses: softprops/action-gh-release@efb35369e0ad2afab669f228072c1b0d510eae64 # v3.0.3
|
||||
uses: softprops/action-gh-release@88b783939ccdbabad21b9a37510aed7fad5f2e60 # v3.0.5
|
||||
with:
|
||||
tag_name: v${{ steps.semver.outputs.semver }}
|
||||
body_path: CHANGELOG.txt
|
||||
|
||||
@@ -63,6 +63,8 @@ See the [official docs][mosquitto-docs] on how to configure access control with
|
||||
|
||||
- `mqtt_namespace`: MQTT Namespace
|
||||
|
||||
- `mqtt_home_assistant_discovery`: Automatically publish MQTT discovery topics for Home Assistant. Default: `false`.
|
||||
|
||||
#### 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.
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
"mqtt_tls": false,
|
||||
"mqtt_tls_accept_invalid_certs": false,
|
||||
"mqtt_namespace": "",
|
||||
"mqtt_home_assistant_discovery": false,
|
||||
"timezone": "Europe/London",
|
||||
"import_dir": "/share/teslamate",
|
||||
"default_geofence": "",
|
||||
@@ -65,6 +66,7 @@
|
||||
"mqtt_tls": "bool",
|
||||
"mqtt_tls_accept_invalid_certs": "bool",
|
||||
"mqtt_namespace": "str?",
|
||||
"mqtt_home_assistant_discovery": "bool",
|
||||
"timezone": "str",
|
||||
"import_dir": "str",
|
||||
"default_geofence": "str?",
|
||||
|
||||
@@ -18,6 +18,8 @@ MQTT_PASSWORD=$(bashio::config 'mqtt_pass')
|
||||
MQTT_TLS_ACCEPT_INVALID_CERTS=$(bashio::config 'mqtt_tls_accept_invalid_certs')
|
||||
MQTT_TLS=$(bashio::config 'mqtt_tls')
|
||||
MQTT_USERNAME=$(bashio::config 'mqtt_user')
|
||||
MQTT_HOME_ASSISTANT_DISCOVERY=$(bashio::config 'mqtt_home_assistant_discovery')
|
||||
MQTT_HOME_ASSISTANT_DISCOVERY_PREFIX="homeassistant"
|
||||
|
||||
# Other things
|
||||
IMPORT_DIR=$(bashio::config 'import_dir')
|
||||
@@ -40,9 +42,14 @@ ingress_entry=$(curl -X GET \
|
||||
|
||||
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 \
|
||||
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.
|
||||
for env_var in $(bashio::config 'env_vars|keys'); do
|
||||
|
||||
@@ -37,6 +37,9 @@ configuration:
|
||||
mqtt_namespace:
|
||||
name: 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:
|
||||
name: Import Grafana Dashboards?
|
||||
description: Automatically import the grafana dashboards on startup?
|
||||
|
||||
Reference in new issue
Block a user