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:
| Method | Equipment required | Difficulty | Pluses | Cons |
|---|---|---|---|---|
| Through the Mi Home Gateway | Xiaomi Mi Gateway + Mi Home appendix | β | Official support, simple setup | Purchase of the lock required (~2000β3000 β½) |
| Through the Aqara Hub | Aqara Hub + Aqara Home appendix | ββ | More stable operation, support for automation | Gateway is more expensive than Mi Gateway |
| Through Zigbee2MQTT | Gateway down CC2531/CC2652 + Home Assistant | ββββ | Maximum flexibility, no cloud binding | Complicated 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.
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
- Open the Mi Home app and go to Devices β Add Device.
- Select the Gateway category and find your device model (e.g. Xiaomi Mi Gateway 3).
- Click Add and follow the instructions on the screen. The gateway should flash yellow.
- Connect the gateway to a Wi-Fi network (2.4 GHz only!).
Step 2. Connect the sensor MJSTG1
- Go back to Add Device and select Sensors category.
- Find it. MJSTG1 (The device is called the MiJia Temperature and Humidity SensorΒ»).
- Press Add and insert the battery into the sensor (if you haven't already).
- 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:
- Install the Aqara Home app and sign up.
- Add your Aqara Hub to the app (similar to Mi Gateway).
- Go to Add the device β Sensors. β Temperature and humidity sensor.
- Activate the sensor MJSTG1 (Put the battery in and wait for the signal.
- 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:
- When you add, select the option Other device.
- Manually specify the model MJSTG1 or WSDCGQ01LM (sensor).
How to check the version of the sensor firmware?
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:
- Connect the adapter to your computer or Raspberry Pi.
- Install. Zigbee2MQTT Configure the configuration file to support MJSTG1.
- Add the sensor to the network via the web interface Zigbee2MQTT.
- 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 cause | Decision |
|---|---|---|
| The sensor is not present when added | Zigbee signal weak, battery dead | Bring the sensor closer to the gateway (a distance) <1 m), replace the battery with a new one (CR2032) |
| Temperature readings +85Β°C | Failure to calibrate after battery replacement | Remove the battery on 10.+ minutes, then put it back in. |
| The sensor is periodically shut down. | Interference from other Zigbee devices or Wi-Fi | Change the Zigbee channel in the gateway settings (optimum 11, 15 or 20) |
| Mi Home app doesn't see gateway | Gateway connected to 5 GHz network or blocked by firewall | Reconnect 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:
- Shut the airlock off the power.
- Press the reset button (usually located on the back) and hold for 10 seconds.
- 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).