How do I get Android screen time per app into Home Assistant?

Life Dashboard for Android, an open-source app, reads Android's usage statistics, the same numbers Digital Wellbeing shows, and sends the minutes per app to Home Assistant on a schedule. With the Life Dashboard integration you get today's and yesterday's screen time, the most used app, the top five apps, a sensor per app if you want one, and every day in long-term statistics. Over MQTT you get the same totals without the sensors per app. Automations can then warn you when you pass a limit you set yourself.

By Owen Vogelaar, who maintains Life Dashboard 5 min read

Get it on Google Play

€4.99 once on Google Play, no subscription.

Get the Android app

What you need

Set it up

  1. When you pair with the QR code, include Screen Time under Send from.
  2. Open the Screen Time tab. It says Allow usage access. Tap Open Android settings, find Life Dashboard in Android's list, switch access on and go back. The tab now shows your screen time, and More on that tab says Usage access granted.
  3. Open Day starts at. It's 04:00 by default, so phone use after midnight counts toward the day before; another hour needs Save at the top of that page. Switch off Enable day boundary for midnight to midnight.
  4. Under Apps to send, choose All, All except or Only. The list shows the apps you used in the last 30 days.
  5. Tap Sync Now.
The Screen Time tab of the Android app

Screen time has its own When to send, separate from health data. Home Assistant only sees a new number after a sync, so for limits pick Every X minutes at 15, the shortest Android allows, and tap Save.

What you get

Integration sensorOver MQTTWhat it holds
sensor.<phone>_screen_time_todayScreen Time TodayTime today, with the top five apps and their minutes in top_apps, and from integration 1.2.0 every app of the day in apps
sensor.<phone>_screen_time_yesterdayScreen Time YesterdayYesterday's final total
sensor.<phone>_most_used_app_todayScreen Time Top App TodayThe app with the most minutes today
sensor.<phone>_<app>_screen_timeNot availableOne app's time today, with its minutes over the week in week_minutes

The integration gives the time in hours since version 1.0.0, so 2 h 51 min reads 2.85 and a tile shows 2h 51m. Over MQTT, and in the integration before 1.0.0, it's in minutes: 171. The attributes are in minutes on both routes.

Rules for the sensors per app:

  • They're created disabled. Open the phone's device, show the disabled entities and enable the apps you care about.
  • An app gets a sensor once it has 5 minutes over the days the last sync carried. A phone gets 50 app sensors at most, disabled ones included, most used apps first.
  • A sensor belongs to the app's package, so it survives a rename. A sensor you delete stays deleted.
  • An app you didn't open today reads 0, so a daily trigger is ready again the next day.

Total screen time per day also goes into long-term statistics, in hours, and so does the time per day of each app whose sensor you enabled. Screen time in detail covers all attributes.

Cards for your dashboard

Life Dashboard Screen Time is a separate install from the Marketplace (HACS before Home Assistant 2026.11) with three cards, each against a daily limit you set:

  • Today on one phone: a ring against the limit, the difference with yesterday and with the last seven days, and the apps with their own icons and minutes.
  • The week: a bar per day with the limit as a line. Tap a day to see its apps.
  • The family: everyone in one card, each against their own limit, with their three biggest apps.

With integration 1.2.0 or newer the cards show every app of the day; before that, the top five and the app sensors you enabled. They also read a child's screen time from Google Family Link or Microsoft Family Safety, through the community integrations HAFamilyLink and HAFamilySafety.

Limits and alerts

A notification when today passes three hours, using the companion app's notify action:

triggers:
  - trigger: numeric_state
    entity_id: sensor.<phone>_screen_time_today
    value_template: "{{ state.state | float(0) * (60 if state.attributes.unit_of_measurement == 'h' else 1) }}"
    above: 180
actions:
  - action: notify.mobile_app_<phone>
    data:
      message: Three hours on the phone today.

The value_template line turns hours into minutes and leaves minutes as they are, so above: 180 means three hours with the integration and over MQTT. Swap in sensor.<phone>_youtube_screen_time and above: 60 for a limit on one app, with the same value_template line. The screen time limits recipe adds a version for MQTT and a check for late-night phone use.

Several phones in one Home Assistant

Add the integration once per phone, and give each a clear name. The entity IDs follow the name, so a tablet named “Living room tablet” gives sensor.living_room_tablet_youtube_screen_time next to your phone's sensors. Each phone has its own device, secret and statistics.

Over MQTT, give each phone a name under More > Advanced > Phone name. A named phone becomes its own device, such as Life Dashboard Companion (Pixel 8). Two phones without a name publish to the same sensors.

Everyone with access to Home Assistant and its backups can see which apps were used and when. On each phone, Apps to send decides what leaves it: an app filtered out is not named in anything sent, though its time still counts in the day's total.

What it measures

  • Foreground time per app, in whole minutes. Music playing in the background doesn't count.
  • System UI and the launcher are left out, and so are apps used for one minute or less that day.
  • Every sync sends the last 7 days again, so a day still in progress at one sync is corrected by the next.
  • The app reports minutes. It doesn't block apps or set limits on the phone itself.

Life Dashboard for Android

Screen time doesn't need Health Connect. Any phone or tablet with Android 8.0 or newer works.

Get it on Google Play

€4.99 once on Google Play: the easy way, with automatic updates, and it supports development.

Other ways to install the same app, with the same signing key: APK on GitHub · Obtainium · F‑Droid

Get the Android app Open the integration in the Marketplace

The open-source Android app this guide uses. No account and no cloud. More about the app.

Common questions

Why doesn't the total match Digital Wellbeing exactly?

Digital Wellbeing counts from midnight, while the app's day starts at 04:00 by default. Apps used for a minute or less are also left out.

Does this work on an iPhone?

No. iOS keeps Screen Time data inside a sandbox that can't send anything out, so the iPhone app has no screen time.

Can I keep some apps private?

Yes. Pick them under All except in Apps to send. Their names are not sent. The day's total still includes their time, so with one app left out, its minutes can be worked out from the total. The sensors then show the minutes of the apps you send, and all_apps_minutes holds the total of every app.

Can I send screen time to my own server instead?

Yes. The Screen Time tab has its own webhook list, and the payload is JSON with minutes per app per day. See the webhook guide.