1. Current Location: Home >  Xiaomi (MIWiFi) >  Mijia's thirty automated scenes were nowhere to be exported. I moved them manually when changing routers.

Mijia's thirty automated scenes were nowhere to be exported. I moved them manually when changing routers.

Mijia automation scene migration: The scene is divided into triggers and actions, and the four steps of moving the sub-device after changing the router are broken.

The cause of the incident was that my AX3000T had been in service for two years and was replaced with a BE3600. Changing the router itself is not complicated. Just fill in the broadband account and copy the WiFi name and password. Not one of the twenty Mijia devices was lost - I have written about this step before. What can be synchronized with the same account when switching to a new machine? You have to move the four items yourself. . I thought that was it, but the next morning I realized something was wrong: The light in the entrance hall came on before I opened the door. I woke up in the middle of the night and stepped on it, and the temperature and humidity linkage dehumidifier also stopped.

Open the Mijia App and turn to the automation page. Thirty scenes are lying in the list. You can click on them one by one. Half of the scenes say "Device does not exist". The reason is not complicated: In those scenarios, the sub-devices under the Bluetooth gateway of the router were used as triggers. Once the router was replaced and the old gateway was offline, the thermometer, hygrometer and door sensor hung in the trigger became "non-existent devices". The scene itself is there, but the parts in the scene are scattered.

I spent a long time browsing in the app, trying to export these scenes and make a backup copy, but I concluded that there is no such way. Mijia's automation scenes do not support export, and there is no so-called "one-click migration". If you want these thirty scenes to run in a new environment, there is only one way: Rebuild one by one. I moved all thirty scenes in one night. I went back and wrote down the order and method so that anyone who changes routers, gateways, or accounts can follow them.

Think about it first: A scene is broken down into triggers and actions.

Before moving, you must first understand the scene. Otherwise, you will stare at thirty scenes and not know where to start. Every automation scene in the Mijia App can be disassembled into three pieces.: Trigger (start when the condition is met) + action (what operation to perform) + condition (optional, filter again) . For example, in my "porch light turns on when the door sensor is opened", the trigger is the "open door" event of the door sensor, and the action is the "porch light turns on". 「"When the humidity of the thermometer and hygrometer is higher than 70%, turn on the dehumidifier." In this article, the trigger is the numerical condition of the thermometer and hygrometer, and the action is to energize the socket.

It is these three parts that are moved when moving. Whether a part is broken or not depends on who it is hung on. Mijia equipment is divided into two types:: One is WiFi direct connection For example, lights, sockets, and cameras are connected to the router by themselves. If the router is changed, they will not be affected if the SSID password remains unchanged. ; The other is subdevice , use Bluetooth or Zigbee and hang it under a certain gateway, such as temperature and humidity meter, door sensor, wireless switch - if the gateway is changed or the distribution network is restarted, the sub-device must recognize the new gateway again. My family’s pain points all lie in the second type, because the AX3000T Bluetooth gateway manages six or seven sub-devices.

So the first step in moving is not to build a scene; First move the sub-device under the new gateway . There is an existing path to this: Subdevice details page in Mijia App → Select "Change Gateway" in device settings or delete and rebind. Bluetooth sub-device rebinds quickly. Press and hold the reset button for five seconds, click Add Device in the App, and it will be recognized in a few dozen seconds. The trouble with Zigbee is that you have to put the new gateway into network distribution mode first. Fortunately, my BE3600 has a Bluetooth gateway like the old AX3000T, and the sub-device can be moved directly over. If the new router does not have this function, I will have to buy a multi-mode gateway or hub separately. This pitfalls me. Check the 31.1 backend to see which models cannot be used as Bluetooth gateways I wrote in that article, check before buying.

Backup before moving: Homemade solution but life-saving

There is no export button for Mijia scenes, but you can make a backup yourself. What I do is Take screenshots of each scene before rebuilding : Go to the editing page of each scene, take a screenshot of the trigger, conditions, and actions, and save them in an album. More than 60 pictures were taken from 30 scenes. They look stupid, but when you reconstruct them later, you will know that these pictures are valuable - copying from pictures is ten times more reliable than recalling them from memory. Especially those scenes with numerical conditions, such as the humidity threshold of 70% or 75%, and the effective time period from what time to what time, it is impossible to match it from memory.

In addition to screenshots, I will write down each scene in a memo in one sentence, in the format of "trigger → action → condition". example: 「The door sensor opens the door → the entrance light turns on → it does not take effect from 22:00 to 6:00 the next day.” The process of writing it down is equivalent to forcing yourself to go through the logic again. As you go through it, you will be able to discover which scenes should be eliminated. I picked out four losers out of the thirty.: One is "Notify me when the router restarts" from the old router era, the other is to link a small speaker that has been thrown away, and the other two have duplicate functions. After cutting down, there are only 26 left, and the workload of reconstruction is directly reduced by 10%.

By the way, functions like "My → Scene Sharing" in the Mijia App that look like backup are actually for sharing with others, not for backup. Family sharing management router That set is a matter of account permissions, and exporting and restoring scene data are two different things. Don't expect it in the wrong direction.

Rebuilding order: Equipment first and then scene, stand-alone first and then linkage

If the order is wrong, the rework will be doubled. This is the lesson I learned on the first night. The correct sequence is four steps, and you cannot skip any step.:

