MJSTG1 Xiaomi: How to connect to the phone – all ways and solutions to problems

The device MJSTG1 Xiaomi is a compact temperature and humidity sensor that is often used in smart home systems to monitor the microclimate. Despite its simplicity of design, connecting it to a smartphone can raise questions, especially for beginners. MJSTG1 Does not support direct Bluetooth connection LE (Unlike other models like this LYWSD03MMC), a) Requires the use of specialized gateways or alternative protocols.

In this article, we will discuss all the current methods of synchronization. MJSTG1 with a Xiaomi smartphone (including models on the MIUI 14/15 and HyperOS), consider the necessary applications, workarounds for devices without a gateway, as well as typical errors that prevent successful connection.

What is it? MJSTG1 Why would you connect him to the phone?

MJSTG1 β€” This is a budget sensor from Xiaomi, released as part of the MiJia ecosystem. It measures temperature (range from the base of the device). βˆ’10Β°C +60Β°C) and humidity (0-100%) with error Β±0,3Β°C and Β±3%, respectively. The main difference from modern analogues is the lack of a display and the need to use an external gateway for data transmission.

Connecting to the phone allows:

  • πŸ“Š Track your real-time performance through the Mi Home or Aqara Home app.
  • πŸ”” Adjust notifications when the parameters go beyond the norm (for example, with high humidity in the bathroom).
  • πŸ€– Integrate in the automation of a smart home (includes a humidifier, air conditioner, etc.).
  • πŸ“± View the week/month data history in the form of charts.

It is important to understand that MJSTG1 It doesn't work directly with a smartphone, it needs an intermediate device that will relay the signal:

  • πŸ”„ Xiaomi Mi Gateway (smart home gateway, model) ZNDMWG02LM or ZNDMWG03LM).
  • πŸ”„ Aqara Hub (compatible with most MiJia devices).
  • πŸ”„ Alternative locks on the base Zigbee2MQTT Home Assistant (for advanced users).

⚠️ Attention: If you are trying to connect MJSTG1 without a gateway, using only Bluetooth, this is impossible - the sensor does not support the protocol BLE In this case, you will need to buy more gateways or consider newer models of sensors (for example, LYWSD03MMC or MHO-C401).

Connection methods MJSTG1 Xiaomi

There are three main methods of synchronizing the sensor with the phone, depending on the equipment available and the level of technical training:

MethodEquipment requiredDifficultyPlusesCons
Through the Mi Home GatewayXiaomi Mi Gateway + Mi Home appendix⭐Official support, simple setupPurchase of the lock required (~2000–3000 β‚½)
Through the Aqara HubAqara Hub + Aqara Home appendix⭐⭐More stable operation, support for automationGateway is more expensive than Mi Gateway
Through Zigbee2MQTTGateway down CC2531/CC2652 + Home Assistant⭐⭐⭐⭐Maximum flexibility, no cloud bindingComplicated configuration requires technical knowledge

For most users, the first option is the Mi Home Gateway, which requires no in-depth knowledge and is fully supported by official software. Let's take a closer look at it.

πŸ“Š What Smart Home Gateway Are You Using?
Xiaomi Mi Gateway
Aqara Hub
Another Zigbee gateway
I don't use the airlocks.

Instructions: Connecting via Mi Home Gateway

Before starting, make sure that:

Download the latest version of the Mi Home app (App Store/Google Play)

Connect the Mi Gateway to the socket and wait for the blue flashing of the indicator

Make sure that the phone and gateway are on the same Wi-Fi network (2.4 GHz)

Remove the battery from the sensor MJSTG1 and put it back in (reset)

-->

Step 1: Adding a gateway to Mi Home

  1. Open the Mi Home app and go to Devices β†’ Add Device.
  2. Select the Gateway category and find your device model (e.g. Xiaomi Mi Gateway 3).
  3. Click Add and follow the instructions on the screen. The gateway should flash yellow.
  4. Connect the gateway to a Wi-Fi network (2.4 GHz only!).

