Advertisement
yurghie

Untitled

Jun 25th, 2025 (edited)
384
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.77 KB | None | 0 0
  1. script:
  2.   tazerface_wake: #yes, that is its name :)
  3.     sequence:
  4.       - condition:
  5.         - "{{ states('binary_sensor.tazerface_located_at_home') == 'on' }}" # teslemetry thinks the car is home
  6.         - "{{ states('binary_sensor.tazerface_status') == 'off' }}" # ...and that it is sleeping
  7.       - service: button.press
  8.         target:
  9.           entity_id: button.tesla_ble_1d8b34_wake_up  #bluetooth button
  10.       - wait_for_trigger:
  11.           - platform: state
  12.             entity_id: binary_sensor.tazerface_status  #teslemetry sensor
  13.             to: "on"
  14.         timeout: "00:02:00"  # it's way less than 2 minutes...
  15.         continue_on_timeout: true
  16.       - delay: '00:00:15' #allow teslemetry to be certain the car is awake
  17.     mode: single
  18.     max_exceeded: silent
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement