当检测到运动时如何自动打开门灯

IMG_2947_stomped

If it’s dark out and someone comes to your door, you probably can’t see them unless your porch light is on. Furthermore, if a potential burglar approaches your front door, a motion light can help scare them away.

如果天黑了,有人进了您的门,除非您的门廊灯开着,否则您可能看不到他们。 此外,如果一个潜在的盗贼接近您的前门,那么运动灯可以帮助将它们吓跑。

There are a handful of ways you can implement a motion-sensing front porch light. The cheapest way is to get one of those motion-sensing light socket adapters. However, they likely won’t even work in most porch light fixtures. If that’s the case, then you can completely upgrade the light fixture itself and get one that has built-in motion sensing capabilities.

您可以通过多种方法来实现运动感应前廊灯。 最便宜的方法是获得这些运动感应灯插座适配器之一。 但是,它们甚至可能无法在大多数门廊灯具中使用。 如果是这种情况,则可以完全升级灯具本身,并获得具有内置运动感应功能的灯具。

If you already have a few smarthome devices, though, making a motion-sensing setup is very easy. You could do this with a Nest Cam, Ring Doorbell, SkyBell HD, or even a motion sensor (basically anything that can sense motion), along with smart light bulbs like Philips Hue, Belkin WeMo, GE Link, Osram Lightify and more. The easiest solution would probably be to get a Hue Motion Sensor if you use Hue lights, as the setup is really easy and gives you a lot of control over what your lights do when they detect motion.

但是,如果您已经有一些智能家居设备,则进行运动感应设置非常容易。 您可以使用Nest Cam,Ring Doorbell,SkyBell HD甚至是运动传感器(基本上可以感应运动的任何东西),以及飞利浦Hue,Belkin WeMo,GE Link,Osram Lightify等智能灯泡来实现。 如果您使用色相灯,最简单的解决方案可能是获得色相运动传感器,因为该设置非常简单,并且可以在您的灯检测到运动时对其进行很多控制。

However, if you already have the necessary smarthome products, you can just go ahead and use those. For this tutorial, we’ll be using the Ring Doorbell as the motion sensor and a Philips Hue light bulb for our porch light, but if you have anything else, the tutorial will be easy to follow and tweak.

但是,如果您已经拥有必要的智能家居产品,则可以继续使用它们。 对于本教程,我们将使用环形门铃作为运动传感器,并使用飞利浦Hue灯泡作为门廊灯,但是,如果您还有其他内容,则该教程将易于遵循和调整。

To do this, we’ll be using IFTTT, which allows users to connect all sorts of products and services together that you normally wouldn’t be able to connect otherwise, which will likely be the case if you want one smarthome product to trigger another smarthome product. If you haven’t used IFTTT before, check out our guide to getting started for info on how to create an account, connect apps, and build recipes.

为此,我们将使用IFTTT ,它使用户可以将通常无法连接的各种产品和服务连接在一起,如果您希望一种智能家居产品触发另一种智能家居产品,则可能会出现这种情况。智能家居产品。 如果您以前从未使用过IFTTT,请查看我们的入门指南,以获取有关如何创建帐户,连接应用程序和构建配方的信息。

For your convenience, we’ve already created the necessary recipe in its entirety and embedded it below, so if you’re already an expert with IFTTT, just click the “Add” button. You’ll need to connect the Philips Hue channel and the Ring channel if they aren’t already.

为了方便起见,我们已经完整创建了必要的食谱并将其嵌入下面,因此,如果您已经是IFTTT的专家,只需单击“添加”按钮。 如果尚未连接Philips Hue频道和Ring频道,则需要将它们连接起来。

IFTTT Recipe: If motion is detected, turn on porch light connects ring to philips-hue

If you want to customize the recipe (which you’ll likely want to do if you want to use other devices besides Philips Hue or the Ring Doorbell), here’s how we created it. Start by heading to IFTTT’s home page and click “My Recipes” at the top of the page. Make sure you’re logged in.

如果您想自定义食谱(如果您想使用Philips Hue或Ring Doorbell以外的其他设备,则可能要这样做),这就是我们创建食谱的方式。 首先前往IFTTT的主页,然后单击页面顶部的“我的食谱”。 确保您已登录。

ifttt-7_stomped

Next, click on “Create a Recipe”.

接下来,点击“创建食谱”。

ifttt-8_stomped

Click on “this” highlighted in blue.

单击以蓝色突出显示的“此”。

ifttt-9_stomped

Type “Ring” in the search box or find it in the grid of products and services below that. Click on it when you find it.

在搜索框中输入“环”,或在其下方的产品和服务网格中找到它。 找到它后单击它。

Screen_Shot_2016-07-25_at_10_52_09_AM_stomped

Next, on the “Choose a Trigger” screen, click on “New Motion Detected”.

接下来,在“选择触发器”屏幕上,单击“检测到新动作”。

Screen_Shot_2016-07-28_at_11_41_14_AM_stomped

Click on the drop-down menu and select your Ring Doorbell from the list (there will likely only be one to choose from anyway). Click on “Create Trigger”.

