keepcalculator

06 Numbers and Powers

Wii Remote Home Assistant Controller Guide

Card No. 06·88007 · Updated · Standard formula, shown below

Yes, you can turn a Wii Remote into a Home Assistant controller using Bluetooth, a USB sensor bar or IR LEDs, and a few configuration steps. This guide covers the two main methods — the official Home Assistant iOS/Android app’s Wii Remote integration and a DIY approach using an ESP32 — so you can choose what fits your setup.

Why Use a Wii Remote at All?

The Wii Remote (Wiimote) is a surprisingly capable input device: it has an accelerometer, a gyroscope (in Wii MotionPlus models), an infrared camera, and buttons. For Home Assistant, the most useful feature is the IR camera, which tracks up to four bright IR points. By pointing the remote at a sensor bar (or a pair of IR LEDs), you get a precise 2D coordinate that can control anything from media playback to robot vacuums.

Compared to buying a dedicated smart remote, a Wiimote costs a fraction of the price — often under $20 used — and it’s wireless. It also works without needing to be charged frequently, as it runs on two AA batteries for many hours.

Method 1: The Official Home Assistant App (iOS/Android)

The easiest way is to use the official Home Assistant mobile app, which has a built-in Wii Remote integration. This works only on phones with an IR blaster (most Android phones, not iPhones) or via a USB IR dongle on a computer. Here’s the general process:

  1. Install the Home Assistant app on your phone or tablet.
  2. In the app, go to Settings → Companion App → Wii Remote.
  3. Pair the Wiimote by pressing the red sync button on the back and selecting it in the app.
  4. Point the remote at the phone’s IR blaster (or a USB IR emitter) and calibrate the four corners.
  5. Create automations that trigger when the remote’s IR coordinates change or when buttons are pressed.

This method is limited to devices with an IR blaster, which rules out most modern phones. It also requires the app to be running in the foreground, so it’s not ideal for wall-mounted controllers.

Method 2: DIY ESP32 Bridge (More Flexible)

For a permanent, always-on solution, you can build a small bridge using an ESP32 microcontroller (about $5) and a Wii Remote. The ESP32 acts as a Bluetooth receiver that forwards Wiimote data to Home Assistant via MQTT or a custom integration. This works with any phone or tablet that can run a web page, and it doesn’t depend on the phone’s IR blaster.

Here’s the high-level setup:

  • Flash the ESP32 with a sketch that uses the WiiRemote Arduino library (available on GitHub).
  • Connect the ESP32 to your Wi-Fi and to an MQTT broker (or use Home Assistant’s native ESPHome).
  • Pair the Wiimote with the ESP32 (the library handles the pairing).
  • Configure Home Assistant to listen for MQTT topics like wii/ir/x and wii/ir/y.
  • Use the coordinates in automations — for example, a left-to-right swipe could skip a track.

This method is more involved but gives you full control. You can also add a USB sensor bar (powered by 5V) or just two IR LEDs powered by a battery to provide the tracking points.

What You Need to Get Started

Regardless of method, you’ll need a few physical items:

  • Wii Remote — any model works, but Wii MotionPlus (the one with the wider bottom) has a gyroscope that can add tilt gestures.
  • IR source — a Wii sensor bar (USB or battery powered) or two IR LEDs (e.g., 940nm) placed about 20 cm apart. The remote tracks these, not the bar itself.
  • Bluetooth receiver — either your phone (via the app) or an ESP32.
  • Home Assistant instance — any recent version (2023 or later) works.

If you’re going the ESP32 route, you’ll also need a USB cable for programming and a breadboard or soldering iron for the IR LEDs (though you can skip the LEDs and just use the remote’s buttons).

Common Problems and Fixes

Here are the issues people run into most often:

  • Remote not connecting — Make sure the Wiimote is in pairing mode (press the red sync button) and that the Bluetooth receiver is discoverable. On ESP32, you may need to press the sync button on the ESP32 as well.
  • IR coordinates jump around — This is normal if the IR source is dim or the remote is too far (more than 5 meters). Use fresh batteries or a brighter IR source.
  • Latency — Bluetooth polling is about 100 Hz, but network hops add delay. Keep the ESP32 close to the router and use MQTT QoS 0 for low latency.
  • Buttons not registering — The Wiimote’s buttons are sent as a bitmask. In your automation, use the correct bit value (e.g., button A is 0x08). Check the library’s documentation for the mapping.

Comparing the Two Methods

Feature Official App ESP32 Bridge
Cost Free (if phone has IR) ~$10 (ESP32 + LEDs)
Setup complexity Low Medium (requires coding)
Always-on No (app must be open) Yes
Range Limited to phone’s IR range Up to 10 meters
Customization Limited to app’s actions Full control via MQTT

If you just want to try it out, the official app is the quickest path. If you’re building a permanent wall-mounted controller, the ESP32 is the better long-term solution.

Safety and Accuracy Notes

When building your own IR source, use a 5V USB power supply and a resistor (typically 100–150 ohms) in series with each LED to limit current to about 20 mA. Never connect LEDs directly to a battery without a resistor — they will burn out. Also, avoid pointing the IR LEDs directly at eyes; while 940nm is invisible, it can still cause damage at close range.

For the ESP32, ensure you use a regulated 5V supply and don’t draw more than 500 mA from the USB port. If you’re unsure about the electronics, buy a pre-made USB sensor bar instead of building your own.

Alternatives to the Wii Remote

If the Wii Remote doesn’t meet your needs, consider these alternatives:

  • Logitech Harmony Hub — works with Home Assistant via a custom component, but it’s expensive and discontinued.
  • ESP32 with a rotary encoder — a simple knob that sends MQTT messages; great for volume or dimming.
  • RF remote (e.g., Broadlink RM4) — can control IR devices, but not as precise as a Wiimote.
  • Old smartphone — install the Home Assistant app and use it as a touchscreen remote.

Frequently Asked Questions

Does the Wii Remote work with Home Assistant without a sensor bar?

Yes, you can still use the buttons and accelerometer without a sensor bar. The IR tracking is what requires the IR source, but the buttons (A, B, D-pad, etc.) work fine on their own.

Can I use a Wii U Pro Controller instead?

No, the Wii U Pro Controller uses a different Bluetooth protocol and is not supported by the official Home Assistant integration. You would need a custom ESP32 setup that emulates a Wiimote, which is complex and not recommended.

How do I calibrate the IR camera?

In the official app, you’ll be asked to point the remote at the IR source and press the four corners of the screen. For the ESP32 method, you can calibrate by reading the raw IR coordinates and mapping them to your screen’s resolution in the automation code.

Is it possible to use the Wii Remote as a mouse for Home Assistant?

Yes, you can map the IR coordinates to the mouse cursor using a tool like wii-mouse on a computer, but that’s separate from Home Assistant. Within Home Assistant, you can use the coordinates to trigger actions, but not to move a cursor directly.

What is the maximum range for IR tracking?

Typically about 5 meters (16 feet) with a standard sensor bar. Beyond that, the IR points become too dim for the camera to track reliably. Using brighter IR LEDs can extend this to 10 meters.

Can I use multiple Wii Remotes at once?

Yes, both the official app and ESP32 can handle multiple remotes, but you’ll need to pair each one separately and assign different MQTT topics or device IDs. The ESP32 can connect to up to 4 remotes simultaneously.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →