Hi there,
I’m using Unifi Integration and track mobile device. I created a template sensor for “where is the specific person?”, like following template.
- platform: template
sensors:
kayhan_nerede:
friendly_name: Kayhan Nerede
value_template: >-
{%- if states.device_tracker.kayhans_iphone.attributes.ap_mac == "xx:xx:xx:xx:xx:xx" -%}
BİRİNCİ KAT
{% elif states.device_tracker.kayhans_iphone.attributes.ap_mac == "xx:xx:xx:xx:xx:xx" -%}
BİRİNCİ KAT
{% elif states.device_tracker.kayhans_iphone.attributes.ap_mac == "xx:xx:xx:xx:xx:xx" -%}
BİRİNCİ KAT
{% elif states.device_tracker.kayhans_iphone.attributes.ap_mac == "xx:xx:xx:xx:xx:xx" -%}
ZEMİN KAT
{% elif states.device_tracker.kayhans_iphone.attributes.ap_mac == "xx:xx:xx:xx:xx:xx" -%}
ZEMİN KAT
{% elif states.device_tracker.kayhans_iphone.attributes.ap_mac == "xx:xx:xx:xx:xx:xx" -%}
KESİMHANE
{% elif states.device_tracker.kayhans_iphone.attributes.ap_mac == "xx:xx:xx:xx:xx:xx" -%}
DİKİMHANE
{% elif states.device_tracker.kayhans_iphone.attributes.ap_mac == "xx:xx:xx:xx:xx:xx" -%}
MODELHANE
{% elif states.device_tracker.kayhans_iphone.attributes.ap_mac == "xx:xx:xx:xx:xx:xx" -%}
BODRUM
{% elif states.device_tracker.kayhans_iphone.attributes.ap_mac == "xx:xx:xx:xx:xx:xx" -%}
PLANLAMA
{% elif states.device_tracker.kayhans_iphone.attributes.ap_mac == "xx:xx:xx:xx:xx:xx" -%}
AVRUPA DEPO
{% elif states.device_tracker.kayhans_iphone.attributes.ap_mac == "xx:xx:xx:xx:xx:xx" -%}
AVRUPA DEPO
{% elif states.device_tracker.kayhans_iphone.attributes.ap_mac == "xx:xx:xx:xx:xx:xx" -%}
YEMEKHANE
{%- else -%}
OFİSTE DEĞİL
{%- endif -%}'
Is it possible to expose this sensor attribute to HomeKit?