单击下拉菜单,然后从列表中选择“环形门铃”(无论如何,只有一个可供选择)。 点击“创建触发器”。

Screen Shot 2016-07-25 at 10.54.45 AM_stomped

Next, click on “that” highlighted in blue.

接下来,单击以蓝色突出显示的“那个”。

Screen Shot 2016-07-28 at 11.42.27 AM_stomped

Type “Philips Hue” in the search box or find it in the grid of products and services below that. Click on it when you find it.

在搜索框中输入“ Philips Hue”,或在其下方的产品和服务网格中找到它。 找到它后单击它。

Screen_Shot_2016-07-25_at_10_55_43_AM_stomped

Now you’ll choose what your porch light will do whenever motion is detected. In this case, click on “Turn on lights”.

现在,您将选择每当检测到运动时您的门廊灯将做什么。 在这种情况下,单击“打开灯”。

Screen_Shot_2016-07-28_at_11_43_24_AM_stomped

Next, you’ll choose which Hue bulb you want to turn on. Unfortunately, with IFTTT’s limitations with Philips Hue, you can either only select one bulb or all your Philips Hue bulbs–you can’t pick and choose multiple bulbs.

接下来,您将选择要打开的色相灯泡。 不幸的是,由于IFTTT对Philips Hue的限制,您只能选择一个灯泡或所有Philips Philips Hue灯泡,而不能选择多个灯泡。

Screen Shot 2016-07-28 at 11.45.11 AM_stomped

Luckily, you probably only have one porch light fixture that you’d want to turn on, so select it from the list and then click on “Create Action”.

幸运的是,您可能只有一个要打开的门廊灯具,因此从列表中选择它,然后单击“创建动作”。

Screen Shot 2016-07-28 at 11.45.18 AM_stomped

On the next page, give your recipe a custom title if you want and then click on “Create Recipe”. After that, the recipe will be live and from now on, whenever your Ring Doorbell detects any kind of motion, your porch light will automatically turn on.

在下一页上,根据需要为您的食谱指定一个自定义标题,然后单击“创建食谱”。 此后,该配方将生效,从现在开始,每当您的Ring Doorbell检测到任何动作时,您的门廊灯就会自动打开。

Screen Shot 2016-07-28 at 11.46.10 AM_stomped


Of course, the only downside to something like this is that the light will stay on until you manually turn it off, which is why just getting the Hue Motion Sensor might be the best bet. You can sort of fix this by creating another IFTTT recipe to have the light turn off every day at a certain time, or forget about the motion detection entirely and just have the light automatically turn on at dusk and turn off at dawn by using Routines in the Philips Hue app.

当然,类似的唯一缺点是直到您手动将其关闭之前,指示灯都会一直亮着,这就是为什么最好选择Hue Motion Sensor的原因。 您可以通过创建另一个IFTTT配方来解决此问题,方法是每天在特定时间关闭灯,或者完全不用进行运动检测,而只是通过使用Routines来自动在黄昏时打开灯并在黎明时关闭灯。飞利浦Hue应用程序。

翻译自: https://www.howtogeek.com/264922/how-to-automatically-turn-on-a-porch-light-when-motion-is-detected/

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/280428.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

分布式系统的那些事儿(六) - SOA架构体系

有十来天没发文了,实在抱歉!最近忙着录视频,同时也做了个开源的后台管理系统LeeCX,目前比较简单,但是后续会把各类技术完善。具体可以点击“原文链接”。 那么今天继续说分布式系统的那些事。 我们现在动不动就讲分布式…

rest_framework07:权限/频率/过滤组件/排序/异常处理封装Response对象

权限 写一个类,继承BasePermission,如果通过返回True,否则False 这里需要配合认证使用,否则没有user_type属性。 from rest_framework.permissions import BasePermissionclass UserPermission(BasePermission):def has_permis…

在阿里,我们如何管理测试环境

为什么80%的码农都做不了架构师?>>> 作者:林帆(花名金戟),阿里巴巴研发效能部技术专家 相关阅读:在阿里,我们如何管理代码分支 前言 阿里的许多实践看似简单,背后却蕴涵…

数据库_7_SQL基本操作——表操作

SQL基本操作——表操作 建表的过程就是声明列的过程。 表与字段是密不可分的。 一、新增数据表 create table [if not exists] 表名( 字段名字 数据类型, 字段名字 数据类型 -- 最后一行不需要逗号 )[表选项];if not exists:如果表名不存在,那么就创建,…

EXT.NET 更改lable和Text的颜色

2019独角兽企业重金招聘Python工程师标准>>> &#xfeff;&#xfeff; <ext:TextField ID"TextField1" " runat"server" FieldLabel"编号" LabelWidth"60" LabelAlign"Left" LabelStyle"color:red…

rest_framework08:分页器/根据ip进行频率限制

分页器 # 查询所有&#xff0c;才需要分页 from rest_framework.generics import ListAPIView# 内置三种分页方式 from rest_framework.pagination import PageNumberPagination,LimitOffsetPagination,CursorPaginationPageNumberPaginationclass MyPageNumberPagination(Pag…

NYOJ746 整数划分

