1. Current Location: Home >  Xiaomi (MIWiFi) >  As soon as the phone connects to WiFi, the entrance light turns on, so I use the Xiaomi router as the trigger for going home

As soon as the phone connects to WiFi, the entrance light turns on, so I use the Xiaomi router as the trigger for going home

Xiaomi router as a home trigger: when your phone connects to WiFi, the entrance light lights up automatically, and when connected to Mijia's automation device, the trigger configuration and three pitfalls

When I recently wrote about the the homecoming mode, my trigger condition was a door lock—when the door opens, the entrance light and air conditioning turn on accordingly. People keep asking in the comments: Can you trigger it with your phone's location? When you're almost home, the lights come on first—it's more dignified. I never dared to go up. I've experienced the geofence floating method: you're still in the elevator, the location floats to the door, lights are on and the air conditioning is on and the air conditioning is running. Once inside, the room feels completely cool.

Later, I checked the Mijia app and realized that the AX3000T at home was a ready-made trigger. Once your phone connects to the home WiFi, the router knows before anyone else. Leaving this event to Mijia is a perfect one-time "home-to-door" error. In the gamer community, this is called a WiFi fence—not spending a penny. Today, I'll go through the entire process of fitting, the pitfalls I made, and the security door I got for free.

To clarify: the router is a security guard at Mijia

Once the router is linked to Mijia, it acts as a trigger device in automation, capable of sending two types of events: a device is connected (connected to WiFi), and another device is disconnected (disconnected). It recognizes devices by MAC address, which is the network card's ID card, MAC article mentioned that routers never look at you from start to finish, only recognize this card.

Using this trait to judge whether someone is at home is more practical than positioning. Positioning is guessed—GPS drift, base station drift, WiFi-assisted positioning followed by drifting; Connecting your phone to your home WiFi is a physical fact; once connected, you're home. Unless someone sneaks into your home to secretly connect to your network, that's a whole different issue.

There is only one condition: the family's phones must automatically connect to WiFi. WiFi is the kind you have to click manually. When you're standing at the door, you still have to take out your phone first. The trigger won't save this idle person.

The

three-step homecoming mode is for the wife's phone

Open the Mi Home app, go to "Smart" at the bottom (some versions call it Smart Scene), add the plus sign in the top right to create new automation, scroll down the trigger conditions, find "Xiaomi Router," select the event "Device Access," and some firmware versions call it "Device Online," which means the same thing. Next, pick out equipment. Here's a tip: don't try to save money by picking "any device"—my home has over sixty devices hanging around, the vacuum cleaner starts up at midnight, the old printer reconnects after waking up, and whenever you connect to any of them, the lights are on. That home feels like a disco. Specify the person: my wife's iPhone 12 is a separate one, mine is a single phone.

I used the same setup

as the door lock: the entrance light was set to 80%, and the air conditioner companion set to 26 degrees. After saving it, I pulled my wife downstairs to pick up the package. Test: Before even taking out my phone when I entered the unit, I walked to the door and the WiFi automatically connected. The moment I opened the door, the light was already on. From connecting the phone to the light coming on took two or three seconds—half a beat faster than triggering the door lock—the door lock had to wait for her to use fingerprint, while the router waited for the phone to jump on itself.

If the trigger condition does not include the "Xiaomi router" option, it's 90% likely the router hasn't been bound to Mijia. Go bind it first ( the toolbox article has already covered the entry point); Even after tying it, you still can't find it. It's just that the model is old and doesn't support this trigger source. Don't force yourself—the door lock works just like the sensor.

Don't rush to set up Away from Home mode; accidentally triggering it can leave your family in the dark

"Device disconnected" triggered by leaving home—a beautiful idea: once your phone cuts off WiFi, you're gone. Only when you actually pair it do you realize how unreliable it is—the router doesn't judge a device going offline that fast, but if your phone lock screen saves power, the signal flutters, or you walk around the hallway, it will all think it's disconnected. The official system uses image stabilization, and before making a conclusion, they look at the connection performance in the few minutes before the device disconnects. So from when the person actually leaves to when Mijia confirmed 'the person left,' it can be as fast as a few minutes, or even slower for a while.

