[custom integration] Device Trackers As Binary Sensors

So there I was, having added some new devices to my Unifi wireless network and wanting to keep track of them through Home Assistant, and about to start going through the motions of creating templates to convert the device trackers which the Unifi integration presents them as (which is, to be fair, a perfectly reasonable design decision) into the connectivity-class binary sensors which I actually want. For the hundredth time, maybe. It may the accepted solution, but after a while it's also the annoying solution.

And then I thought, y'know, while I probably would never have the motivation to hand-code an integration to solve this for me, it takes less than a minute to fire up GitHub Copilot and tell it "make me something like Change device type of switch, only have it be Change device tracker into binary sensor".

(Yes, this is shameless vibe coding, except I used to do this for a living and actually read through the agent's PRs before merging them.)

And here are the results, which so far work perfectly for me and are a lot quicker than copy-paste-modifying templates every time.

arkane-systems/ha-dev-to-bin: A Home Assistant helper to convert device trackers to binary sensors.

Add to HACS as a custom repo, restart HA, then add your helpers as you like. You know the drill.

Enjoy!