https://github.com/arkane-systems/ha-dev-to-bin
A Home Assistant helper to convert device trackers to binary sensors.
https://github.com/arkane-systems/ha-dev-to-bin
Last synced: 3 days ago
JSON representation
A Home Assistant helper to convert device trackers to binary sensors.
- Host: GitHub
- URL: https://github.com/arkane-systems/ha-dev-to-bin
- Owner: arkane-systems
- License: mit
- Created: 2026-06-08T19:19:31.000Z (4 days ago)
- Default Branch: master
- Last Pushed: 2026-06-08T19:28:16.000Z (4 days ago)
- Last Synced: 2026-06-08T21:16:53.280Z (4 days ago)
- Language: Python
- Size: 9.77 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ha-dev-to-bin
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.
## Installation
### HACS (recommended)
Add this repository as a custom repository in HACS, then install *Device Tracker as
Binary Sensor*.
### Manual
Copy the `custom_components/device_tracker_to_binary` directory into the
`custom_components` directory of your Home Assistant configuration folder, then restart
Home Assistant.
## Setup
1. Go to **Settings → Devices & Services → Helpers → Create Helper**.
2. Choose **Device Tracker as Binary Sensor**.
3. Select the device tracker entity you want to wrap.
4. Optionally choose the binary sensor device class (defaults to **connectivity**).
5. 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 |
## Options
After creation you can change the **device class** at any time via the integration's
*Configure* button in **Settings → Devices & Services**.