Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Home Assistant Track Kids Gaming? Yes, Here's How

· 6 min read · Home Automation

In this article
  1. Why Track Gaming in Home Assistant?
  2. Method 1: Router-Based Device Tracking
  3. Method 2: Game Console Integrations
  4. Method 3: Network Traffic Analysis
  5. Method 4: Agent-Based Tracking on the PC
  6. Setting Up Automations and Dashboards
  7. Privacy and Accuracy Considerations
  8. Frequently Asked Questions

Yes, Home Assistant can track kids' gaming activity, including which games are played, for how long, and on which devices. You can set up automations to notify you when gaming starts or stops, log daily playtime, and even pause Wi-Fi access when limits are reached. This guide covers the main methods, privacy considerations, and practical setup steps.

Why Track Gaming in Home Assistant?

Home Assistant is a local-first home automation platform, meaning your data stays on your own network rather than in a cloud service. For parents, this offers a way to monitor screen time without relying on third-party parental control apps that may require subscriptions or send data to external servers. Tracking gaming can help you:

  • Understand actual playtime versus perceived time.
  • Set and enforce daily or weekly limits.
  • Get alerts when gaming happens during homework or bedtime.
  • Create a log of gaming history for family discussions.

Method 1: Router-Based Device Tracking

The most common approach is to track the device (console, PC, or phone) rather than the game itself. Most routers expose connected devices via integrations like UniFi, ASUSWRT, OpenWrt, or TP-Link. Once a device is detected, you can create a device tracker entity in Home Assistant. To track gaming specifically, you would need to know which devices are gaming devices (e.g., a PlayStation, Xbox, or gaming PC) and then monitor when they are on and active.

However, a device being on doesn't always mean gaming—it could be streaming or idle. For more accuracy, you can combine router tracking with power monitoring (smart plugs) or network traffic analysis.

Method 2: Game Console Integrations

Some consoles offer local APIs or integrations that report what game is running. For example:

  • Xbox: Home Assistant has an integration that uses the Xbox API to show current game and app usage, but it requires a Microsoft account and may have rate limits.
  • PlayStation: There are community integrations (e.g., ps4 or ps5) that can detect when the console is on and sometimes the current game, but they often require network access to the console and may break with firmware updates.
  • Nintendo Switch: No official integration; tracking is usually limited to device presence via network.

These integrations are not always reliable and may require periodic re-authentication. They also rely on cloud services, which somewhat defeats the local-first advantage.

Method 3: Network Traffic Analysis

For PC gaming, you can monitor network traffic to identify game servers. Tools like AdGuard Home, Pi-hole, or a router with nTopng can be integrated into Home Assistant. For example, you can create a sensor that counts connections to known game server domains (like epicgames.com or steampowered.com). This is more technical but gives you game-level detail without installing software on the child's PC.

Keep in mind that many games use peer-to-peer connections, making it harder to identify them by domain alone. Also, encrypted DNS can bypass this method unless you force DNS through your router.

Method 4: Agent-Based Tracking on the PC

If your child uses a Windows PC, you can install a small agent like Home Assistant Agent or use Windows notifications via the windows_events integration. These can report the foreground process name (e.g., Fortnite.exe) to Home Assistant. This is the most accurate method for PC games, but it requires installation on the child's machine and may be circumvented if the child has admin rights.

For mobile gaming, you could use the Home Assistant Companion app's sensor to report the currently active app, but this is often restricted by the OS.

Setting Up Automations and Dashboards

Once you have a sensor that indicates gaming status (binary: gaming/not gaming, or a numeric: minutes played), you can create automations. For example:

  • Send a notification to your phone when gaming starts.
  • Turn on a smart plug to cut power to the console after 2 hours (use with caution—could lose unsaved progress).
  • Log daily playtime to a database and display it on a dashboard card.
  • Pause the device's Wi-Fi via router integration when a time limit is reached.

To track total time, use the history_stats integration to calculate how long a binary sensor has been on over a period (e.g., today). You can then compare it to a threshold and trigger an automation.

Privacy and Accuracy Considerations

Before setting up tracking, discuss it with your family. Tracking can feel invasive, especially for older kids. Consider these points:

  • Data stays local if you avoid cloud integrations, but some integrations (Xbox, PlayStation) use cloud APIs.
  • Device presence isn't the same as gaming—a console in rest mode still shows as connected.
  • False positives: a PC used for homework might trigger a gaming sensor if the game is left open in the background.
  • Kids may find ways to bypass tracking (e.g., using a phone hotspot). Be transparent about what you're tracking and why.

Frequently Asked Questions

Can Home Assistant track game time on a Nintendo Switch?

Not directly. The Switch doesn't expose game activity via a local API. You can track when the Switch is powered on via network presence (if it connects to Wi-Fi), but you won't know which game is being played. Some users use smart plugs to detect power draw, but that only tells you if it's on, not what's running.

Does tracking gaming in Home Assistant require a subscription?

No. Home Assistant itself is free and open-source. Some integrations (like Xbox) may require a free developer account, but there are no mandatory subscriptions. You might need to pay for hardware like a smart plug or a compatible router, but the software is free.

Can I track gaming on multiple devices at once?

Yes. You can create separate binary sensors for each device and then combine them using a group or a template sensor to indicate if any gaming is happening. The history_stats integration can then sum total gaming time across all devices.

Will tracking work if my child uses a VPN?

VPNs can bypass network-based tracking because traffic is encrypted and routed elsewhere. Device-based methods (like agent software) may still work, but a VPN can hide the destination. If VPN use is a concern, you may need to block VPN endpoints on your router or have a conversation about trust.

How do I get alerts when gaming exceeds a time limit?

Use an automation that triggers when the history_stats sensor (playtime today) exceeds a threshold. For example, if playtime is greater than 120 minutes, send a notification and optionally turn off a smart plug. You'll need to create a numeric sensor that updates periodically (e.g., every minute) to check the condition.

Is it possible to track gaming on a phone without installing an app?

Without an app, you can only track the phone's presence on Wi-Fi. To know if the phone is being used for gaming, you'd need either the Home Assistant Companion app (which can report active app in some cases) or a network-level filter that identifies game traffic. Neither is foolproof.