Where is the motion sensor on Xiaomi: search, setup and problem solving

Xiaomi smartphone owners often face the challenge of finding an infrared transmitter on the device body, confusing the proximity sensor needed to dampen the screen during a conversation with the IR port, which turns the phone into a universal remote.

Modern Xiaomi and Redmi models are equipped with complex sensor systems hidden under the display or in the top frame. If you plan to control household appliances or adjust automation in a smart home system, you need to know exactly the location of components. In this article, we will discuss in detail the physical location of elements and software settings.

It’s important to note that not all smartphones have an integrated IR emitter, and the presence of an infrared port depends on the device’s specific model and price segment, so you should start by checking the specifications of your device, and then move on to visual inspection and software.

Physical location of the IR port on the case

The hardware search starts with an external inspection, and in most cases, engineers place an infrared diode on the top of the device, which is standard for the Mi flagship series and many Redmi Note models, and it looks like a little black spot, often hidden under glass or plastic, next to a noise reduction microphone.

However, in budget models or devices with bangs, the physical port may be completely absent. In such cases, manufacturers rely on software solutions or external accessories. If you don’t see the characteristic dark window on the end, your smartphone probably does not support direct control of infrared signals without additional devices.

And we also have to mention the light and proximity sensor, which is often located next to the speaker on the front, and although technically these are sensors, they're not about sending commands to televisions or air conditioners, but they're about responding to (the environment) and bringing the phone to the ear.

⚠️ Warning: Do not attempt to clean the IR port hole with sharp objects or alcohol, which can damage the diode lens or introduce dust into the housing, leading to irreversible disruption of signal transmission.

To determine the port's presence accurately, you can use another phone's camera. Turn on the camera and point the top of your Xiaomi lens. Press the power button or launch the "Mi Remote" app. If you see a purple or white glow on the camera screen, then the infrared emitter is present and functioning.

Software search through the Mi Remote application

The main tool for working with infrared signals is the system application Mi Remote, which is through this interface, you can customize and emulate the signals of various devices, find it in the Tools folder on your desktop or through a global search system.

When you first start up, the app automatically scans for a hardware IR port, and if the port is detected, you will be asked to add a new device, and if the app reports no hardware, it confirms that the physical module in your smartphone is not installed by the manufacturer.

πŸ“Š Does your Xiaomi have a built-in IR port?
Yeah, I see a hole on the end.
No, but the remote works.
No, the app's writing about an error.
I don't know where to look.

Inside the application, settings are in the control menu. By clicking on the device icon (like a TV), you access the virtual control panel. You can set the buttons, change the layout, and check the infrared transmitter. If the commands don't work, try changing the signal encoding in the specific remote settings.

β˜‘οΈ Verification of the IR port

Done: 0 / 4

Sensors in the Xiaomi Smart Home Ecosystem

If you were asking for smart home devices instead of your phone, that's a game changer. In Xiaomi Smart Home, motion sensors are separate, stand-alone devices that connect to the Gateway or directly to the hub via Zigbee or Bluetooth Mesh protocols.

Such sensors are usually small white cylinders or cubes with the Mi logo. PIR-A sensor (passive infrared sensor) that responds to the movement of thermal objects, and installing these devices requires a basic gateway that acts as a bridge between the sensor and the Internet.

To set up, go to the Mi Home app. After authorization, click the add-on button and select the category "Security" or "Sensors." The system will suggest choosing a model for your motion sensor. The pairing process usually requires you to press a button on the device body before the indicator flashes.

Type of deviceProtocol of communicationWe need a lock.Where to put it
Xiaomi Motion SensorZigbeeYes.Corner of the room, height 2-2.5m
Aqara Motion SensorZigbee 3.0Yes (Aqara/Xiaomi)Corridor, entrance group
Mi Smart Home SetZ-Wave/ZigbeeYes.Near windows or doors
Detection cameraWi-FiNo.Ceiling, viewing angle

