Post

iOS ≥ 13.1 Shortcuts Automation|Seamless Integration with Mi Home Smart Devices

Discover how iOS 13.1+ Shortcuts enables effortless automation with Mi Home smart devices, solving manual control hassles for smarter living and streamlined home management.

iOS ≥ 13.1 Shortcuts Automation|Seamless Integration with Mi Home Smart Devices

点击这里查看本文章简体中文版本。

點擊這裡查看本文章正體中文版本。

This post was translated with AI assistance — let me know if anything sounds off!


iOS ≥ 13.1 Using the “Shortcuts” Automation Feature with Mijia Smart Home

Directly Use the Built-in Shortcuts App in iOS ≥ 13.1 to Complete Automation Tasks

Introduction

In early July this year, I bought two smart devices: the Mi Home Desk Lamp Pro and the Mi Home LED Smart Desk Lamp. The difference is that one supports HomeKit, while the other only supports Mi Home. At that time, I wrote an article titled “Smart Home First Experience — Apple HomeKit & Xiaomi Mi Home,” which mentioned how to complete away and home modes without a HomePod, Apple TV, or iPad. The steps were a bit complicated.

This time, iOS ≥13.1 (note that automation is available only from version 13.1 onwards) built-in “Shortcuts” app (if you can’t find it, please download it from the Store) supports automation features; if you use IFTTT or Mi Home, you no longer need to rely on third-party apps!

[p.s If you have a HomePod, Apple TV, or iPad, you don’t need to read this article; just set the device as a Home Hub!] (../c3150cdc85dd/)

Achieved Results

Entering or leaving the set area will trigger a shortcut execution notification, which will run automatically when clicked.

How to Use

1. First, open the Mi Home app

Switch to "Mine" -> "Smart"

Switch to “Mine” -> “Smart”

Assuming you have already added the device to Mi Home.

Select "Manual Run"

Select “Manual Execution”

Here, I want to mention again why I don’t directly use Mi Home’s “leave or arrive at a location.” First, GPS used in mainland China has deviations, and Xiaomi hasn’t corrected this. Second, it can only set locations with landmarks on the map, but the Gaode Map in mainland China has very few landmarks in Taiwan.

Dropdown the "Smart Devices" section, add the device and action to operate

Scroll down to the “Smart Devices” section, add the device and action to be performed.

Click "Continue Adding" to include all devices to be operated

Click “Continue Adding” to include all devices to be operated.

For example, in the “Away from Home” mode, I want to turn off the fan and lights; turn on the camera when leaving home.

Click the top right "Save" and enter the name of this smart action

Click the “Save” button at the top right and enter the name for this smart action

Back to list, click "Add to Siri"

Back to the list, tap “Add to Siri”

Click "Add to Siri" next to the smart action you want to add

Click “Add to Siri” next to the smart action you want to add

Enter "Call Siri command" -> "Add to Siri"

Type “Call Siri command” -> “Add to Siri”

Important! Commands must not conflict with built-in iOS commands!

2. Open the 「 Siri Shortcuts 」 APP

Switch to the "Automation" tab, click the "+" at the top right

Switch to the “Automation” tab and click the “+” button at the top right corner.

If the “Automation” tab is missing, please check if your iOS version is above 13.1.

Select "Create Personal Automation"

Choose “Create Personal Automation”

Select type "Arrival" or "Departure"

Select type “Arrival” or “Departure”

Set "Location"

Set “Location”

Search location or use current location, then tap "Done"

Search for a location or use the current location, then tap “Done”

You can set the automatic execution time range below, then click "Next" at the top right

Below, you can set the automatic execution time range. Click “Next” at the top right corner.

Because leaving and arriving home are events that need to be detected around the clock, no execution time range will be set here!

Click "Add Action"

Click “Add Action”

Select "Process Instructions"

Select “Process Instruction”

Scroll to the "Shortcuts" section and select "Run Shortcut"

Scroll to the “Shortcuts” section and select “Run Shortcut”

Click the "Shortcuts" section

Click the “Shortcuts” section

Find the "Command to Call Siri" just set in Mijia's "Add to Siri" settings, and select it

Find the “Siri Command When Calling Siri” that you just set in Mi Home under “Add to Siri,” and select it.

Tap the top right corner "Done"

Tap “Done” at the top right corner

The newly added automation will appear right on the homepage!

The newly added automation will appear right on the homepage!

Done!

Actual Execution Result

When leaving or entering the set address range, your iPhone and Apple Watch will receive a notification to run the shortcut. Tap it to execute!

1. GPS sensing range has an error margin of 100 meters

2. “Automation” here only means automatically notifying you to execute, not truly running actions automatically in the background

To solve the above two issues, you can only use what was mentioned at the beginning of the article: buy a HomePod or use an Apple TV/iPad as the home hub.

On iPhone:

Execution Notification

Execution Notification

Click to "Run"

Click to “Execute”

Please note, unlocking the phone will be required first.

Execution failure will also provide feedback!

Failures will also provide feedback!

Sometimes, Mi Home devices fail to execute due to network issues.

On Apple Watch:

Click to execute

Click to execute

Unlike IFTTT’s native apps, its strength lies in the ability to execute actions directly from watch notifications.
(IFTTT only sends notifications, and you still need to take out your phone to tap and execute)

Besides that

Using Siri to Call and Execute

Using Siri to Trigger Execution

Since the Mi Home smart operation scenes have been added to Siri, you can now use Siri to execute actions!

One step closer to a smart life!

Further Reading

  1. Smart Home First Experience — Apple HomeKit & Xiaomi Mijia (Mijia Smart Camera and Mijia Smart Desk Lamp, HomeKit Setup Tutorial)

  2. Xiaomi Smart Home New Purchases (AI Speaker, Temperature and Humidity Sensor, Scale 2, DC Inverter Fan)

  3. Mi Home APP / Xiao Ai Speaker Region Issue

  4. [Advanced] Demonstrating Using Raspberry Pi as a HomeBridge Host to Connect All Mijia Appliances to HomeKit

If you have any questions or feedback, feel free to contact me.


Buy me a beer

This post was originally published on Medium (View original post), and automatically converted and synced by ZMediumToMarkdown.

Improve this page on Github.

This post is licensed under CC BY 4.0 by the author.