Step 2. Connect the sensor MJSTG1

  1. Go back to Add Device and select Sensors category.
  2. Find it. MJSTG1 (The device is called the MiJia Temperature and Humidity SensorΒ»).
  3. Press Add and insert the battery into the sensor (if you haven't already).
  4. Wait for the device to appear on the list. If the sensor is not found, repeat the step 3-4 times.

Step 3: Set up notifications and automations

After successful connection:

  • Go to the sensor card in Mi Home.
  • Press on. βš™οΈ Settings β†’ Notifications and configure temperature/humidity limits.
  • To create automation go to Profile β†’ Automation β†’ Add and select your trigger. MJSTG1.

⚠️ Warning: If the sensor is not detected, check the gateway firmware version.Outdated versions (below) 1.4.1_179) may not support MJSTG1. Update the gateway software through Settings β†’ Update of firmware in the Mi Home app.

πŸ’‘

If the sensor is connected but shows incorrect data (e.g. temperature) +85Β°C, remove the battery for 10 minutes, then insert it back in.

Connecting via Aqara Hub: an alternative method

If you already have an Aqara gateway (e.g., Aqara Hub) M2 or Camera Hub G2H), You can plug in. MJSTG1 This is often more stable than using the Mi Home Gateway, especially if you have many smart home devices.

Instructions:

  1. Install the Aqara Home app and sign up.
  2. Add your Aqara Hub to the app (similar to Mi Gateway).
  3. Go to Add the device β†’ Sensors. β†’ Temperature and humidity sensor.
  4. Activate the sensor MJSTG1 (Put the battery in and wait for the signal.
  5. After successful connection, the sensor will appear in the list of devices.

Advantages of this method:

  • πŸ”„ More reliable data synchronization (less communication breaks).
  • πŸ“ˆ Support for advanced automation (e.g., bundling with Aqara devices).
  • 🌐 Integration with Apple HomeKit (via Aqara Hub).

There is also a nuance: Aqara Home MJSTG1 It can be displayed as an "unknown device" or require manual profile selection:

  1. When you add, select the option Other device.
  2. Manually specify the model MJSTG1 or WSDCGQ01LM (sensor).
How to check the version of the sensor firmware?
To find out the version of your firmware MJSTG1, Connect it to Mi Home, then go to Device Settings β†’ General information: The firmware version will be listed in the Firmware bar, and if version is below 2.0.6, it is recommended to update it via the gateway (if available).

Connection without gateway: possible workarounds

If you don’t have a gateway, you want to use it. MJSTG1, There are alternative solutions that require additional costs or technical skills, but can be useful in some scenarios.

Option 1: Use of a Zigbee-USB adapter

This will require:

  • πŸ–₯️ CC2531 or CC2652 adapter (~1500–2500 β‚½).
  • πŸ’» Software Zigbee2MQTT or Home Assistant.
  • πŸ“± Data visualization application (e.g. Node-RED or Grafana).

The setup process:

  1. Connect the adapter to your computer or Raspberry Pi.
  2. Install. Zigbee2MQTT Configure the configuration file to support MJSTG1.
  3. Add the sensor to the network via the web interface Zigbee2MQTT.
  4. Set up data transfer to Home Assistant or other monitoring software.

Option 2: Reflashing the sensor

Some enthusiasts are modifying the firmware MJSTG1, to make it work on Bluetooth. LE, But it requires soldering and programming of the microcontroller, and it's not recommended for beginners, because it's a high risk of incapacitating the device.

Option 3: Purchase of an adapter

In Chinese stores (for example, on AliExpress), sometimes there are Zigbee-to-BLE adapters that allow you to connect to the Internet. MJSTG1 They're reliable and compatible with the phone. MIUI remain in question.

⚠️ Note: When using informal methods of connection (e.g. via Zigbee2MQTT) Sensor data can be transmitted with a delay of up to 5-10 minutes, due to the peculiarities of the Zigbee protocol and the settings of the device survey.

Common mistakes and their solutions

Even with the right connection, users often face problems, and here are the most common ones and ways to fix them:

Problem.Possible causeDecision
The sensor is not present when addedZigbee signal weak, battery deadBring the sensor closer to the gateway (a distance) <1 m), replace the battery with a new one (CR2032)
Temperature readings +85Β°CFailure to calibrate after battery replacementRemove the battery on 10.+ minutes, then put it back in.
The sensor is periodically shut down.Interference from other Zigbee devices or Wi-FiChange the Zigbee channel in the gateway settings (optimum 11, 15 or 20)
Mi Home app doesn't see gatewayGateway connected to 5 GHz network or blocked by firewallReconnect the airlock to 2.4 GHz, turn it off. VPN/firewall on the phone

