Guest User

Untitled

a guest
Feb 21st, 2020
143
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [{"id":"6c730888.8892b8","type":"comment","z":"1984610f.e86c6f","name":"Вытяжка если открты окна","info":"","x":140,"y":2100,"wires":[]},{"id":"29ba0eb2.84d782","type":"hb-event","z":"1984610f.e86c6f","name":"ContactSensor_ContactSensor_4781","Homebridge":"Pavel-HomeBridge","Manufacturer":"Aqara","Service":"Contact Sensor","device":"Pavel-HomeBridgeB8:27:EB:A3:F3:A7AqaraContactSensor_ContactSensor_478100000080","conf":"7728cd66.d29bb4","x":35,"y":2140,"wires":[["d1d8c7d8.b05d28"]],"l":false},{"id":"962bc278.6a06","type":"hb-event","z":"1984610f.e86c6f","name":"ContactSensor_ContactSensor_e0de","Homebridge":"Pavel-HomeBridge","Manufacturer":"Aqara","Service":"Contact Sensor","device":"Pavel-HomeBridgeB8:27:EB:A3:F3:A7AqaraContactSensor_ContactSensor_e0de00000080","conf":"7728cd66.d29bb4","x":35,"y":2180,"wires":[["d1d8c7d8.b05d28"]],"l":false},{"id":"8259327c.0ee98","type":"hb-event","z":"1984610f.e86c6f","name":"ContactSensor_ContactSensor_f645","Homebridge":"Pavel-HomeBridge","Manufacturer":"Aqara","Service":"Contact Sensor","device":"Pavel-HomeBridgeB8:27:EB:A3:F3:A7AqaraContactSensor_ContactSensor_f64500000080","conf":"7728cd66.d29bb4","x":35,"y":2220,"wires":[["d1d8c7d8.b05d28"]],"l":false},{"id":"3c36dd70.d4fb82","type":"hb-status","z":"1984610f.e86c6f","name":"ContactSensor_ContactSensor_4781","Homebridge":"Pavel-HomeBridge","Manufacturer":"Aqara","Service":"Contact Sensor","device":"Pavel-HomeBridgeB8:27:EB:A3:F3:A7AqaraContactSensor_ContactSensor_478100000080","conf":"7728cd66.d29bb4","x":315,"y":2140,"wires":[["2332c16a.3555ae"]],"l":false},{"id":"df3cfead.99052","type":"hb-status","z":"1984610f.e86c6f","name":"ContactSensor_ContactSensor_e0de","Homebridge":"Pavel-HomeBridge","Manufacturer":"Aqara","Service":"Contact Sensor","device":"Pavel-HomeBridgeB8:27:EB:A3:F3:A7AqaraContactSensor_ContactSensor_e0de00000080","conf":"7728cd66.d29bb4","x":315,"y":2180,"wires":[["99144067.a0cf8"]],"l":false},{"id":"84f75450.e119f8","type":"hb-status","z":"1984610f.e86c6f","name":"ContactSensor_ContactSensor_f645","Homebridge":"Pavel-HomeBridge","Manufacturer":"Aqara","Service":"Contact Sensor","device":"Pavel-HomeBridgeB8:27:EB:A3:F3:A7AqaraContactSensor_ContactSensor_f64500000080","conf":"7728cd66.d29bb4","x":315,"y":2220,"wires":[["f933d868.116a18"]],"l":false},{"id":"2332c16a.3555ae","type":"change","z":"1984610f.e86c6f","name":"","rules":[{"t":"move","p":"payload.ContactSensorState","pt":"msg","to":"payload.window1","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":375,"y":2140,"wires":[["7421bc98.701924"]],"l":false},{"id":"99144067.a0cf8","type":"change","z":"1984610f.e86c6f","name":"","rules":[{"t":"move","p":"payload.ContactSensorState","pt":"msg","to":"payload.window2","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":375,"y":2180,"wires":[["7421bc98.701924"]],"l":false},{"id":"f933d868.116a18","type":"change","z":"1984610f.e86c6f","name":"","rules":[{"t":"move","p":"payload.ContactSensorState","pt":"msg","to":"payload.window3","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":375,"y":2220,"wires":[["7421bc98.701924"]],"l":false},{"id":"7421bc98.701924","type":"join","z":"1984610f.e86c6f","name":"","mode":"custom","build":"merged","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"","count":"3","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":455,"y":2180,"wires":[["e29b9f7a.bbff1"]],"l":false},{"id":"e29b9f7a.bbff1","type":"change","z":"1984610f.e86c6f","name":"","rules":[{"t":"set","p":"payload.wind","pt":"msg","to":"msg.payload.window1+msg.payload.window2+msg.payload.window3","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":515,"y":2180,"wires":[["2a9191fd.cd43fe","e56c10af.e3dec"]],"l":false},{"id":"2a9191fd.cd43fe","type":"switch","z":"1984610f.e86c6f","name":"","property":"payload.wind","propertyType":"msg","rules":[{"t":"gte","v":"2","vt":"num"},{"t":"lt","v":"2","vt":"str"},{"t":"eq","v":"3","vt":"str"},{"t":"eq","v":"0","vt":"str"},{"t":"lt","v":"3","vt":"str"}],"checkall":"true","repair":false,"outputs":5,"x":575,"y":2180,"wires":[[],["56dd3b38.e8fd94"],["b202535e.4fa62"],["4a5fbe5f.a486"],["724ba631.6f114"]],"l":false},{"id":"549fac45.7c27c4","type":"api-call-service","z":"1984610f.e86c6f","name":"","server":"2922b62.081994a","version":1,"service_domain":"switch","service":"turn_on","entityId":"switch.sonoff_1000887d45","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":930,"y":2180,"wires":[[]]},{"id":"c8bdb4af.5c9e68","type":"link in","z":"1984610f.e86c6f","name":"for wind","links":["460660cb.2e83d","d1d8c7d8.b05d28"],"x":215,"y":2180,"wires":[["3c36dd70.d4fb82","df3cfead.99052","84f75450.e119f8"]]},{"id":"d1d8c7d8.b05d28","type":"link out","z":"1984610f.e86c6f","name":"to wind","links":["c8bdb4af.5c9e68"],"x":115,"y":2180,"wires":[]},{"id":"56dd3b38.e8fd94","type":"link out","z":"1984610f.e86c6f","name":"Минимум два окна закрыты","links":[],"x":695,"y":2140,"wires":[]},{"id":"b202535e.4fa62","type":"link out","z":"1984610f.e86c6f","name":"Все окна открыты","links":["87ac5ff6.d2ccf"],"x":695,"y":2180,"wires":[]},{"id":"4a5fbe5f.a486","type":"link out","z":"1984610f.e86c6f","name":"Все окна закрыты","links":[],"x":695,"y":2220,"wires":[]},{"id":"87ac5ff6.d2ccf","type":"link in","z":"1984610f.e86c6f","name":"","links":["b202535e.4fa62"],"x":775,"y":2180,"wires":[["549fac45.7c27c4"]]},{"id":"e56c10af.e3dec","type":"change","z":"1984610f.e86c6f","name":"","rules":[{"t":"set","p":"payload.howmanywindowisopen","pt":"global","to":"payload.wind","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":730,"y":2100,"wires":[[]]},{"id":"724ba631.6f114","type":"link out","z":"1984610f.e86c6f","name":"","links":["e5d298c.7a0cc68"],"x":695,"y":2260,"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