Advertisement
JLindvig

Fake device_tracker toggle

May 21st, 2022
1,690
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.22 KB | None | 0 0
  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
Add Comment
Please, Sign In to add comment
Advertisement