Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script:
- tazerface_wake: #yes, that is its name :)
- sequence:
- - condition:
- - "{{ states('binary_sensor.tazerface_located_at_home') == 'on' }}" # teslemetry thinks the car is home
- - "{{ states('binary_sensor.tazerface_status') == 'off' }}" # ...and that it is sleeping
- - service: button.press
- target:
- entity_id: button.tesla_ble_1d8b34_wake_up #bluetooth button
- - wait_for_trigger:
- - platform: state
- entity_id: binary_sensor.tazerface_status #teslemetry sensor
- to: "on"
- timeout: "00:02:00" # it's way less than 2 minutes...
- continue_on_timeout: true
- - delay: '00:00:15' #allow teslemetry to be certain the car is awake
- mode: single
- max_exceeded: silent
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement