Automation A Day Automate Boring Stuff Home Assistant

Tesla Sentry on Amazon Key Package Delivery

I think Tesla Sentry mode is a very underrated feature and I wanted to utilize it to its full potential. Here is one of my newest addition to the home automation that utilizes Tesla Sentry mode to monitor and record the Amazon Key in-garage Delivery from Tesla Model 3’s 8 cameras.

Automation

Check out my post on getting started with Home Assistant, so you can have a better understanding of my setup and replicate it easily.

This automation uses tesla integration for Home Assistant for its location, Teslamate for parking brake sensor, and myQ Homebridge plugin for garage cover.

- id: '1636908817185'
  alias: Alarm - Tesla Sentry mode on Amazon Key delivery
  description: ''
  trigger:
  - platform: device
    device_id: 6aab8620e595ce209825683470e9ee0b
    domain: cover
    entity_id: cover.garage_cover
    type: opened
  condition:
  - condition: device
    device_id: 05139d2e4706e23493ef1e5858b0a267
    domain: device_tracker
    entity_id: device_tracker.tarzan_location_tracker
    type: is_home
  - type: is_on
    condition: device
    device_id: 05139d2e4706e23493ef1e5858b0a267
    entity_id: binary_sensor.tarzan_parking_brake_sensor
    domain: binary_sensor
  action:
  - type: turn_on
    device_id: 05139d2e4706e23493ef1e5858b0a267
    entity_id: switch.tarzan_sentry_mode_switch
    domain: switch
  - wait_for_trigger:
    - platform: device
      device_id: 6aab8620e595ce209825683470e9ee0b
      domain: cover
      entity_id: cover.garage_cover
      type: closed
    timeout: 00:30:00
  - delay:
      hours: 0
      minutes: 5
      seconds: 0
      milliseconds: 0
  - type: turn_off
    device_id: 05139d2e4706e23493ef1e5858b0a267
    entity_id: switch.tarzan_sentry_mode_switch
    domain: switch
  mode: single

Check out my other posts on automation with Home Assistant (specifically Smart Garage Cover) if you are looking for home automation inspiration.

Leave a Reply