This delay itself isn't a problem; the problem lies in misjudgment. The wife went downstairs to throw out the trash, her phone disconnected once in the hallway, the whole family enforced a power cut off from home, and the child was blacked out doing homework on the spot. So in away mode, I added two insurances: first, it triggers a ten-minute buffer that follows the way, so if the phone reconnects within ten minutes, it's considered nothing; Second, change the trigger condition to "everyone's phones disconnected"— The Homecoming mode post mentioned this pitfall. By default, "any person leaves" will leave the room in the room to the room.

After getting two insurances and cutting off power when leaving home, I dare to actually use this system. I thought ten minutes was too long, so I advised you to endure it. When it comes to smart homes, speed isn't necessarily a good thing.

I went through all three pitfalls one by

one

The biggest pitfall is the iPhone's private address. Starting with iOS 14, Apple assigns a random MAC to each WiFi by default, and swaps it out again after a while. Today, the router recognizes this card; tomorrow, if you replace your phone, the trigger will go blind on the spot—the lights at home won't work, and you won't even guess what happened here. Solution: In WiFi details, turn off "Private Wi-Fi Address," or at least select "Fixed" for the home network. Android's random MAC is the same principle, changed to 'Use Device MAC.' He checked every family member's phone one by one—this step couldn't be slacking off.

The second pitfall is cutting off the external network. The trigger occurs on the router, but this automation rule was evaluated on Mijia Cloud—once the broadband is cut off, the phone can't connect to WiFi, and the home light won't turn on. Even if you want to disconnect the internet, it still runs. You have to rely on central gateway to move the linkage to the local area. After my central hub was in place, I tried unplugging the optical modem, and when it was triggered by the connection, Zigbee lights worked without delay. For families without a central foundation, treat it as a bonus, not as a life-saving dependent.

The third pitfall is connecting to the wrong network. The visitor network, IoT private network, and mainnet are separate. If your daughter-in-law's phone accidentally connects to the visitor network, the mainnet's trigger will still be confused. Home rules are fixed: people's devices are anchored to the main network, guest network is reserved for guests, and the robot vacuum cameras are sent to the private network.

A

free security door: Unknown device access alert

On the day I set up the trigger, I casually found a 'Unknown Terminal Connection Warning' in the router plugin. It's an official feature—if an unfamiliar device connects to your home WiFi, it immediately gets notified. That post about checking the mounding site where I got a notification late at night to catch a stranger's phone was thanks to it. It and the home trigger are actually a foundational system—the router's device access events, feeding one part to automation, one part to your phone.

This reminder has side effects: when you add new equipment at home or the printer in the elderly room's room fails power and reconnects, it always pops up. I thought about turning it off because I was annoyed, but then I realized it was true—every pop-up was 'Someone is messing with your network.' Take two seconds to glance at the name, let those you know let go, and those you don't get banned. It's better than going back to investigate after something happens.

By the way, this notification only works when the router is connected to the internet; if broadband is disconnected, it goes down along with the trigger. So if you really care about the devices at home, you need to have local storage for surveillance cameras, and notifications are warnings, not recording.

Three types of home triggers, one table to clearly select

Is ? ? What ? , connect , you can free
the trigger method accurateHow fast is the alarmdoes it depend on
Mobile location (geofence) drifts, and you'll get home in the elevator. Fast, Kuaiguotou Free mobile location + Mijia Cloud
The door lock is accurate when unlocking, but you need to actually open the door in seconds. You need a smart locklock battery level + cloud
router devices,your phone to a real connection, and at bestget the router forin two or three secondsWiFi auto-connects + cloud, with a hub for local
support

My final setup is a two-layer relay: keep the lock as is, with sunset conditions, only turn on air conditioning when entering during the day, and only use lights at night; The router trigger is in front, and the phone is already connected to the internet during the two seconds when you take out your keys at the door. The air conditioner starts up first, and when the door opens, the light comes on. The geofence was completely retired, and after the accidental trigger in the elevator, I never believed in it again.

Here's a straightforward order: First, turn off random MACs on your family members' phones one by one, then try connecting devices to trigger for two days. Once it's stable, add away mode (remember the ten-minute buffer and 'Everyone Leave' as safeguards), and finally turn on the unfamiliar device reminder without turning it off. After completing these four steps, the router finally completed the gatekeeper's work.

Read More


Copyright Notice Scan to read on mobile
All Rights Reserved: 《SHUNOT》 => 《As soon as the phone connects to WiFi, the entrance light turns on, so I use the Xiaomi router as the trigger for going home》
Article URL: https://www.shunot.com/en/miwifi/1336.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