Version core-2022.4.0
Installation Type Home Assistant OS
Development false
Supervisor true
Docker true
User root
Virtual Environment false
Python Version 3.9.9
Operating System Family Linux
Operating System Version 5.10.108
CPU Architecture aarch64
I have an entity card configured with two people. For one of them it shows as Home, the other shows as unknown. I’ve got the following to change a user’s status to either home or not_home depending on if they’re connected to the wifi network:
sensor:
- platform: template
sensors:
dallas_pixel_6_home:
value_template: >-
{% if (states('sensor.pixel_6_pro_wifi_connection') == "omgwtf5") or ((states('sensor.pixel_6_pro_wifi_connection') == "omgwtf")) %}
home
{% else %}
not_home
{% endif %}
sara_pixel_5_home:
value_template: >-
{% if (states('sensor.sara_s_pixel_wifi_connection') == "omgwtf5") or ((states('sensor.sara_s_pixel_wifi_connection') == "omgwtf")) %}
home
{% else %}
not_home
{% endif %}
We both use the home assistant companion app for android, and I’ve enabled both the Wifi Connection and Background location sensors. What am I missing?