It is important to choose the right place for installation. PIR-sensors do not respond well to movement perpendicular to the direction of their work, it is best to set them so that the trajectory of the person's movement crosses the sensor's view sector, and avoid placing heat sources or windows where the sun shines.

Hidden Sensitivity Settings
In some Aqara and Xiaomi sensors, the Mi Home app allows you to adjust the sensitivity and delay time before re-activating, which helps avoid false alarms from pets.

Setup of automation scenarios

The motion sensor itself is just a tool for capturing an event, and its real value is revealed in conjunction with other devices through automation scenarios. In the Mi Home app, go to the Scripts tab and create new automation.

As a condition ("If"), select your motion sensor and the "Motion Detected" event. The action ("That") is to turn on the lights, send a notification to your phone, launch the camera, or turn on the robot vacuum cleaner. The combinations can be almost anything, limited only to your imagination and a list of compatible equipment.

For example, the popular Nightwatch scenario: if the sensor detects movement in the corridor between 23:00 and 6:00, the smart lamp turns on at 10% brightness, which allows you to safely move around the house at night without turning on the main lights and without leaving the household with a bright flash.

⚠️ Note: When creating scenarios with notification to the phone, consider network latency. Between the sensor operation and the sound on the smartphone can take from 1 to 5 seconds, which is critical for security systems.

For more advanced users, integration through the Home Assistant platform or voice assistants is available, allowing you to connect devices from different manufacturers and create complex logical chains that go beyond the standard functionality of the Mi Home application.

Diagnostics and troubleshooting

If you find that the motion sensor has stopped responding or is not functioning stable, the first thing to do is check the power cell. In autonomous sensors, the CR2032 battery is a consumable and requires replacement approximately every 1-2 years depending on the frequency of the alarms.

The second common problem is the loss of communication with the gateway. If the sensor indicator has started flashing red or lighting up often, try bringing the device closer to the hub to re-pair. Sometimes you need a full reset of the sensor by pressing the button for a long time.

In the case of a phone, if the IR port stops working, check if the case is blocking. Dense silicone or metal bumpers can shield the signal. Remove the protection and check the remote again. Also make sure that the Mi Remote app selects the correct region and device model.

πŸ’‘

If the motion sensor often gives false positives, try rubbing its lens with a soft dry cloth. Dust and spider webs can distort infrared radiation, causing the system to react.

Software failures are treated by updating the firmware of the sensor or gateway itself. Go to the device profile in the application and check for updates. Sometimes the manufacturer releases patches that improve motion recognition and power consumption algorithms.

Use of external IR adapters

For smartphones that lack an integrated infrared port, there are external solutions: small jack adapters (3.5 mm) or devices connected via a charging port (USB Type-C / Micro-USB), which allow any Android smartphone to control the equipment.

Once you have connected the adapter, you need to install a third-party application that supports external transmitters, such as "ZaZa Remote" or "Anymote". In the application settings, you need to select the type of connection (external IR) and calibrate the device.

The advantage of external adapters is that they are versatile, but they take up the connector and require a free port, and they can also consume additional power from the phone's battery, albeit in small amounts.

πŸ’‘

External IR adapter is the only solution for managing old equipment on smartphones without a built-in IR port, but requires a constant connection to the connector.

Frequently Asked Questions (FAQ)

Why does the Mi Remote app not see my TV?
This can happen for several reasons: no direct contact (you need to aim at the TV receiver), no battery in the remote (if you use a training mode), or the database does not have an exact code for your model.
Can you use Xiaomi motion sensor without the internet?
The sensor itself will record the movement, but for scenarios (lights, notifications) to work, the gateway needs access to the Internet. Without a network, local automation is only possible in rare cases of settings through third-party Zigbee controllers.
Where to buy a replacement battery for the sensor?
Most Xiaomi motion sensors use a standard CR2032 battery, which you can buy from any electronics store, supermarket or watch department. It is not proprietary.
Does the IR port work through the glass cabinet?
Normal glass is transparent to infrared radiation, so the remote can work through the glass doors of the cabinet, but matte, tinted glass or the presence of a metal mesh can block the signal.