kolaczek/tesla-sentry-notifier

By kolaczek

Updated almost 2 years ago

A simple application that notifies the activation of Sentry Mode in your Tesla to mqtt or ntfy.

Image
Security
Internet of things
Monitoring & observability
0

684

kolaczek/tesla-sentry-notifier repository overview

Tesla Sentry Notifier

A simple application that notifies the activation of Sentry Mode in your Tesla to mqtt or ntfy.

First Run - Login to Tesla Account

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

Up-and-Running with docker run

docker 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

Up-and-Running with docker compose

services:
  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"

Runtime Environment Variables

Environment VariableDescriptionDefault Value
LOG_LEVELSTDOUT Log levelINFO
TZTime Zone IdentifierUTC
TESLA_USERLogin E-mail to Tesla Account-
TIMERInterval to check Sentry Mode status (seconds)10
TIMER_SKIPSkip checking of vehicle for X seconds when sentry is not enabled120
MQTT_ENABLEDEnable MQTT Functionalityfalse
MQTT_SERVERMQTT Server address (ip or hostname)-
MQTT_PORTMQTT Server port1883
MQTT_USERMQTT User (empty = no auth)-
MQTT_PASSMQTT Password (empty = no auth)-
MQTT_TOPICMQTT Topic prefixtesla-sentry
NTFY_ENABLEDEnable NTFY Functionalityfalse
NTFY_SERVERNTFY Serverhttps://ntfy.sh
NTFY_TOPICNTFY Topic-
NTFY_TOKENNTFY access token-

Support Me

ko-fi

Tag summary

Content type

Image

Digest

sha256:13ca02ee7

Size

23.7 MB

Last updated

almost 2 years ago

docker pull kolaczek/tesla-sentry-notifier