Virtual Device Tracker and Virtual Home/Away/Sleep entities?

Hi everyone.

I have a “Home” input boolean that defines home/away states in my house, and I would like to reconfigure my automations to use a device that can have multiple states (Home/Away/Sleep).
I wanted to do this for a long time but mostly now because there’s this new Tile dashboard card that shows the different states nicely.

I need help creating a virtual device that has these different states and can be activated from the Tile card. Any recommendations? I tried an input Dropdown but it doesn’t show the options in the Tile card.

Also, I’d like to base my home/away states on the home occupation number. The issue I have for this, is that I have many rules that set home or away states for each person, and currently I also have an input_boolean per person (with different automations that turn them on or off).
To use the occupation number, HA asks for a device_tracker to link to each person. So I need to create a virtual device tracker that can be set by automations.

I have Virtual Components installed and tried creating a virtual device tracker but the entity never shows up in my HA, even though I even tried copying and pasting the exact same code shown at the bottom of this page.

Any recommendations to help me create these virtual devices are appreciated!

Thanks,
Rodrigo