A Simple Smart Home Practice

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」:

喀纳斯

今天是十月廿九日,这里难得的出太阳了。今天不想工作,也不想学习。屏幕解锁后发现昨晚没有完成充电,好在工作也不多,就给了磨洋工正大光明的借口。罢了,写博客罢。

最近的牢骚多了很多。但是「闲言流语不能帮助任何人。那写博客也算是闲言流语吗?我想是的,但又不太一样。博客的每一篇闲语都有标题,而标题是要想的」。这是博客中的闲语比评论区的牢骚更好的地方。

在此地工作已有一月,其实根本算不上「入职」,或许是「供职」。目前的状态似乎与预想不太一致。「天气不似预期」但更没有再抱怨任何的理由,因为「必须接受结束,必须接受是在这里,而不是在别的任何地方,是在做这个而不是别的什么事情,现在,永远,永远……必须接受这份生活,唯它而已。」

这是我第一次工作。省级机关的职能部门,工作远没有想象中的那么轻松,虽说不涉及太深入的专业知识,但事务确是繁杂的。但繁杂远非繁忙,更非「压榨」。事实上,只有一天加班到17:30,而这一周我也屡次在9:05后就座。但长时间的通勤以及不间断的事务仍让我感到疲累。

其实也说不上「身心俱疲」,在早晨和夜里我仍有充足的时间去复习,基本可以做到一天一套真题。好景不长,随着「学徒之心」逐渐消退,我的意志也逐渐消磨。我不再早起,每天都让闹钟在7.30响起;我也不再晚间学习,似乎又回到了一个月前。我用工作带来的倦意做挡箭牌,饮鸩止渴罢。

我的情绪变得不稳定起来,我又开始自言自语。在情绪稳定时还能做题学习,一旦心中泛起波澜,就会进入到「奶头乐」的循环以期转移视线。日复一日,我终于还是落入了过去是那么嗤之以鼻的「监视资本主义」陷阱。

我渴望像「李如一、Mag Mell」等前辈一样,他们在「恶世纪」中是那么的与众不同,在他们的文字中我真切的感受到人性光辉。价值观的输出向来是一件难事。我想我不能将所有的失败、沮丧和一切消极归因于消费主义,像「Mag Mell」一样,我正「在生活中迷失,被常年累积以来的虚无、盲目、失败,加上消费主义对于我的异化,使我失明。昼夜颠倒,人魂出离。」

但基调不变也不能变:「在颓败氛围同时势,仍然保持美态咁解。」这也正是这篇博客存在的意义,我正尝试振作自己。

当然,也不全是坏事。父亲的手术还算顺利,这在相当程度上带来了慰藉。
现在是周五的16:55:47,我要去到「喀纳斯」了,希望你也是。
周末愉快。

© 双绞麻痹 numb.tech

感谢阅读 | 未经许可,恕不转载