I use an Input Boolean switch for presence and a template to change from an On/Off Switch to Home/Away I’m wondering if there’s a way to pull Zone information into the template.
- platform: template
sensors:
annie_home_away:
value_template: "{% if is_state('input_boolean.annie_home', 'on') %}Home{% else %}Away{% endif %}"
Top “Annie” Is a regular device tracker
Bottom is the input Boolean switch that I’d like to have include “At Greenfield School”