场景如下:经常会碰到手表在早上刷牙洗脸的时候放着充电,上班去走的时候就忘了戴上了,所以就设计了这么一个流程.当在早上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}]