Advertisement
JLindvig

Fake device_tracker toggle

May 21st, 2022
1,332
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. alias: Toggle home/not_home
  2. mode: single
  3. sequence:
  4.   - service: device_tracker.see
  5.     data:
  6.       dev_id: '{{ name }}'
  7.       location_name: '{{ "home" if is_state("person." + name, "not_home") else "not_home" }}'
  8.  
Advertisement
RAW Paste Data Copied
Advertisement