该题是一道区间DP的题目&#xff0c;做了几道区间DP&#xff0c;说起来高大上&#xff0c;也就是DP在区间内的形式而已&#xff0c;核心思想还是要想到转移->规划。 题意是在n位数中间加m个称号&#xff0c;使得最终乘积最大。 状态转移方程如下&#xff1a; dp[ i ][ j ]ma…

Spring MVC实现文件下载

方法一&#xff1a; RequestMapping("/testHttpMessageDown")public ResponseEntity<byte[]> download(HttpServletRequest request) throws IOException {File file new File(request.getSession().getServletContext().getClassLoader().getResource("…

[MobX State Tree数据组件化开发][3]:选择正确的types.xxx

?系列文章目录? 定义Model时&#xff0c;需要正确地定义props中各字段的类型。本文将对MST提供的各种类型以及类型的工厂方法进行简单的介绍&#xff0c;方便同学们在定义props时挑选正确的类型。 前提 定义props之前&#xff0c;有一个前提是&#xff0c;你已经明确地知道这…

ubuntu系统备份和还原_如何使用Aptik在Ubuntu中备份和还原您的应用程序和PPA

ubuntu系统备份和还原If you need to reinstall Ubuntu or if you just want to install a new version from scratch, wouldn’t it be useful to have an easy way to reinstall all your apps and settings? You can easily accomplish this using a free tool called Apti…

rest_framework09:自动生成接口文档(简略)

coreapi 参考 python/Django-rest-framework框架/8-drf-自动生成接口文档 | Justin-刘清政的博客 Swagger 很多语言都支持&#xff0c;看起来用的人多。 参考fastapi的界面

AppDomainManager后门的实现思路

本文讲的是AppDomainManager后门的实现思路&#xff0c;0x00 前言从Casey SmithsubTee学到的一个技巧&#xff1a;针对.Net程序&#xff0c;通过修改AppDomainManager能够劫持.Net程序的启动过程。 如果劫持了系统常见.Net程序如powershell.exe的启动过程&#xff0c;向其添加…

所有内耗,都有解药。

你是否常常会有这种感觉&#xff1a;刚开始接手一件事情&#xff0c;脑海中已经幻想出无数个会发生的问题&#xff0c;心里也已笃定自己做不好&#xff1b;即使别人不经意的一句话&#xff0c;也会浮想一番&#xff0c;最终陷入自我怀疑&#xff1b;随便看到点什么&#xff0c;…

ABAP 通过sumbit调用另外一个程序使用job形式执行-简单例子

涉及到两个程序&#xff1a; ZTEST_ZUMA02 (主程序)ZTEST_ZUMA(被调用的程序&#xff0c;需要以后台job执行)"ztest_zuma 的代码DATA col TYPE i VALUE 0.DO 8 TIMES.MESSAGE JOB HERE TYPE S.ENDDO.程序ZTEST_ZUMA是在程序ZTEST_ZUMA02中以job的形式调用的&#xff0c;先…

那些影响深远的弯路

静儿最近反思很多事情&#xff0c;不仅是当时做错了。错误定式形成的思维习惯对自己的影响比事情本身要大的多。经常看到周围的同事&#xff0c;非常的羡慕。他们都很聪明、有自己的方法。就算有些同事工作经验相对少一些&#xff0c;但是就像在废墟上创建一个辉煌的城市要比在…

如何使用APTonCD备份和还原已安装的Ubuntu软件包

APTonCD is an easy way to back up your installed packages to a disc or ISO image. You can quickly restore the packages on another Ubuntu system without downloading anything. APTonCD是将安装的软件包备份到光盘或ISO映像的简便方法。 您可以在不下载任何东西的情况…

rest_framework10:base64补充/修改头像

base64补充 # base64 变长&#xff0c;可反解 # md5 固定长度&#xff0c;不可反解# base64 编码和解码 import base64 import json dic{name:test,age:18} dic_strjson.dumps(dic)retbase64.b64encode(dic_str.encode(utf-8)) print(ret)# 解码 ret2base64.b64decode(ret) pri…

next_permutation(全排列算法)

next_permutation(全排列算法) STL提供了两个用来计算排列组合关系的算法&#xff0c;分别是next_permutation和prev_permutation。 首先解释下全排列&#xff0c;顾名思义&#xff0c;即一组数的全部排列的情况。 next_permutation 即列出一组数的全部排列情况&#xff0c;不过…

C#自定义字符串压缩和解压缩源码库

如下的内容是关于C#自定义字符串压缩和解压缩库的内容。class ZipLib{public static string Zip(string value){byte[] byteArray new byte[value.Length];int indexBA 0;foreach (char item in value.ToCharArray()){byteArray[indexBA] (byte)item;}System.IO.MemoryStrea…

使用 Visual Studio 2022 调试Dapr 应用程序

使用Dapr 编写的是一个多进程的程序, 两个进程之间依赖于启动顺序来组成父子进程&#xff0c;使用Visual Studio 调试起来可能会比较困难&#xff0c;因为 Visual Studio 默认只会把你当前设置的启动项目的启动调试。好在有Visual Studio 扩展&#xff08;Microsoft Child Proc…