[{"id":"1e1b99c71eea21bb","type":"tab","label":"流程 1","disabled":false,"info":"","env":[]},{"id":"2e249f0d6b1b5025","type":"server-state-changed","z":"1e1b99c71eea21bb","name":"指纹锁","server":"5baec042.3ee29","version":4,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"sensor.xiaomi_facelock_key_id","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":90,"y":360,"wires":[["770d2623470d376f"]]},{"id":"770d2623470d376f","type":"switch","z":"1e1b99c71eea21bb","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"2","vt":"num"},{"t":"eq","v":"3","vt":"num"},{"t":"eq","v":"4","vt":"num"},{"t":"eq","v":"5","vt":"num"},{"t":"eq","v":"6","vt":"num"},{"t":"eq","v":"7","vt":"num"},{"t":"eq","v":"8","vt":"num"},{"t":"eq","v":"9","vt":"num"},{"t":"eq","v":"10","vt":"num"},{"t":"eq","v":"11","vt":"num"},{"t":"eq","v":"12","vt":"num"},{"t":"eq","v":"13","vt":"num"}],"checkall":"true","repair":false,"outputs":13,"x":270,"y":360,"wires":[["21e4466d398830f0"],["2355873dd90a0ecc"],["37a4db60fb1827eb"],[],[],[],[],[],[],[],[],[],[]]},{"id":"cb1357edfa3abac2","type":"api-call-service","z":"1e1b99c71eea21bb","name":"推送到企业微信","server":"5baec042.3ee29","version":5,"debugenabled":true,"domain":"notify","service":"wework","areaId":[],"deviceId":[],"entityId":[],"data":"{"message":"门被人打开_时间:{{time}}","title":"{{messgaeContent}}开门","data":{"type":"news","url":"https://gitee.com/happygaoxing/poppin/raw/master/homeassistant/%E9%97%A8%E9%94%81%E5%B7%B2%E5%BC%80.png","picurl":"https://gitee.com/happygaoxing/poppin/raw/master/homeassistant/%E9%97%A8%E9%94%81%E5%B7%B2%E5%BC%80.png"}}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1000,"y":280,"wires":[[]]},{"id":"301165b5693973b9","type":"function","z":"1e1b99c71eea21bb","name":"获取当前时间","func":"Date.prototype.Format = function (fmt) {\n var o = {\n "M+": this.getMonth() + 1, //月份 \n "d+": this.getDate(), //日 \n "h+": this.getHours(), //小时 \n "m+": this.getMinutes(), //分 \n "s+": this.getSeconds(), //秒 \n "q+": Math.floor((this.getMonth() + 3) / 3), //季度 \n "S": this.getMilliseconds() //毫秒 \n };\n if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));\n for (var k in o)\n if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));\n return fmt;\n}\nvar mydate = new Date().Format("yyyy年MM月dd日 hh:mm:ss");\nmsg.time = mydate;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":800,"y":280,"wires":[["cb1357edfa3abac2"]]},{"id":"21e4466d398830f0","type":"function","z":"1e1b99c71eea21bb","name":"AAAA","func":"msg.messgaeContent = `AAAA`;\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":490,"y":60,"wires":[["301165b5693973b9"]]},{"id":"37a4db60fb1827eb","type":"function","z":"1e1b99c71eea21bb","name":"AAAA","func":"msg.messgaeContent = `AAAA`;\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":490,"y":100,"wires":[["301165b5693973b9"]]},{"id":"2355873dd90a0ecc","type":"function","z":"1e1b99c71eea21bb","name":"AAAA","func":"msg.messgaeContent = `AAAA`;\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":490,"y":180,"wires":[["301165b5693973b9"]]},{"id":"318eda587143ff62","type":"function","z":"1e1b99c71eea21bb","name":"AAAA","func":"msg.messgaeContent = `AAAA`;\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":490,"y":220,"wires":[[]]},{"id":"e2b079809e1bd4c4","type":"function","z":"1e1b99c71eea21bb","name":"AAAA","func":"msg.messgaeContent = `AAAA`;\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":490,"y":260,"wires":[[]]},{"id":"7388df0d95d5041d","type":"function","z":"1e1b99c71eea21bb","name":"AAAA","func":"msg.messgaeContent = `AAAA`;\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":490,"y":300,"wires":[[]]},{"id":"82b63957bf01e3e7","type":"function","z":"1e1b99c71eea21bb","name":"AAAA","func":"msg.messgaeContent = `AAAA`;\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":490,"y":340,"wires":[[]]},{"id":"2645067db3aa6359","type":"function","z":"1e1b99c71eea21bb","name":"AAAA","func":"msg.messgaeContent = `AAAA`;\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":490,"y":380,"wires":[[]]},{"id":"2b5c0e416df92b03","type":"function","z":"1e1b99c71eea21bb","name":"AAAA","func":"msg.messgaeContent = `AAAA`;\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":490,"y":420,"wires":[[]]},{"id":"2be035baa0219c4e","type":"function","z":"1e1b99c71eea21bb","name":"AAAA","func":"msg.messgaeContent = `AAAA`;\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":490,"y":520,"wires":[[]]},{"id":"5baec042.3ee29","type":"server","name":"Home Assistant","version":5,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":"30","areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"friendlyName","statusSeparator":"at: ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"h23","statusTimeFormat":"h:m","enableGlobalContextStore":true}]