Guest User

Untitled

a guest
Feb 21st, 2020
194
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [{"id":"f5f5a89b.816878","type":"hb-event","z":"1984610f.e86c6f","name":"BLE Паша","Homebridge":"Pavel-HomeBridge","Manufacturer":"mqttthing","Service":"Occupancy Sensor","device":"Pavel-HomeBridgeB8:27:EB:A3:F3:A7mqttthingBLE Паша00000086","conf":"7728cd66.d29bb4","x":80,"y":1340,"wires":[["9cb51b93.761478","ace55cc3.a36be","3e83f864.0bbd88","1cb5caed.eb6b05"]]},{"id":"1cb5caed.eb6b05","type":"change","z":"1984610f.e86c6f","name":"","rules":[{"t":"change","p":"payload.OccupancyDetected","pt":"msg","from":"1","fromt":"num","to":"Появление","tot":"str"},{"t":"change","p":"payload.OccupancyDetected","pt":"msg","from":"0","fromt":"num","to":"Убытие","tot":"str"},{"t":"set","p":"payload.Who","pt":"msg","to":"Паша","tot":"str"},{"t":"set","p":"payload.chatId","pt":"msg","to":"1441827","tot":"num"},{"t":"set","p":"payload.type","pt":"msg","to":"message","tot":"str"},{"t":"set","p":"payload.content","pt":"msg","to":"'Статус присутствия'&'\\n'&msg.payload.Who&' '&msg.payload.OccupancyDetected&'\\n'&$now('[Y0000]-[M00]-[D00] [H01]:[m01]:[s01]', '+0300')","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":195,"y":1260,"wires":[["bad6e4a7.730df8"]],"l":false},{"id":"bad6e4a7.730df8","type":"link out","z":"1984610f.e86c6f","name":"","links":["67e06dc0.832244"],"x":255,"y":1260,"wires":[]},{"id":"ec321694.b6a568","type":"hb-event","z":"1984610f.e86c6f","name":"BLE Даша","Homebridge":"Pavel-HomeBridge","Manufacturer":"mqttthing","Service":"Occupancy Sensor","device":"Pavel-HomeBridgeB8:27:EB:A3:F3:A7mqttthingBLE Даша00000086","conf":"7728cd66.d29bb4","x":80,"y":1580,"wires":[["8b662ef3.e7bab","508e67f8.af6dc8","29bd77c8.c8e898","4c45ca5.3c47534"]]},{"id":"4c45ca5.3c47534","type":"change","z":"1984610f.e86c6f","name":"","rules":[{"t":"change","p":"payload.OccupancyDetected","pt":"msg","from":"1","fromt":"num","to":"Появление","tot":"str"},{"t":"change","p":"payload.OccupancyDetected","pt":"msg","from":"0","fromt":"num","to":"Убытие","tot":"str"},{"t":"set","p":"payload.Who","pt":"msg","to":"Даша","tot":"str"},{"t":"set","p":"payload.chatId","pt":"msg","to":"1441827","tot":"num"},{"t":"set","p":"payload.type","pt":"msg","to":"message","tot":"str"},{"t":"set","p":"payload.content","pt":"msg","to":"'Статус присутствия'&'\\n'&msg.payload.Who&' '&msg.payload.OccupancyDetected&'\\n'&$now('[Y0000]-[M00]-[D00] [H01]:[m01]:[s01]', '+0300')","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":195,"y":1660,"wires":[["51f80972.ca7668"]],"l":false},{"id":"51f80972.ca7668","type":"link out","z":"1984610f.e86c6f","name":"","links":["67e06dc0.832244"],"x":255,"y":1660,"wires":[]},{"id":"9cb51b93.761478","type":"change","z":"1984610f.e86c6f","name":"","rules":[{"t":"move","p":"payload.OccupancyDetected","pt":"msg","to":"payload.OccupancyPasha","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":195,"y":1300,"wires":[["a251a00f.87331"]],"l":false},{"id":"ace55cc3.a36be","type":"hb-status","z":"1984610f.e86c6f","name":"BLE Даша","Homebridge":"Pavel-HomeBridge","Manufacturer":"mqttthing","Service":"Occupancy Sensor","device":"Pavel-HomeBridgeB8:27:EB:A3:F3:A7mqttthingBLE Даша00000086","conf":"7728cd66.d29bb4","x":195,"y":1340,"wires":[["9206c73.d745d38"]],"l":false},{"id":"9206c73.d745d38","type":"change","z":"1984610f.e86c6f","name":"","rules":[{"t":"move","p":"payload.OccupancyDetected","pt":"msg","to":"payload.OccupancyDasha","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":255,"y":1340,"wires":[["a251a00f.87331"]],"l":false},{"id":"a251a00f.87331","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":315,"y":1300,"wires":[["1274605f.3a007"]],"l":false},{"id":"508e67f8.af6dc8","type":"change","z":"1984610f.e86c6f","name":"","rules":[{"t":"move","p":"payload.OccupancyDetected","pt":"msg","to":"payload.OccupancyDasha","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":195,"y":1620,"wires":[["1d52bf6d.4b2ce1"]],"l":false},{"id":"8b662ef3.e7bab","type":"hb-status","z":"1984610f.e86c6f","name":"BLE Паша","Homebridge":"Pavel-HomeBridge","Manufacturer":"mqttthing","Service":"Occupancy Sensor","device":"Pavel-HomeBridgeB8:27:EB:A3:F3:A7mqttthingBLE Паша00000086","conf":"7728cd66.d29bb4","x":195,"y":1580,"wires":[["2000fbf8.b1bd44"]],"l":false},{"id":"2000fbf8.b1bd44","type":"change","z":"1984610f.e86c6f","name":"","rules":[{"t":"move","p":"payload.OccupancyDetected","pt":"msg","to":"payload.OccupancyPasha","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":255,"y":1580,"wires":[["1d52bf6d.4b2ce1"]],"l":false},{"id":"1d52bf6d.4b2ce1","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":315,"y":1620,"wires":[["1274605f.3a007"]],"l":false},{"id":"1274605f.3a007","type":"change","z":"1984610f.e86c6f","name":"","rules":[{"t":"set","p":"payload.OccupancySomeone","pt":"msg","to":"msg.payload.OccupancyDasha+msg.payload.OccupancyPasha+msg.payload.OccupancyGuest","tot":"jsonata"},{"t":"delete","p":"payload.OccupancyDasha","pt":"msg"},{"t":"delete","p":"payload.OccupancyPasha","pt":"msg"},{"t":"delete","p":"msg.payload.OccupancyGuest","pt":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":395,"y":1460,"wires":[["ef916655.8e61d8"]],"l":false},{"id":"3e83f864.0bbd88","type":"hb-status","z":"1984610f.e86c6f","name":"Гость","Homebridge":"Pavel-HomeBridge","Manufacturer":"Default-Manufacturer","Service":"Switch","device":"Pavel-HomeBridgeB8:27:EB:A3:F3:A7Default-ManufacturerГость00000049","conf":"7728cd66.d29bb4","x":195,"y":1380,"wires":[["f4c7b9b0.6ba838"]],"l":false},{"id":"f4c7b9b0.6ba838","type":"change","z":"1984610f.e86c6f","name":"","rules":[{"t":"change","p":"payload.On","pt":"msg","from":"true","fromt":"bool","to":"1","tot":"num"},{"t":"change","p":"payload.On","pt":"msg","from":"false","fromt":"bool","to":"0","tot":"num"},{"t":"move","p":"payload.On","pt":"msg","to":"payload.OccupancyGuest","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":255,"y":1380,"wires":[["a251a00f.87331"]],"l":false},{"id":"29bd77c8.c8e898","type":"hb-status","z":"1984610f.e86c6f","name":"Гость","Homebridge":"Pavel-HomeBridge","Manufacturer":"Default-Manufacturer","Service":"Switch","device":"Pavel-HomeBridgeB8:27:EB:A3:F3:A7Default-ManufacturerГость00000049","conf":"7728cd66.d29bb4","x":195,"y":1540,"wires":[["ad909ae2.26e3a8"]],"l":false},{"id":"ad909ae2.26e3a8","type":"change","z":"1984610f.e86c6f","name":"","rules":[{"t":"change","p":"payload.On","pt":"msg","from":"true","fromt":"bool","to":"1","tot":"num"},{"t":"change","p":"payload.On","pt":"msg","from":"false","fromt":"bool","to":"0","tot":"num"},{"t":"move","p":"payload.On","pt":"msg","to":"payload.OccupancyGuest","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":255,"y":1540,"wires":[["1d52bf6d.4b2ce1"]],"l":false},{"id":"40141389.33650c","type":"hb-event","z":"1984610f.e86c6f","name":"Гость","Homebridge":"Pavel-HomeBridge","Manufacturer":"Default-Manufacturer","Service":"Switch","device":"Pavel-HomeBridgeB8:27:EB:A3:F3:A7Default-ManufacturerГость00000049","conf":"7728cd66.d29bb4","x":70,"y":1460,"wires":[["2a185590.0f3c0a","9a33ede0.e509e","80c51764.cd76b8"]]},{"id":"2a185590.0f3c0a","type":"change","z":"1984610f.e86c6f","name":"","rules":[{"t":"change","p":"payload.On","pt":"msg","from":"true","fromt":"bool","to":"1","tot":"num"},{"t":"change","p":"payload.On","pt":"msg","from":"false","fromt":"bool","to":"0","tot":"num"},{"t":"move","p":"payload.On","pt":"msg","to":"payload.OccupancyGuest","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":195,"y":1460,"wires":[["1ba7fe8c.b9e221","71414d0b.7e1e94"]],"l":false},{"id":"9a33ede0.e509e","type":"hb-status","z":"1984610f.e86c6f","name":"BLE Даша","Homebridge":"Pavel-HomeBridge","Manufacturer":"mqttthing","Service":"Occupancy Sensor","device":"Pavel-HomeBridgeB8:27:EB:A3:F3:A7mqttthingBLE Даша00000086","conf":"7728cd66.d29bb4","x":195,"y":1420,"wires":[["a8d1fe32.4b6ad"]],"l":false},{"id":"a8d1fe32.4b6ad","type":"change","z":"1984610f.e86c6f","name":"","rules":[{"t":"move","p":"payload.OccupancyDetected","pt":"msg","to":"payload.OccupancyDasha","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":255,"y":1420,"wires":[["1ba7fe8c.b9e221"]],"l":false},{"id":"80c51764.cd76b8","type":"hb-status","z":"1984610f.e86c6f","name":"BLE Паша","Homebridge":"Pavel-HomeBridge","Manufacturer":"mqttthing","Service":"Occupancy Sensor","device":"Pavel-HomeBridgeB8:27:EB:A3:F3:A7mqttthingBLE Паша00000086","conf":"7728cd66.d29bb4","x":195,"y":1500,"wires":[["de8803ed.5b752"]],"l":false},{"id":"de8803ed.5b752","type":"change","z":"1984610f.e86c6f","name":"","rules":[{"t":"move","p":"payload.OccupancyDetected","pt":"msg","to":"payload.OccupancyPasha","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":255,"y":1500,"wires":[["1ba7fe8c.b9e221"]],"l":false},{"id":"1ba7fe8c.b9e221","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":315,"y":1460,"wires":[["1274605f.3a007"]],"l":false},{"id":"ef916655.8e61d8","type":"switch","z":"1984610f.e86c6f","name":"","property":"payload.OccupancySomeone","propertyType":"msg","rules":[{"t":"gt","v":"0","vt":"num"},{"t":"eq","v":"0","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":490,"y":1460,"wires":[["480de470.83817c"],["85ac3fb4.9a4e6"]]},{"id":"71414d0b.7e1e94","type":"change","z":"1984610f.e86c6f","name":"","rules":[{"t":"change","p":"payload.OccupancyGuest","pt":"msg","from":"1","fromt":"num","to":"Появление","tot":"str"},{"t":"change","p":"payload.OccupancyGuest","pt":"msg","from":"0","fromt":"num","to":"Убытие","tot":"str"},{"t":"set","p":"payload.Who","pt":"msg","to":"Гость","tot":"str"},{"t":"set","p":"payload.chatId","pt":"msg","to":"1441827","tot":"num"},{"t":"set","p":"payload.type","pt":"msg","to":"message","tot":"str"},{"t":"set","p":"payload.content","pt":"msg","to":"'Статус присутствия'&'\\n'&msg.payload.Who&' '&msg.payload.OccupancyGuest&'\\n'&$now('[Y0000]-[M00]-[D00] [H01]:[m01]:[s01]', '+0300')","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":395,"y":1500,"wires":[["ea95121.e3c0bf"]],"l":false},{"id":"ea95121.e3c0bf","type":"link out","z":"1984610f.e86c6f","name":"","links":["67e06dc0.832244"],"x":455,"y":1500,"wires":[]},{"id":"480de470.83817c","type":"link out","z":"1984610f.e86c6f","name":"Дома кто то есть","links":[],"x":575,"y":1440,"wires":[]},{"id":"85ac3fb4.9a4e6","type":"link out","z":"1984610f.e86c6f","name":"Никого дома нет","links":[],"x":575,"y":1480,"wires":[]},{"id":"f765c792.475b58","type":"comment","z":"1984610f.e86c6f","name":"Присутствие дома по BLE","info":"","x":140,"y":1220,"wires":[]},{"id":"7728cd66.d29bb4","type":"hb-conf","z":"","username":"033-44-157"}]
RAW Paste Data