A simple application that notifies the activation of Sentry Mode in your Tesla to mqtt or ntfy.
684
A simple application that notifies the activation of Sentry Mode in your Tesla to mqtt or ntfy.
Create volume to persist login between container restarts.
docker volume create tesla-sentry-notifier
Run container and follow login steps (change your email address in env variable).
docker run -it -v tesla-sentry-notifier:/etc/tesla-sentry-notifier -e TESLA_USER="[email protected]" kolaczek/tesla-sentry-notifier
docker rundocker run \
-d \
--rm \
--name tesla-sentry-notifier \
-v tesla-sentry-notifier:/etc/tesla-sentry-notifier \
-e TZ="YOUR_TIMEZONE" \
-e TESLA_USER="[email protected]" \
-e MQTT_ENABLED="true" \
-e MQTT_SERVER="127.0.0.1" \
kolaczek/tesla-sentry-notifier:latest
docker composeservices:
tesla-sentry-notifier:
image: kolaczek/tesla-sentry-notifier:latest
container_name: tesla-sentry-notifier
restart: unless-stopped
volumes:
- tesla-sentry-notifier:/etc/tesla-sentry-notifier
environment:
- TZ="YOUR_TIMEZONE"
- TESLA_USER="[email protected]"
- MQTT_ENABLED="true"
- MQTT_SERVER="127.0.0.1"
| Environment Variable | Description | Default Value |
|---|---|---|
LOG_LEVEL | STDOUT Log level | INFO |
TZ | Time Zone Identifier | UTC |
TESLA_USER | Login E-mail to Tesla Account | - |
TIMER | Interval to check Sentry Mode status (seconds) | 10 |
TIMER_SKIP | Skip checking of vehicle for X seconds when sentry is not enabled | 120 |
MQTT_ENABLED | Enable MQTT Functionality | false |
MQTT_SERVER | MQTT Server address (ip or hostname) | - |
MQTT_PORT | MQTT Server port | 1883 |
MQTT_USER | MQTT User (empty = no auth) | - |
MQTT_PASS | MQTT Password (empty = no auth) | - |
MQTT_TOPIC | MQTT Topic prefix | tesla-sentry |
NTFY_ENABLED | Enable NTFY Functionality | false |
NTFY_SERVER | NTFY Server | https://ntfy.sh |
NTFY_TOPIC | NTFY Topic | - |
NTFY_TOKEN | NTFY access token | - |
Content type
Image
Digest
sha256:13ca02ee7…
Size
23.7 MB
Last updated
almost 2 years ago
docker pull kolaczek/tesla-sentry-notifier