I use groups to combine multiple device trackers. How would I create a badge with a picture and the small “away”, “home” message. Is there a tracker that allows an input state? Is there a template that I can use, so a sensor looks like a device tracker badge?
Yes, but then there isn’t a label. How would I add the ‘home’ and ‘away’? I think I could misuse unit_of_measurement, but I don’t think that supports template
In your known_devices.yaml file you need to have track: yes and hide_if_away: no configured then in your group.yaml file under view you add the devices that you want to track
You need to paste your config so I can see how you are set up. Once your code is placed highlight it all and click on </> so that it formats correctly.
In my customize.yaml I have the following set up for my children - you could use the friendly_name: option to add the text you want
I have a wifi extender upstairs and when they are on that I get a different MAC address from them so I have to place both their MAC addresses into a group
Not sure if you are still interested, but I just figured out a way to do this. You can create this by using MQTT device tracker component. Set up MQTT first and then add the following to your config.
This will create a tracker that allows you to set state with a “home”, “away” message in the red box and you can add a picture in the known_devices.yaml file.
And your automation will look something like this:
This is brilliant. And it solves a long standing problem I have with having to use multiple sources to track a device (ping and router probe). I hid the sub trackers so that the MQTT tracker is the one visible in the GUI. Also the you need 2 automation scripts, an OR script to enable the MQTT badge on any home event, and an off scripts with two conditions . The off script is basically an OR event trigger with an AND condition to say if a tracker is not_home and the other trackers condition is also not_home, send a not_home event to the MQTT badge.
Also, check out Custom UI. This allows you to colour code the badges. Using this my badges are green if home, red if not.