Dashboard Badges in Home Assistant

A screenshot of the Home Assistant Lovelace dashboard showing several badges at the top of the home screen

One feature of Home Assistant that I’ve only recently started using is Dashboard Badges. These are small widgets that appear at the top of your dashboard, and allow you to view information at a glance. There’s a screenshot above which shows the widgets that I currently have set up.

Badges have been part of Home Assistant for a long time, but they received a major overhaul last August in version 2024.8. In the (approximately) 18 months that I’ve been using Home Assistant, I’ve been gradually adding more and more data to my dashboard, to the point where I had to scroll through several screens worth of data to see what I needed. Which isn’t ideal. Badges are a potential solution, showing basic information at the top, where it’s most accessible.

Each badge widget can usually display the state of one entity. In the screenshot above, I’ve included:

  • The temperature in our dining room, as recorded by our Nest thermostat
  • The current weather (it was, in fact, not raining when I took this screenshot)
  • The current power output of our solar panels
  • How much charge our solar battery currently has
  • The current status of our dishwasher
  • The current status of the TV in the living room
  • The current status of the sun
  • The latest version of Home Assistant

There’s a moderate amount of customisation available. For example, as well as the status of the entity, you can include its name, and this text is also customisable to save space if needed. You can also tweak the colours and the icons.

Controlling visibility of badges

One great feature that badges have in Home Assistant is controlling when they’re visible. I actually have more badges than the eight mentioned above, but they’re not showing as I don’t currently need the information offered. For example, I have a badge that displays whether an update to Home Assistant is available. But I only want to see this when an update is available – if I’m running the latest version, I want the badge to be hidden. Here’s how I configured it:

A screenshot of the Entity Badge configuration in Home Assistant

Having selected the widget, I’ve gone to the ‘Visibility’ tab, selected the entity, and told Home Assistant to only display it when the ‘State is equal to’ and ‘Update available’.

I use this on some other badges too. For example, if there’s no power coming from the solar panels, that badge disappears. Similarly, if my solar battery is at 20% or below, which is its idle state, that’s hidden too. You can also control the visibility based on which user is currently logged in, or anything really – the state of one entity can control the visibility of the badge for another.

A useful badge is one that makes use of the custom Octopus Energy integration from HACS, and will display if I haven’t used my Octopus Wheel of Fortune spins that month. Last month, I won 800 Octopoints, which was nice, and it’s helpful to have a reminder to use them.

By using badges, and setting their visibility, I’ve reduced the number of cards on my dashboard significantly. It makes the dashboard less overwhelming, and prioritises the most important information that I need to see quickly.

Foursquare Thursday – August madness

It’s been a while since I last posted about Foursquare, and a lot has happened. Foursquare has been busy rolling out new features, so I’m going to summarise what’s new. Most of these have cropped up in the past month.

Lists

You can now make lists of venues, such as your favourite museums, pub crawl routes, best places to go for a good burger, that kind of thing. Foursquare starts you off with three lists – venues you’ve added to your to-do list, tips you’ve ‘done’ and tips you’ve added yourself – but you can add more. It’ll even suggest some based on your checkin habits – it’s suggested food places in Leeds and Bradford for me.

Lists are public and show on your profile. You can also check out lists from Foursquare’s various partner brands like MTV (music video locations) and Time Out (the best burgers in New York).

Check-in to events

Foursquare now pulls data from external sources so that you can not only check into a venue, but check into an event at that venue. In the screenshot on the right is my local cinema, and Foursquare knows which two films are being shown there today. When you select ‘Check In Here’, it’ll ask you which film you want to check into – or whether you just want to check in to venue itself. Events listings appear in the iPhone app and on the web site, but haven’t yet been rolled out to the other mobile clients on Android, Blackberry and so on.

New mobile clients

Speaking of which… the iPhone client got a bit of an update recently. It’s now more blue with several screens re-designed, and it now looks a lot more professional than it did before. Another major change is that photos attached to checkins now show in the timeline on the friends page.

Android also received some attention to make it feel more like a native Android app and not a quickly-ported iPhone app, but it lags behind the iPhone app in terms of features. Similarly the Blackberry app now integrates with Blackberry Messenger and has been finally updated to version 3.0, with the Explore feature.

More brand pages

Foursquare has launched new brand pages, so it’s now much easier to create a brand presence on Foursquare. Pages are free to set up, but I gather there are still costs involved if you want a custom badge for your brand.

More badges

Speaking of badges… as usual, Foursquare has added more badges including a new ‘core’ badge – Baker’s Dozen, for 13 checkins at bakeries. You may want to head to Gregg’s for a sausage roll or 12! New partner badges have been introduced from ESPN, MTV and Pepsi, plus the badge for the upcoming film 30 Minutes or Less is now available globally and not just in the US.

Notifications

Back in July Foursquare introduced a notification ‘tray’ on its Android client and web site, which came to the iPhone a few weeks later (rare example of Foursquare offering something to Android users first!). There’s now an icon to the right of the Foursquare logo, which when clicked will inform you of new friend requests, when you’ve been ousted as a mayor, when a friend does one of your tips or comments on your checkins or when a venue you’ve previously checked into starts offering a special deal. It’s a bit like Facebook notifications. You can also control whether these do a push notification in the mobile apps.

Presidential Foursquaring

Barack Obama is touring the country, so you can now follow The White House on Foursquare. Of course, this probably has nothing to do with him running for re-election next year…

New categories

Foursquare has added a handful of new categories – Tennis stadiums, Military Bases, Car Rental counters for airports, apartments and neighbourhoods. A few existing categories, mainly related to food, now have new icons as well.

US Merge-a-thon

Foursquare used their computers to identify a whole host of potential duplicate venues, which were queued up for SU2s and SU3s to process – over 100,000 of them. As it happens, quite a few were not duplicates but hopefully it will result in a net improvement in the quality of Foursquare’s listings. All of the venues were in the US this time.

So, as you can see, a lot has happened on Foursquare over the past few weeks. Foursquare is still owned and run by its founders and hasn’t been absorbed as a subsidiary of a larger company, so it’s agile enough to be able to make major changes like this very quickly. And hopefully there will be more to come!