[Node-Red]一个关门的时候提示手表别忘了带的流程

场景如下:经常会碰到手表在早上刷牙洗脸的时候放着充电,上班去走的时候就忘了戴上了,所以就设计了这么一个流程.当在早上7.50~8.10分 大门打开的时候,使用Bark推送一条通知给IOS手机,目前用了几天觉得很稳定.
流程如下:

导入:
[{“id”:“e70b68de.b3b4e8”,“type”:“tab”,“label”:“向手机推送是否带手表”,“disabled”:false,“info”:""},{“id”:“9b432480.faa908”,“type”:“time-range-switch”,“z”:“e70b68de.b3b4e8”,“name”:“检测是否在上班时间”,“lat”:“30.2370630000”,“lon”:“120.2663241100”,“startTime”:“07:50”,“endTime”:“08:10”,“startOffset”:0,“endOffset”:0,“x”:975.0003547668457,“y”:286.00008964538574,“wires”:[[“dc587200.da4e3”],[]]},{“id”:“dc587200.da4e3”,“type”:“exec”,“z”:“e70b68de.b3b4e8”,“command”:“curl”,“addpay”:true,“append”:“http://www.XXX.fun/XXXXX/看下带手表了吗/看下带手表了吗",“useSpawn”:“false”,“timer”:"",“oldrc”:false,“name”:“推送通知”,“x”:1188.0000381469727,“y”:279.5000686645508,“wires”:[[],[],[]]},{“id”:“8fe7deb.3de382”,“type”:“server-state-changed”,“z”:“e70b68de.b3b4e8”,“name”:“检测大门状态”,“server”:“337a3889.9fe368”,“version”:1,“exposeToHomeAssistant”:false,“haConfig”:[{“property”:“name”,“value”:""},{“property”:“icon”,“value”:""}],“entityidfilter”:“binary_sensor.door_window_sensor_158d000231f8bb”,“entityidfiltertype”:“exact”,“outputinitially”:false,“state_type”:“str”,“haltifstate”:"",“halt_if_type”:“str”,“halt_if_compare”:“is”,“outputs”:1,“output_only_on_state_change”:true,“x”:414.666690826416,“y”:285.6666955947876,“wires”:[[“3afeb12d.16fd7e”]]},{“id”:“3afeb12d.16fd7e”,“type”:“switch”,“z”:“e70b68de.b3b4e8”,“name”:“关的状态”,“property”:“data.old_state.state”,“propertyType”:“msg”,“rules”:[{“t”:“eq”,“v”:“off”,“vt”:“str”}],“checkall”:“true”,“repair”:false,“outputs”:1,“x”:605.0000190734863,“y”:286.0000686645508,“wires”:[[“eb07beea.e5982”]]},{“id”:“eb07beea.e5982”,“type”:“switch”,“z”:“e70b68de.b3b4e8”,“name”:“开的状态”,“property”:“data.new_state.state”,“propertyType”:“msg”,“rules”:[{“t”:“eq”,“v”:“on”,“vt”:“str”}],“checkall”:“true”,“repair”:false,“outputs”:1,“x”:772.000186920166,“y”:286.0000696182251,“wires”:[[“9b432480.faa908”]]},{“id”:“337a3889.9fe368”,“type”:“server”,“z”:"",“name”:"Home Assistant”,“legacy”:false,“addon”:false,“rejectUnauthorizedCerts”:true,“ha_boolean”:“y|yes|true|on|home|open”,“connectionDelay”:true,“cacheJson”:true}]

我给你个建议:
1.鞋柜粘门磁;
2.鞋柜打开
3.搞个小爱同学
4.小爱同学提醒要出门的事项
:grinning:

感谢你的建议,但是我有一个疑问 我买的是小爱同学play 就是那款99的 好像并不能做到tts?那怎么让小爱同学提醒出门事项呢

应该都可以的,我的是红米小爱。79那个。现在知道是除了299触屏那个不行。

大佬可以推荐一个TTS的教程或者大概的流程吗…我全网找了下只找到了一两个,而且还不是很能看懂

早知道红米小爱也可以我就不买这个99的 白瞎20块

[{"id":"6b5b3401.b14c3c","type":"tab","label":"流程6","disabled":false,"info":""},{"id":"fb454540.8b8e08","type":"xiaoai-tts","z":"6b5b3401.b14c3c","name":"tts测试","xiaoai":"","tts":"","device":"","x":712.5,"y":165,"wires":[["fb862169.d9cea"],["5a91340a.2678fc"]]},{"id":"9ef12954.3015c8","type":"inject","z":"6b5b3401.b14c3c","name":"tts测试","topic":"","payload":"123","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":534.5,"y":171,"wires":[["fb454540.8b8e08"]]},{"id":"fb862169.d9cea","type":"debug","z":"6b5b3401.b14c3c","name":"信息输出","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":1089.5,"y":83,"wires":[]},{"id":"5a91340a.2678fc","type":"debug","z":"6b5b3401.b14c3c","name":"错误调试","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":1103.5,"y":399,"wires":[]},{"id":"5f25215a.124e5","type":"xiaoai-devices","z":"6b5b3401.b14c3c","name":"","xiaoai":"","x":705.5,"y":265,"wires":[["fb862169.d9cea"]]},{"id":"172601f0.b30c7e","type":"inject","z":"6b5b3401.b14c3c","name":"","topic":"获取设备列表","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":515.5,"y":265,"wires":[["5f25215a.124e5"]]},{"id":"acf15276.d310c","type":"xiaoai-ai-service","z":"6b5b3401.b14c3c","name":"ai指令测试","xiaoai":"","message":"","tts":true,"tts_play":false,"device":"","x":698.5,"y":379,"wires":[["fb862169.d9cea"],["5a91340a.2678fc"]]},{"id":"6c20a154.fa60c","type":"inject","z":"6b5b3401.b14c3c","name":"ai测试","topic":"","payload":"你是谁","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":525,"y":380,"wires":[["acf15276.d310c"]]}]

可以直接用node-red-contrib-xiaoai-tts这个节点

谢谢!再一次感受到NR的牛逼!!!

应该都可以的。 :grinning:

我回家了试试 先谢谢啦!!

格式有问题导入不了 求帮助

你这个格式的流怎么发上去的

同为watch用户,表示苹果真是脑残,做个断开提醒的功能很难么,有断开提醒的话双向都可以提醒手表或者手机 :face_vomiting: