Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95419

Using a action template in a device_tracker.see automation

$
0
0

@unw1red wrote:

Question


data_template: >
  location_name: {% if is_state("input_boolean.guest_mode" , "off") %}not_home{%
  else %}home{% endif %}
dev_id: guest_mode

This is my action in an automation to set the location_name payload for a call service device_tracker.see. No matter what the state of the input_boolean, the answer is always not_home.

Anyone see what I am doing wrong?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95419

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>