A Home Assistant helper integration that exposes a device tracker entity as a binary
sensor. The binary sensor is on (true) when the tracker reports home, and off
(false) for any other state (e.g. not_home or a named zone). The original device
tracker is hidden while the helper is active and restored when the helper is removed.
Add this repository as a custom repository in HACS, then install Device Tracker as Binary Sensor.
Copy the custom_components/device_tracker_to_binary directory into the
custom_components directory of your Home Assistant configuration folder, then restart
Home Assistant.
- Go to Settings → Devices & Services → Helpers → Create Helper.
- Choose Device Tracker as Binary Sensor.
- Select the device tracker entity you want to wrap.
- Optionally choose the binary sensor device class (defaults to connectivity).
- Click Submit.
The helper creates a binary sensor whose state mirrors the presence of the tracked device:
| Device tracker state | Binary sensor |
|---|---|
home |
on (true) |
not_home / zone |
off (false) |
| unavailable / unknown | unavailable |
After creation you can change the device class at any time via the integration's Configure button in Settings → Devices & Services.