The first step is to get all the equipment back in place. The WiFi device is confirmed to be online, and the sub-device is moved to the new gateway. Only when the equipment list is green can you be qualified to talk about scenarios. If the device itself is still offline, go to the Mijia App device offline troubleshooting The number of steps in that article, don’t rush to build the scene.

The second step is to reconstruct the simplest scene first. Triggered by a single device and with only one action, such as a wireless switch controlling a socket. This kind of scene can be built in two minutes, and tested on the spot after the construction is completed - if you press the switch, the socket will ring or not respond. The value of building something simple first is to verify the path: Triggers can be fired, actions can be executed, notifications can be sent to the mobile phone, and the entire link is alive.

The third step is to reconstruct the complex scene with conditions. Timing type, numerical threshold type, multi-person trigger type. The pitfalls of this kind of scene lie in the details: The "Repeat Date" of the effective period only checks the current day by default. You have to manually change it to every day. ; The numerical condition of the anti-shake parameter "triggers only after ten minutes" is copied from the screenshot. I got into trouble myself once: The humidity linkage was not triggered that night after it was rebuilt. After checking for a long time, I found that the "Only when the device is at home" switch in the trigger condition was turned on by default, and the temperature and humidity meter was positioned under the gateway without the "at home" attribute, so the condition was never established. If you don't understand the switch on the condition page, you'd rather turn it off than leave it as default.

The fourth step is to rebuild the "human" category and cross-device. Those triggered by mobile phone geofence and door lock unlocking are placed last. This kind of advanced event that relies on mobile phone positioning and equipment involves a lot of things, so wait until everything is stable before moving forward. I have written a special article before about the pitfalls of geofencing. Complete configuration of home mode linkage , where the things like floating fences and snatching and triggering of family members’ cell phones were explained in detail.

In which scenarios will silent failure occur after changing the router?

This is the most sinister part: Some scenarios will not report an error, but will not be executed. When you look through the app, the scene is lying there, and the trigger device is online, but it just doesn't move. I tested them one by one before rebuilding, and concluded three forms of silent failure.:

Failure state surface phenomenon Practical reasons
The trigger hangs up the old gateway sub-device The scene shows "The device does not exist.」 The sub-device has not been moved to the new gateway yet.
The device in the action has been changed to a binding The scene can be triggered, but the action is not executed. The scene was not updated after the action equipment was deleted and reconfigured.
The scene is still there but the account has been changed The entire scene disappears from the list The scene follows the creation of an account, but the new account cannot be seen.

The first two will be encountered when changing routers, and the third type will be encountered by people who change mobile phone numbers and accounts - Mijia scenes belong to the account name that created them. Scenarios created by your family members using their own accounts cannot be seen or controlled in your account. So before moving, say hello to the people who have built the scene at home, and let each of them guide their own "assets". Troubleshooting the account of the router that cannot be found in the Mijia App In that article, I wrote about how to confirm which account you have logged in to, and confirm it before changing phones.

There is also a category that is not considered invalid but is easily misjudged.: The scene runs as usual, but Execution is slow . In the scenario of using the cloud link, there is a delay of two to three seconds from triggering to execution. If the DNS changes or a different forwarding path is taken after changing the router, the delay will occasionally be lengthened. This isn't a broken scene, it's a matter of the link. I can’t tell whether the scene fails or the link slows down. Let’s take a look. Troubleshooting five switches that are not executed when automation reaches the point , where the complete triage sequence is written down.

Review Checklist of Twenty-Six Scenarios

The rebuilding is not complete, it must be inspected one by one. I followed the list below and did three passes for each scene.:

Review items How to test Qualification standards
trigger response Manually create a trigger Action devices respond within 10 seconds
conditions take effect Trigger again outside the effective period If it is not necessary, it will not be executed.
Mobile notification Look at the notification bar Execution result messages can be received

For scenes where all three passes are passed, I will put a check mark behind the record in the memo. Of the twenty-six scenes, nineteen were completed in the first pass, and the remaining seven had some flaws.: Three are because the condition parameters were copied wrong (one time period was copied wrong, and the humidity threshold was copied to 65%), two were because the action sequence was "parallel" instead of "sequential" originally, and two were simply the wrong device was selected for the trigger - there were two thermometers and hygrometers at home with the same type of equipment, and the other was selected as the trigger. None of these errors were reported by Mijia, they were all detected by me. So don’t skimp on this list, as skipping it will only embarrass your home.

Finally, keep a time account. Thirty scenes were cut down to twenty-six through backup screenshots and eliminations, and reconstruction and full review. I worked on it from 10 o'clock in the evening to 1 in the morning, and went through the screenshots twice in the middle. If there are only five or six scenes in your home, it can be done in a few hours. ; If there are fifty people on the scene, it is recommended to split it into two nights. There is no shortcut for this. I don’t know when Mijia will provide the scene export function. Before that, screenshots and memos are the most stable “backup solution”. Back up before changing the machine, copy and rebuild after changing the machine, and review the three steps after completing the process. Only after completing this process can the automation set in your home be truly moved.

Read More


Copyright Notice Scan to read on mobile
All Rights Reserved: 《SHUNOT》 => 《Mijia's thirty automated scenes were nowhere to be exported. I moved them manually when changing routers.》
Article URL: https://www.shunot.com/en/miwifi/1592.html
Unless otherwise stated, all articles are original by 《SHUNOT》. Reposting is welcome! Please indicate the original URL when reposting, thank you.

Contact Us

Online Consultation: Click here to send me a message

WeChat ID: master_135

Scan to follow