Hey Siri,turn on my doge light and switch it to 100 percent.

Hey Siri,help me disconnect the power pls.

Mirror mirror tell me, who is the most beautiful in the world?

It’s been a really long time since I wrote my last technical article.I graduated successfully with my graduation project 《The design and implementation of the Raspberry Pi and MagicMirror based daily intelligent helper》.As for that project,the abstract of my paper says so:

With the continuous development of society and technology, more and
more new items are getting involved in people’s family life. Under the
continuous leadership of national policies, the smart home industry is
developing strongly. However, the high price of smart devices and the
complicated technical details of them also make the threshold of smart home
rise.

This paper first explores the development status of the smart home
industry and proposes an innovative and practical way to implement a daily
smart assistant that transforms existing devices on its basis; and describes
the corresponding feasibility and requirement analysis; finally, it introduces
the related technology and development process in detail.

This project is rooted in the Raspberry Pi platform, combined with the MagicMirror framework, which is currently open source, with a large number of users and a good developer environment, supplemented by various hardware devices, to design and make a low-cost, low-threshold, low-power daily intelligent assistant.

But today Im goona talk about two other smart home scenarios:

Getting Started

Note:This article just provides a general idea of smart home practice that everybody could afford and does not involve any actual coding part.It is quite friendly to non-specialists.So just take your first step and enjoy it!

Introduction

  • Scenario 1: As an OCD sufferer,i am ALWAYS aware of the power condition of all the outlets in my house,especially the chargers.When the battery of various devices is charged to 100%,i always want to unplug it manually.

  • Scenario 2: When your room doesn’t equip with a bedside light switch,all you can do is turn off the light switch by the door then reach your bed in the dark SADLY.

As a developer or an internet explorer you should always believe in that science and technology is the first productive force. Without further ado,let’s move on.

Requirements

Hardwares

I use iOS devices,so i chose works with Apple HomeKit devices.

  • Yeelight smart LED filament bulb(IEEE 802.11 b/g/n 2.4GHz)

  • DoHome smart outlet(IEEE 802.11 b/g/n 2.4GHz)

  • A Cute puppy(BY FEELING LONG HAIR DOG LAMP gift for my girlfriend lol)

Operating Environment

  • iOS 15.1

  • Apple HomeKit

  • iOS Shortcuts

  • IEEE 802.11 b/g/n 2.4GHz WLAN

Installation/Configuration

Ensure the network is running at 2.4GHz and Take relevant safety precautions. Such as strong passcodes or MAC address whitelist or disable public network access.

For Scenario 1:

  • Simply power up the smart outlet.

  • Download DoHome app on your iOS devices.

  • Initialize the outlet according to DoHome app guide and add it to Apple Home.

  • Open Shortcuts app,tap Automation,tap +,press Create Personal Automation,swipe down and tap Battery Level—–When Battery Level Equals 100%—–Next—–Add Action—–serch Home—–control–outlet’s name—–Selected—–Turn off—–done—–Unselect Ask Before Running DONE!

For Scenario 2

  • Simply put the bulb into the lamp holder and power it up.

  • Download Yeelight app on your iOS devices.

  • Initialize the bulb according to Yeelight app guide and add it to Apple Home.

Demo

「Hey Siri, turn on my doge light」: