I created a template sensor from the wifi connection status on my phone. Now I am searching for an easy way to add this sensor to my person device tracker.
I have searched, but couldn find it. Any help?
- platform: template
sensors:
rob_pixel_6_home:
value_template: >-
{% if states('sensor.pixel_6_wifi_connection') == "ZiggoC78C914" %}
home
{% else %}
not_home
{% endif %}
friendly_name: 'Rob Pixel 6 Home (SSID = ZiggoC78C914)'
But you can create a device tracker and assign that. I use an MQTT one, but others use manual entries in known_devices.yaml and the device_tracker.see action.