If none of these methods worked, try resetting the gateway to factory settings:

  1. Shut the airlock off the power.
  2. Press the reset button (usually located on the back) and hold for 10 seconds.
  3. Connect the gateway back and add it to the Mi Home as a new device.

Also check if your router is blocking Xiaomi traffic.Some models (like TP-Link or Keenetic) have built-in limitations for IoT devices. MAC-lock address.

πŸ’‘

If the sensor MJSTG1 If you have previously been connected to another gateway, you need to reset it. Remove the battery, then press and hold the button on the sensor (if any) for 5 seconds.

Compatible with different models of Xiaomi smartphones

Mi Home app officially supported on all Xiaomi smartphones under control MIUI 10 and newer, and on devices with HyperOS. However, there are nuances:

  • πŸ“± On older models (e.g. Redmi) 4X or Mi A1) You may not have enough resources to work with a smart home.
  • πŸ“± HyperOS smartphones (e.g. Xiaomi 14 or Redmi Note 13) require the latest Mi Home (at least 6.5.0).
  • πŸ“± On devices without Google services (e.g. Xiaomi for the Chinese market) you may need to install Mi Home via the Internet. APK.

If you are having trouble connecting on a particular model, try:

  • Clear the cache of the Mi Home app in the phone settings.
  • Disable Power Saving Mode for Mi Home (in Settings) β†’ Annexes β†’ Permits β†’ Energy consumption).
  • Install regional firmware (for example, MIUI Global, if you use the Chinese version MIUI.

To check the compatibility of your smartphone with MJSTG1 You can use the official table on Xiaomi's website, but it is often outdated. Alternative way is to check the reviews of users with the same phone model on forums (for example, for example, for users with the same phone model, 4PDA Xiaomi Community).

FAQ: Frequent questions about connection MJSTG1

Can I connect? MJSTG1 directly to the phone without a gateway?
No, MJSTG1 It uses the Zigbee protocol, which requires an intermediate device (gateway) to communicate with the smartphone. Direct Bluetooth connection is not supported. Alternative methods (for example, via a direct connection via Bluetooth). Zigbee2MQTT) require additional equipment.
Why does the sensor show the temperature? +85Β°C?
This is a typical calibration error that occurs after you replace the battery or reset the battery. To fix: Remove the battery from the sensor. Wait 10 to 15 minutes. Put the battery back in and wait for the audible signal. If the problem persists, try reconnecting the sensor to the gateway again.
How to update firmware MJSTG1?
Updating the sensor firmware is only possible through the gateway (if the manufacturer has released a new version). MJSTG1. If an update is available, the Update Firmware button will appear. Confirm the update and wait until it is completed (don't turn the gateway off the power.
What kind of battery should I use for MJSTG1?
The sensor is powered by a single battery type. CR2032 (3 Volts: It is recommended to use high-quality batteries of well-known brands (for example, Duracell, Energizer or Panasonic), as cheap analogues can quickly discharge or cause malfunctions. The average battery life is 1-2 years in standard use.
Can I use it? MJSTG1 street-side?
Technically, the sensor has a range of operating temperatures from βˆ’10Β°C +60Β°C, but its body is not protected from moisture and dust (degree of protection β€” IP44). For outdoor use, it is recommended to: Place the sensor in a sealed case with vents; avoid direct rain or snow; check the readings regularly, as condensate can distort the humidity data.