Guest User

Untitled

a guest
Feb 21st, 2020
228
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [{"id":"f0c8cc85.9c70e8","type":"hb-event","z":"1984610f.e86c6f","name":"ContactSensor_ContactSensor_a1a2","Homebridge":"Pavel-HomeBridge","Manufacturer":"Aqara","Service":"Contact Sensor","device":"Pavel-HomeBridgeB8:27:EB:A3:F3:A7AqaraContactSensor_ContactSensor_a1a200000080","conf":"7728cd66.d29bb4","x":170,"y":760,"wires":[["b332de6f.d3e9c8"]]},{"id":"b332de6f.d3e9c8","type":"switch","z":"1984610f.e86c6f","name":"","property":"payload.ContactSensorState","propertyType":"msg","rules":[{"t":"cont","v":"1","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":390,"y":760,"wires":[["5502cc27.64ad4c","93b75b8d.7c6bd8","442e23de.949f3c","4db85f9f.5056f","b8721069.c54cf"]]},{"id":"5502cc27.64ad4c","type":"delay","z":"1984610f.e86c6f","name":"20s","pauseType":"delay","timeout":"20","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":550,"y":780,"wires":[["d1cf3314.a4101"]]},{"id":"e1aa128b.d54f6","type":"comment","z":"1984610f.e86c6f","name":"Прихожая. Контрольный свет + отправка фото в tlgrm + DinDon Homekit на открытие двери","info":"","x":350,"y":720,"wires":[]},{"id":"b8721069.c54cf","type":"change","z":"1984610f.e86c6f","name":"","rules":[{"t":"delete","p":"payload","pt":"msg"},{"t":"set","p":"payload.chatId","pt":"msg","to":"1441827","tot":"str"},{"t":"set","p":"payload.type","pt":"msg","to":"message","tot":"str"},{"t":"set","p":"payload.content","pt":"msg","to":"'Прихожая. Открыта дверь '&$now('[Y0000]-[M00]-[D00] [H01]:[m01]:[s01]', '+0300')","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":740,"y":820,"wires":[["eab9494c.4410c8"]]},{"id":"93b75b8d.7c6bd8","type":"delay","z":"1984610f.e86c6f","name":"","pauseType":"delay","timeout":"4","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":560,"y":860,"wires":[["1677f39b.b31a6c"]]},{"id":"1677f39b.b31a6c","type":"change","z":"1984610f.e86c6f","name":"","rules":[{"t":"delete","p":"payload","pt":"msg"},{"t":"set","p":"payload.chatId","pt":"msg","to":"1441827","tot":"str"},{"t":"set","p":"payload.type","pt":"msg","to":"photo","tot":"str"},{"t":"set","p":"payload.caption","pt":"msg","to":"'Прихожая. Открыта дверь '&$now('[Y0000]-[M00]-[D00] [H01]:[m01]:[s01]', '+0300')","tot":"jsonata"},{"t":"set","p":"payload.content","pt":"msg","to":"/home/pi/.homebridge/bashscript/indoor.jpg","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":740,"y":860,"wires":[["eab9494c.4410c8"]]},{"id":"eab9494c.4410c8","type":"link out","z":"1984610f.e86c6f","name":"","links":["da0e06ba.3115b","67e06dc0.832244"],"x":875,"y":820,"wires":[]},{"id":"442e23de.949f3c","type":"link out","z":"1984610f.e86c6f","name":"","links":["2780adcc.56b962","ff4d0167.abd35","878eadca.41094"],"x":515,"y":820,"wires":[]},{"id":"4db85f9f.5056f","type":"api-call-service","z":"1984610f.e86c6f","name":"","server":"2922b62.081994a","version":1,"service_domain":"switch","service":"turn_on","entityId":"switch.sonoff_1000077885 ","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":930,"y":760,"wires":[[]]},{"id":"d1cf3314.a4101","type":"api-call-service","z":"1984610f.e86c6f","name":"","server":"2922b62.081994a","version":1,"service_domain":"switch","service":"turn_off","entityId":"switch.sonoff_1000077885 ","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":730,"y":780,"wires":[[]]},{"id":"7728cd66.d29bb4","type":"hb-conf","z":"","username":"033-44-157"},{"id":"2922b62.081994a","type":"server","z":"","name":"My Home Assistant","legacy":false,"hassio":false,"rejectUnauthorizedCerts":false,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]
RAW Paste Data