INSTAR Deutschland GmbHINSTAR Deutschland GmbH

Virtual Camera with homee-in-homee and Node-RED



WiP

Alarm Areas


homee virtual INSTAR MQTT Camera


[{"id":"7d44a557.7d14fc","type":"homeeDevice","z":"5026c83e.b368c8","virtual-homee":"","name":"INSTAR Alarm Areas","nodeId":"3","profile":"10","icon":"nodeicon_motiondetector","attributes":"[{\"id\":800,\"node_id\":3,\"instance\":0,\"minimum\":0,\"maximum\":1,\"current_value\":0,\"target_value\":0,\"last_value\":0,\"unit\":\"Area 1\",\"step_value\":1,\"editable\":1,\"type\":1,\"state\":1,\"last_changed\":12345555,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":1,\"data\":\"\"},{\"id\":801,\"node_id\":3,\"instance\":1,\"minimum\":0,\"maximum\":1,\"current_value\":0,\"target_value\":0,\"last_value\":0,\"unit\":\"Area 2\",\"step_value\":1,\"editable\":1,\"type\":1,\"state\":1,\"last_changed\":12345555,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":1,\"data\":\"\"},{\"id\":802,\"node_id\":3,\"instance\":2,\"minimum\":0,\"maximum\":1,\"current_value\":0,\"target_value\":0,\"last_value\":0,\"unit\":\"Area 3\",\"step_value\":1,\"editable\":1,\"type\":1,\"state\":1,\"last_changed\":12345555,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":1,\"data\":\"\"},{\"id\":803,\"node_id\":3,\"instance\":3,\"minimum\":0,\"maximum\":1,\"current_value\":0,\"target_value\":0,\"last_value\":0,\"unit\":\"Area 4\",\"step_value\":1,\"editable\":1,\"type\":1,\"state\":1,\"last_changed\":12345555,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":1,\"data\":\"\"}]","x":620,"y":580,"wires":[["bc1ac380.51ad7"]]},{"id":"4ca40848.af8e68","type":"mqtt out","z":"5026c83e.b368c8","name":"alarm/area1/enable","topic":"instar/local/alarm/area1/enable/raw","qos":"1","retain":"false","broker":"996228fe.ababc8","x":1113,"y":531,"wires":[]},{"id":"f57cbd89.42943","type":"change","z":"5026c83e.b368c8","name":"targetValue","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.targetValue","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":938,"y":531,"wires":[["4ca40848.af8e68"]]},{"id":"b0d1e812.613028","type":"mqtt out","z":"5026c83e.b368c8","name":"alarm/area2/enable","topic":"instar/local/alarm/area2/enable/raw","qos":"1","retain":"false","broker":"996228fe.ababc8","x":1113,"y":564,"wires":[]},{"id":"fbbd9b7c.261a98","type":"mqtt out","z":"5026c83e.b368c8","name":"alarm/area3/enable","topic":"instar/local/alarm/area3/enable/raw","qos":"1","retain":"false","broker":"996228fe.ababc8","x":1113,"y":597,"wires":[]},{"id":"d910b125.20bed","type":"mqtt out","z":"5026c83e.b368c8","name":"alarm/area4/enable","topic":"instar/local/alarm/area4/enable/raw","qos":"1","retain":"false","broker":"996228fe.ababc8","x":1113,"y":631,"wires":[]},{"id":"acb7e86d.bcc148","type":"mqtt in","z":"5026c83e.b368c8","name":"status/alarm/area1/enable","topic":"instar/local/status/alarm/area1/enable","qos":"1","datatype":"auto","broker":"996228fe.ababc8","x":115,"y":533,"wires":[["1be50c03.3550a4"]]},{"id":"96ddb0f3.5c319","type":"mqtt in","z":"5026c83e.b368c8","name":"status/alarm/area2/enable","topic":"instar/local/status/alarm/area2/enable","qos":"1","datatype":"auto","broker":"996228fe.ababc8","x":115,"y":566,"wires":[["94ab1ef9.cdf4d"]]},{"id":"8c102b6d.68cd98","type":"mqtt in","z":"5026c83e.b368c8","name":"status/alarm/area3/enable","topic":"instar/local/status/alarm/area3/enable","qos":"1","datatype":"auto","broker":"996228fe.ababc8","x":115,"y":599,"wires":[["a73911f3.a5572"]]},{"id":"1be50c03.3550a4","type":"json","z":"5026c83e.b368c8","name":"","property":"payload","action":"","pretty":false,"x":293,"y":533,"wires":[["5ec81d93.1c19e4"]]},{"id":"5ec81d93.1c19e4","type":"function","z":"5026c83e.b368c8","name":"targetValue","func":"msg.payload = {'id':800, 'value': Number(msg.payload.val)}\n\nreturn msg;","outputs":1,"noerr":0,"x":429,"y":533,"wires":[["7d44a557.7d14fc"]]},{"id":"44c68843.451618","type":"mqtt in","z":"5026c83e.b368c8","name":"status/alarm/area4/enable","topic":"instar/local/status/alarm/area4/enable","qos":"1","datatype":"auto","broker":"996228fe.ababc8","x":116,"y":633,"wires":[["d9144d11.9627a"]]},{"id":"94ab1ef9.cdf4d","type":"json","z":"5026c83e.b368c8","name":"","property":"payload","action":"","pretty":false,"x":290,"y":567,"wires":[["ca346869.a32ed8"]]},{"id":"ca346869.a32ed8","type":"function","z":"5026c83e.b368c8","name":"targetValue","func":"msg.payload = {'id':801, 'value': Number(msg.payload.val)}\n\nreturn msg;","outputs":1,"noerr":0,"x":426,"y":567,"wires":[["7d44a557.7d14fc"]]},{"id":"a73911f3.a5572","type":"json","z":"5026c83e.b368c8","name":"","property":"payload","action":"","pretty":false,"x":290,"y":600,"wires":[["9fd9d9e6.0953c8"]]},{"id":"9fd9d9e6.0953c8","type":"function","z":"5026c83e.b368c8","name":"targetValue","func":"msg.payload = {'id':802, 'value': Number(msg.payload.val)}\n\nreturn msg;","outputs":1,"noerr":0,"x":426,"y":600,"wires":[["7d44a557.7d14fc"]]},{"id":"d9144d11.9627a","type":"json","z":"5026c83e.b368c8","name":"","property":"payload","action":"","pretty":false,"x":290,"y":633,"wires":[["f68599c3.e177d8"]]},{"id":"f68599c3.e177d8","type":"function","z":"5026c83e.b368c8","name":"targetValue","func":"msg.payload = {'id':803, 'value': Number(msg.payload.val)}\n\nreturn msg;","outputs":1,"noerr":0,"x":426,"y":633,"wires":[["7d44a557.7d14fc"]]},{"id":"bc1ac380.51ad7","type":"switch","z":"5026c83e.b368c8","name":"","property":"payload.attributeId","propertyType":"msg","rules":[{"t":"eq","v":"200","vt":"num"},{"t":"eq","v":"201","vt":"num"},{"t":"eq","v":"202","vt":"num"},{"t":"eq","v":"203","vt":"num"}],"checkall":"true","repair":false,"outputs":4,"x":784,"y":580,"wires":[["f57cbd89.42943"],["29a38c94.aa4dc4"],["728fe2c4.ceb83c"],["fa856d62.124b5"]]},{"id":"29a38c94.aa4dc4","type":"change","z":"5026c83e.b368c8","name":"targetValue","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.targetValue","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":938,"y":564,"wires":[["b0d1e812.613028"]]},{"id":"728fe2c4.ceb83c","type":"change","z":"5026c83e.b368c8","name":"targetValue","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.targetValue","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":938,"y":597,"wires":[["fbbd9b7c.261a98"]]},{"id":"fa856d62.124b5","type":"change","z":"5026c83e.b368c8","name":"targetValue","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.targetValue","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":938,"y":631,"wires":[["d910b125.20bed"]]},{"id":"996228fe.ababc8","type":"mqtt-broker","z":"","name":"INSTAR MQTT","broker":"192.168.2.117","port":"1883","clientid":"iored","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]

Alarm Area Sensitivity


homee virtual INSTAR MQTT Camera


[{"id":"abf1fa60.d48ce8","type":"homeeDevice","z":"5026c83e.b368c8","virtual-homee":"","name":"INSTAR Sensitivity","nodeId":"4","profile":"1004","icon":"nodeicon_motiondetector","attributes":"[{\"id\":804,\"node_id\":4,\"instance\":0,\"minimum\":0,\"maximum\":100,\"current_value\":0,\"target_value\":0,\"last_value\":0,\"unit\":\"%25 Area 1\",\"step_value\":1,\"editable\":1,\"type\":2,\"state\":1,\"last_changed\":12345555,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":1,\"data\":\"\"},{\"id\":805,\"node_id\":4,\"instance\":1,\"minimum\":0,\"maximum\":100,\"current_value\":0,\"target_value\":0,\"last_value\":0,\"unit\":\"%25 Area 2\",\"step_value\":1,\"editable\":1,\"type\":2,\"state\":1,\"last_changed\":12345555,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":1,\"data\":\"\"},{\"id\":806,\"node_id\":4,\"instance\":2,\"minimum\":0,\"maximum\":100,\"current_value\":0,\"target_value\":0,\"last_value\":0,\"unit\":\"%25 Area 3\",\"step_value\":1,\"editable\":1,\"type\":2,\"state\":1,\"last_changed\":12345555,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":1,\"data\":\"\"},{\"id\":807,\"node_id\":4,\"instance\":3,\"minimum\":0,\"maximum\":100,\"current_value\":0,\"target_value\":0,\"last_value\":0,\"unit\":\"%25 Area 4\",\"step_value\":1,\"editable\":1,\"type\":2,\"state\":1,\"last_changed\":12345555,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":1,\"data\":\"\"}]","x":632,"y":760,"wires":[["250e98b6.711328"]]},{"id":"eadc8d56.e07a9","type":"mqtt out","z":"5026c83e.b368c8","name":"alarm/area1/sensitivity","topic":"instar/local/alarm/area1/sensitivity/raw","qos":"1","retain":"false","broker":"996228fe.ababc8","x":1134,"y":711,"wires":[]},{"id":"6121f440.b825bc","type":"change","z":"5026c83e.b368c8","name":"targetValue","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.targetValue","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":949,"y":711,"wires":[["eadc8d56.e07a9"]]},{"id":"92ef3632.912648","type":"mqtt out","z":"5026c83e.b368c8","name":"alarm/area2/sensitivity","topic":"instar/local/alarm/area2/sensitivity/raw","qos":"1","retain":"false","broker":"996228fe.ababc8","x":1134,"y":744,"wires":[]},{"id":"ff5ed819.216878","type":"mqtt out","z":"5026c83e.b368c8","name":"alarm/area3/sensitivity","topic":"instar/local/alarm/area3/sensitivity/raw","qos":"1","retain":"false","broker":"996228fe.ababc8","x":1134,"y":777,"wires":[]},{"id":"b8b1d9aa.4750e8","type":"mqtt out","z":"5026c83e.b368c8","name":"alarm/area4/sensitivity","topic":"instar/local/alarm/area4/sensitivity/raw","qos":"1","retain":"false","broker":"996228fe.ababc8","x":1134,"y":811,"wires":[]},{"id":"dcd36136.9bb35","type":"mqtt in","z":"5026c83e.b368c8","name":"status/alarm/area1/sensitivity","topic":"instar/local/status/alarm/area1/sensitivity","qos":"1","datatype":"auto","broker":"996228fe.ababc8","x":125,"y":713,"wires":[["179c1d2b.b52983"]]},{"id":"664e8204.f1c2ac","type":"mqtt in","z":"5026c83e.b368c8","name":"status/alarm/area2/sensitivity","topic":"instar/local/status/alarm/area2/sensitivity","qos":"1","datatype":"auto","broker":"996228fe.ababc8","x":125,"y":746,"wires":[["a7f7a96a.42b3f8"]]},{"id":"e4b4bcbc.6d50f","type":"mqtt in","z":"5026c83e.b368c8","name":"status/alarm/area3/sensitivity","topic":"instar/local/status/alarm/area3/sensitivity","qos":"1","datatype":"auto","broker":"996228fe.ababc8","x":125,"y":779,"wires":[["9a95259a.775808"]]},{"id":"179c1d2b.b52983","type":"json","z":"5026c83e.b368c8","name":"","property":"payload","action":"","pretty":false,"x":307,"y":713,"wires":[["c7437a69.100158"]]},{"id":"c7437a69.100158","type":"function","z":"5026c83e.b368c8","name":"targetValue","func":"msg.payload = {'id':804, 'value': Number(msg.payload.val)}\n\nreturn msg;","outputs":1,"noerr":0,"x":439,"y":713,"wires":[["abf1fa60.d48ce8"]]},{"id":"2d6567fc.476c58","type":"mqtt in","z":"5026c83e.b368c8","name":"status/alarm/area4/sensitivity","topic":"instar/local/status/alarm/area4/sensitivity","qos":"1","datatype":"auto","broker":"996228fe.ababc8","x":126,"y":813,"wires":[["3600a383.8da2cc"]]},{"id":"a7f7a96a.42b3f8","type":"json","z":"5026c83e.b368c8","name":"","property":"payload","action":"","pretty":false,"x":304,"y":747,"wires":[["f06a519e.35e61"]]},{"id":"f06a519e.35e61","type":"function","z":"5026c83e.b368c8","name":"targetValue","func":"msg.payload = {'id':805, 'value': Number(msg.payload.val)}\n\nreturn msg;","outputs":1,"noerr":0,"x":436,"y":747,"wires":[["abf1fa60.d48ce8"]]},{"id":"9a95259a.775808","type":"json","z":"5026c83e.b368c8","name":"","property":"payload","action":"","pretty":false,"x":304,"y":780,"wires":[["6df42c0e.a8e674"]]},{"id":"6df42c0e.a8e674","type":"function","z":"5026c83e.b368c8","name":"targetValue","func":"msg.payload = {'id':806, 'value': Number(msg.payload.val)}\n\nreturn msg;","outputs":1,"noerr":0,"x":436,"y":780,"wires":[["abf1fa60.d48ce8"]]},{"id":"3600a383.8da2cc","type":"json","z":"5026c83e.b368c8","name":"","property":"payload","action":"","pretty":false,"x":304,"y":813,"wires":[["49c51425.19a79c"]]},{"id":"49c51425.19a79c","type":"function","z":"5026c83e.b368c8","name":"targetValue","func":"msg.payload = {'id':807, 'value': Number(msg.payload.val)}\n\nreturn msg;","outputs":1,"noerr":0,"x":436,"y":813,"wires":[["abf1fa60.d48ce8"]]},{"id":"250e98b6.711328","type":"switch","z":"5026c83e.b368c8","name":"","property":"payload.attributeId","propertyType":"msg","rules":[{"t":"eq","v":"804","vt":"num"},{"t":"eq","v":"805","vt":"num"},{"t":"eq","v":"806","vt":"num"},{"t":"eq","v":"807","vt":"num"}],"checkall":"true","repair":false,"outputs":4,"x":795,"y":760,"wires":[["6121f440.b825bc"],["6a27f00e.6e6df"],["1146a6bd.ce8c69"],["93369dd1.1cb7"]]},{"id":"6a27f00e.6e6df","type":"change","z":"5026c83e.b368c8","name":"targetValue","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.targetValue","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":949,"y":744,"wires":[["92ef3632.912648"]]},{"id":"1146a6bd.ce8c69","type":"change","z":"5026c83e.b368c8","name":"targetValue","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.targetValue","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":949,"y":777,"wires":[["ff5ed819.216878"]]},{"id":"93369dd1.1cb7","type":"change","z":"5026c83e.b368c8","name":"targetValue","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.targetValue","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":949,"y":811,"wires":[["b8b1d9aa.4750e8"]]},{"id":"996228fe.ababc8","type":"mqtt-broker","z":"","name":"INSTAR MQTT","broker":"192.168.2.117","port":"1883","clientid":"iored","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]

PIR Sensor


homee virtual INSTAR MQTT Camera


[{"id":"81864a6c.ee0808","type":"mqtt in","z":"5026c83e.b368c8","name":"status/alarm/actions/pir/enable","topic":"instar/local/status/alarm/actions/pir/enable","qos":"1","datatype":"auto","broker":"996228fe.ababc8","x":138,"y":888,"wires":[["129a088f.a907a7"]]},{"id":"129a088f.a907a7","type":"json","z":"5026c83e.b368c8","name":"","property":"payload","action":"","pretty":false,"x":334,"y":888,"wires":[["59cbc796.55ce28"]]},{"id":"59cbc796.55ce28","type":"function","z":"5026c83e.b368c8","name":"targetValue","func":"msg.payload = {'id':810, 'value': Number(msg.payload.val)}\n\nreturn msg;","outputs":1,"noerr":0,"x":470,"y":888,"wires":[["c3696710.adb1f8"]]},{"id":"c3696710.adb1f8","type":"homeeDevice","z":"5026c83e.b368c8","virtual-homee":"","name":"INSTAR PIR Sensor","nodeId":"6","profile":"10","icon":"nodeicon_motiondetector","attributes":"[{\"id\":810,\"node_id\":6,\"instance\":0,\"minimum\":0,\"maximum\":1,\"current_value\":0,\"target_value\":0,\"last_value\":0,\"unit\":\"PIR\",\"step_value\":1,\"editable\":1,\"type\":1,\"state\":1,\"last_changed\":12345555,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":1,\"data\":\"\"}]","x":648,"y":888,"wires":[["ff90e61e.7a6f18"]]},{"id":"ff90e61e.7a6f18","type":"change","z":"5026c83e.b368c8","name":"targetValue","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.targetValue","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":851,"y":888,"wires":[["74eea772.00cda8"]]},{"id":"74eea772.00cda8","type":"mqtt out","z":"5026c83e.b368c8","name":"alarm/actions/pir/enable","topic":"instar/local/alarm/actions/pir/enable/raw","qos":"1","retain":"false","broker":"996228fe.ababc8","x":1046,"y":888,"wires":[]},{"id":"996228fe.ababc8","type":"mqtt-broker","z":"","name":"INSTAR MQTT","broker":"192.168.2.117","port":"1883","clientid":"iored","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]

Alarm Email


homee virtual INSTAR MQTT Camera


[{"id":"fd6f8015.cb62","type":"mqtt in","z":"5026c83e.b368c8","name":"status/alarm/actions/email","topic":"instar/local/status/alarm/actions/email","qos":"1","datatype":"auto","broker":"996228fe.ababc8","x":115,"y":961,"wires":[["113ee65f.4c031a"]]},{"id":"113ee65f.4c031a","type":"json","z":"5026c83e.b368c8","name":"","property":"payload","action":"","pretty":false,"x":293,"y":961,"wires":[["c3b26a32.e07aa8"]]},{"id":"b3a65cc0.3af35","type":"function","z":"5026c83e.b368c8","name":"targetValue 1","func":"msg.payload = {'id':809, 'value': 1}\n\nreturn msg;","outputs":1,"noerr":0,"x":549,"y":942,"wires":[["61f02d87.6f9bd4"]]},{"id":"61f02d87.6f9bd4","type":"homeeDevice","z":"5026c83e.b368c8","virtual-homee":"","name":"INSTAR Alarm Email","nodeId":"5","profile":"10","icon":"nodeicon_motiondetector","attributes":"[{\"id\":809,\"node_id\":5,\"instance\":0,\"minimum\":0,\"maximum\":1,\"current_value\":0,\"target_value\":0,\"last_value\":0,\"unit\":\"Email\",\"step_value\":1,\"editable\":1,\"type\":1,\"state\":1,\"last_changed\":12345555,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":1,\"data\":\"\"}]","x":745,"y":961,"wires":[["295e95f6.e7bd5a"]]},{"id":"295e95f6.e7bd5a","type":"switch","z":"5026c83e.b368c8","name":"","property":"payload.targetValue","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"str"},{"t":"eq","v":"0","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":910,"y":961,"wires":[["47d78e1f.aa4cd"],["9947f73e.612918"]]},{"id":"47d78e1f.aa4cd","type":"change","z":"5026c83e.b368c8","name":"on","rules":[{"t":"set","p":"payload","pt":"msg","to":"on","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1024,"y":941,"wires":[["860cadd1.84f62"]]},{"id":"860cadd1.84f62","type":"mqtt out","z":"5026c83e.b368c8","name":"alarm/actions/email","topic":"instar/local/alarm/actions/email/raw","qos":"1","retain":"false","broker":"996228fe.ababc8","x":1181,"y":958,"wires":[]},{"id":"c3b26a32.e07aa8","type":"switch","z":"5026c83e.b368c8","name":"","property":"payload.val","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":407,"y":961,"wires":[["b3a65cc0.3af35"],["176ed0b8.ae38df"]]},{"id":"176ed0b8.ae38df","type":"function","z":"5026c83e.b368c8","name":"targetValue 0","func":"msg.payload = {'id':809, 'value': 0}\n\nreturn msg;","outputs":1,"noerr":0,"x":549,"y":978,"wires":[["61f02d87.6f9bd4"]]},{"id":"9947f73e.612918","type":"change","z":"5026c83e.b368c8","name":"off","rules":[{"t":"set","p":"payload","pt":"msg","to":"off","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1026,"y":977,"wires":[["860cadd1.84f62"]]},{"id":"996228fe.ababc8","type":"mqtt-broker","z":"","name":"INSTAR MQTT","broker":"192.168.2.117","port":"1883","clientid":"iored","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]

homee virtual INSTAR MQTT Camera


[{"id":"3ad35fb4.3b9fd","type":"mqtt in","z":"5026c83e.b368c8","name":"status/alarm/actions/linkareas","topic":"instar/local/status/alarm/actions/linkareas","qos":"1","datatype":"auto","broker":"996228fe.ababc8","x":125,"y":1044,"wires":[["5023d58.dbff12c"]]},{"id":"5023d58.dbff12c","type":"json","z":"5026c83e.b368c8","name":"","property":"payload","action":"","pretty":false,"x":309,"y":1044,"wires":[["252aa218.cc297e"]]},{"id":"592b80ce.9cd","type":"function","z":"5026c83e.b368c8","name":"targetValue 1","func":"msg.payload = {'id':811, 'value': 1}\n\nreturn msg;","outputs":1,"noerr":0,"x":559,"y":1024,"wires":[["39ff78cc.73d728"]]},{"id":"39ff78cc.73d728","type":"homeeDevice","z":"5026c83e.b368c8","virtual-homee":"","name":"INSTAR Link Areas","nodeId":"7","profile":"10","icon":"nodeicon_motiondetector","attributes":"[{\"id\":811,\"node_id\":7,\"instance\":0,\"minimum\":0,\"maximum\":1,\"current_value\":0,\"target_value\":0,\"last_value\":0,\"unit\":\"Link\",\"step_value\":1,\"editable\":1,\"type\":1,\"state\":1,\"last_changed\":12345555,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":1,\"data\":\"\"}]","x":738,"y":1043,"wires":[["dce4e978.835d48"]]},{"id":"dce4e978.835d48","type":"switch","z":"5026c83e.b368c8","name":"","property":"payload.targetValue","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"str"},{"t":"eq","v":"0","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":897,"y":1043,"wires":[["f236f62e.67f348"],["b0e37df5.831fe"]]},{"id":"f236f62e.67f348","type":"change","z":"5026c83e.b368c8","name":"on","rules":[{"t":"set","p":"payload","pt":"msg","to":"on","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1011,"y":1023,"wires":[["39451fce.b2a85"]]},{"id":"252aa218.cc297e","type":"switch","z":"5026c83e.b368c8","name":"","property":"payload.val","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":423,"y":1044,"wires":[["592b80ce.9cd"],["6f53fb71.303594"]]},{"id":"6f53fb71.303594","type":"function","z":"5026c83e.b368c8","name":"targetValue 0","func":"msg.payload = {'id':811, 'value': 0}\n\nreturn msg;","outputs":1,"noerr":0,"x":559,"y":1060,"wires":[["39ff78cc.73d728"]]},{"id":"b0e37df5.831fe","type":"change","z":"5026c83e.b368c8","name":"off","rules":[{"t":"set","p":"payload","pt":"msg","to":"off","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1013,"y":1059,"wires":[["39451fce.b2a85"]]},{"id":"39451fce.b2a85","type":"mqtt out","z":"5026c83e.b368c8","name":"alarm/actions/linkareas","topic":"instar/local/alarm/actions/linkareas/raw","qos":"1","retain":"false","broker":"996228fe.ababc8","x":1189,"y":1039,"wires":[]},{"id":"996228fe.ababc8","type":"mqtt-broker","z":"","name":"INSTAR MQTT","broker":"192.168.2.117","port":"1883","clientid":"iored","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]

Push Notifications


homee virtual INSTAR MQTT Camera


[{"id":"7c6cc24d.e1e1ac","type":"mqtt in","z":"5026c83e.b368c8","name":"status/alarm/push/enable","topic":"instar/local/status/alarm/push/enable","qos":"1","datatype":"auto","broker":"996228fe.ababc8","x":115,"y":1126,"wires":[["34d6eda3.7f2a82"]]},{"id":"34d6eda3.7f2a82","type":"json","z":"5026c83e.b368c8","name":"","property":"payload","action":"","pretty":false,"x":295,"y":1126,"wires":[["f87641d6.d1a5e"]]},{"id":"7a5c213d.431b5","type":"function","z":"5026c83e.b368c8","name":"targetValue 1","func":"msg.payload = {'id':812, 'value': 1}\n\nreturn msg;","outputs":1,"noerr":0,"x":545,"y":1106,"wires":[["8818aa9c.9d1588"]]},{"id":"8818aa9c.9d1588","type":"homeeDevice","z":"5026c83e.b368c8","virtual-homee":"","name":"INSTAR Push","nodeId":"8","profile":"10","icon":"nodeicon_motiondetector","attributes":"[{\"id\":812,\"node_id\":8,\"instance\":0,\"minimum\":0,\"maximum\":1,\"current_value\":0,\"target_value\":0,\"last_value\":0,\"unit\":\"Push\",\"step_value\":1,\"editable\":1,\"type\":1,\"state\":1,\"last_changed\":12345555,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":1,\"data\":\"\"}]","x":714,"y":1125,"wires":[["45d8636f.f34b2c"]]},{"id":"45d8636f.f34b2c","type":"switch","z":"5026c83e.b368c8","name":"","property":"payload.targetValue","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"str"},{"t":"eq","v":"0","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":861,"y":1125,"wires":[["56cb2536.c0493c"],["ab06f670.eb3c28"]]},{"id":"56cb2536.c0493c","type":"change","z":"5026c83e.b368c8","name":"on","rules":[{"t":"set","p":"payload","pt":"msg","to":"on","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":975,"y":1105,"wires":[["72036965.0a3de8"]]},{"id":"f87641d6.d1a5e","type":"switch","z":"5026c83e.b368c8","name":"","property":"payload.val","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":409,"y":1126,"wires":[["7a5c213d.431b5"],["6b3bdf8b.a29c3"]]},{"id":"6b3bdf8b.a29c3","type":"function","z":"5026c83e.b368c8","name":"targetValue 0","func":"msg.payload = {'id':812, 'value': 0}\n\nreturn msg;","outputs":1,"noerr":0,"x":545,"y":1142,"wires":[["8818aa9c.9d1588"]]},{"id":"ab06f670.eb3c28","type":"change","z":"5026c83e.b368c8","name":"off","rules":[{"t":"set","p":"payload","pt":"msg","to":"off","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":977,"y":1141,"wires":[["72036965.0a3de8"]]},{"id":"72036965.0a3de8","type":"mqtt out","z":"5026c83e.b368c8","name":"alarm/push/enable","topic":"instar/local/alarm/push/enable/raw","qos":"1","retain":"false","broker":"996228fe.ababc8","x":1133,"y":1122,"wires":[]},{"id":"996228fe.ababc8","type":"mqtt-broker","z":"","name":"INSTAR MQTT","broker":"192.168.2.117","port":"1883","clientid":"iored","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]

Alarmserver


homee virtual INSTAR MQTT Camera


[{"id":"a09fcd00.a4abe","type":"mqtt in","z":"5026c83e.b368c8","name":"status/alarm/alarmserver/enable","topic":"instar/local/status/alarm/alarmserver/enable","qos":"1","datatype":"auto","broker":"996228fe.ababc8","x":136,"y":1206,"wires":[["e7411f79.18fd9"]]},{"id":"e7411f79.18fd9","type":"json","z":"5026c83e.b368c8","name":"","property":"payload","action":"","pretty":false,"x":331,"y":1206,"wires":[["8bd12c62.43983"]]},{"id":"dbc80338.521d2","type":"function","z":"5026c83e.b368c8","name":"targetValue 1","func":"msg.payload = {'id':813, 'value': 1}\n\nreturn msg;","outputs":1,"noerr":0,"x":581,"y":1186,"wires":[["999fa34a.93a35"]]},{"id":"999fa34a.93a35","type":"homeeDevice","z":"5026c83e.b368c8","virtual-homee":"","name":"INSTAR Alarmserver","nodeId":"9","profile":"10","icon":"nodeicon_motiondetector","attributes":"[{\"id\":813,\"node_id\":9,\"instance\":0,\"minimum\":0,\"maximum\":1,\"current_value\":0,\"target_value\":0,\"last_value\":0,\"unit\":\"Push\",\"step_value\":1,\"editable\":1,\"type\":1,\"state\":1,\"last_changed\":12345555,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":1,\"data\":\"\"}]","x":770,"y":1205,"wires":[["ca817911.e36f58"]]},{"id":"ca817911.e36f58","type":"switch","z":"5026c83e.b368c8","name":"","property":"payload.targetValue","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"str"},{"t":"eq","v":"0","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":934,"y":1205,"wires":[["71b7bc45.e0e784"],["e7879bc3.ae0cf8"]]},{"id":"71b7bc45.e0e784","type":"change","z":"5026c83e.b368c8","name":"on","rules":[{"t":"set","p":"payload","pt":"msg","to":"on","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1048,"y":1185,"wires":[["1e783ce9.a961a3"]]},{"id":"8bd12c62.43983","type":"switch","z":"5026c83e.b368c8","name":"","property":"payload.val","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":445,"y":1206,"wires":[["dbc80338.521d2"],["8d9c7ef0.678b3"]]},{"id":"8d9c7ef0.678b3","type":"function","z":"5026c83e.b368c8","name":"targetValue 0","func":"msg.payload = {'id':813, 'value': 0}\n\nreturn msg;","outputs":1,"noerr":0,"x":581,"y":1222,"wires":[["999fa34a.93a35"]]},{"id":"e7879bc3.ae0cf8","type":"change","z":"5026c83e.b368c8","name":"off","rules":[{"t":"set","p":"payload","pt":"msg","to":"off","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1050,"y":1221,"wires":[["1e783ce9.a961a3"]]},{"id":"1e783ce9.a961a3","type":"mqtt out","z":"5026c83e.b368c8","name":"alarm/alarmserver/enable","topic":"instar/local/alarm/alarmserver/enable/raw","qos":"1","retain":"false","broker":"996228fe.ababc8","x":1226,"y":1199,"wires":[]},{"id":"996228fe.ababc8","type":"mqtt-broker","z":"","name":"INSTAR MQTT","broker":"192.168.2.117","port":"1883","clientid":"iored","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]

Alarm Trigger


homee virtual INSTAR MQTT Camera


[{"id":"b2ef12bd.7d2c9","type":"function","z":"5026c83e.b368c8","name":"targetValue","func":"msg.payload = {'id':808, 'value': 0}\n\nreturn msg;","outputs":1,"noerr":0,"x":242,"y":1293,"wires":[["51bf9ce5.21a8f4"]]},{"id":"51bf9ce5.21a8f4","type":"homeeDevice","z":"5026c83e.b368c8","virtual-homee":"","name":"INSTAR Trigger Alarm","nodeId":"11","profile":"10","icon":"nodeicon_motiondetector","attributes":"[{\"id\":808,\"node_id\":11,\"instance\":0,\"minimum\":0,\"maximum\":1,\"current_value\":0,\"target_value\":0,\"last_value\":0,\"unit\":\"Alarm\",\"step_value\":1,\"editable\":1,\"type\":1,\"state\":1,\"last_changed\":12345555,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":1,\"data\":\"\"}]","x":431,"y":1293,"wires":[["ac83ec3b.e027c","24a4bb3b.3c08c4"]]},{"id":"6c120330.99439c","type":"mqtt out","z":"5026c83e.b368c8","name":"alarm/pushalarm","topic":"instar/local/alarm/pushalarm/raw","qos":"1","retain":"false","broker":"996228fe.ababc8","x":777,"y":1293,"wires":[]},{"id":"ac83ec3b.e027c","type":"delay","z":"5026c83e.b368c8","name":"","pauseType":"delay","timeout":"1","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":95,"y":1293,"wires":[["b2ef12bd.7d2c9"]]},{"id":"24a4bb3b.3c08c4","type":"change","z":"5026c83e.b368c8","name":"1","rules":[{"t":"set","p":"payload","pt":"msg","to":"1","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":618,"y":1293,"wires":[["6c120330.99439c"]]},{"id":"996228fe.ababc8","type":"mqtt-broker","z":"","name":"INSTAR MQTT","broker":"192.168.2.117","port":"1883","clientid":"iored","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]

Camera Reboot


homee virtual INSTAR MQTT Camera


[{"id":"946f44ca.1b2288","type":"function","z":"5026c83e.b368c8","name":"targetValue","func":"msg.payload = {'id':814, 'value': 0}\n\nreturn msg;","outputs":1,"noerr":0,"x":238,"y":1352,"wires":[["993c72f.289539"]]},{"id":"993c72f.289539","type":"homeeDevice","z":"5026c83e.b368c8","virtual-homee":"","name":"INSTAR Reboot","nodeId":"10","profile":"10","icon":"nodeicon_motiondetector","attributes":"[{\"id\":814,\"node_id\":10,\"instance\":0,\"minimum\":0,\"maximum\":1,\"current_value\":0,\"target_value\":0,\"last_value\":0,\"unit\":\"Reboot\",\"step_value\":1,\"editable\":1,\"type\":1,\"state\":1,\"last_changed\":12345555,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":1,\"data\":\"\"}]","x":407,"y":1352,"wires":[["df89cbe2.44e028","637dcf38.9531d"]]},{"id":"27082f76.c2bca","type":"mqtt out","z":"5026c83e.b368c8","name":"system/reboot","topic":"instar/local/system/reboot/raw","qos":"1","retain":"false","broker":"996228fe.ababc8","x":763,"y":1352,"wires":[]},{"id":"df89cbe2.44e028","type":"delay","z":"5026c83e.b368c8","name":"","pauseType":"delay","timeout":"1","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":91,"y":1352,"wires":[["946f44ca.1b2288"]]},{"id":"637dcf38.9531d","type":"change","z":"5026c83e.b368c8","name":"1","rules":[{"t":"set","p":"payload","pt":"msg","to":"1","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":614,"y":1352,"wires":[["27082f76.c2bca"]]},{"id":"996228fe.ababc8","type":"mqtt-broker","z":"","name":"INSTAR MQTT","broker":"192.168.2.117","port":"1883","clientid":"iored","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]

Nightvision Mode


homee virtual INSTAR MQTT Camera


[{"id":"412c35d8.3aa55c","type":"mqtt in","z":"5026c83e.b368c8","name":"status/features/nightvision/autoircut","topic":"instar/local/status/features/nightvision/autoircut","qos":"1","datatype":"auto","broker":"996228fe.ababc8","x":145,"y":1452,"wires":[["cb041dce.707e1"]]},{"id":"cb041dce.707e1","type":"json","z":"5026c83e.b368c8","name":"","property":"payload","action":"","pretty":false,"x":351,"y":1452,"wires":[["bd4e1e2d.a0b63"]]},{"id":"d48808bd.6c42f8","type":"function","z":"5026c83e.b368c8","name":"targetValue 1","func":"msg.payload = {'id':815, 'value': 1}\n\nreturn msg;","outputs":1,"noerr":0,"x":601,"y":1415,"wires":[["92181f1b.95f31"]]},{"id":"92181f1b.95f31","type":"homeeDevice","z":"5026c83e.b368c8","virtual-homee":"","name":"INSTAR Nightvision","nodeId":"11","profile":"25","icon":"nodeicon_motiondetector","attributes":"[{\"id\":815,\"node_id\":11,\"instance\":0,\"minimum\":0,\"maximum\":2,\"current_value\":0,\"target_value\":0,\"last_value\":0,\"unit\":\"Nightvision\",\"step_value\":1,\"editable\":1,\"type\":1,\"state\":1,\"last_changed\":12345555,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":1,\"data\":\"\"}]","x":781,"y":1450,"wires":[["8009258d.b21958"]]},{"id":"8009258d.b21958","type":"switch","z":"5026c83e.b368c8","name":"","property":"payload.targetValue","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"str"},{"t":"eq","v":"0","vt":"num"},{"t":"eq","v":"2","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":955,"y":1450,"wires":[["2be86c74.c6d724"],["cf2d5c72.e1803"],["b6bd5d69.b0f55"]]},{"id":"2be86c74.c6d724","type":"change","z":"5026c83e.b368c8","name":"auto","rules":[{"t":"set","p":"payload","pt":"msg","to":"auto","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1069,"y":1415,"wires":[["be172674.4497d8"]]},{"id":"bd4e1e2d.a0b63","type":"switch","z":"5026c83e.b368c8","name":"","property":"payload.val","propertyType":"msg","rules":[{"t":"eq","v":"auto","vt":"str"},{"t":"eq","v":"close","vt":"str"},{"t":"eq","v":"open","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":465,"y":1452,"wires":[["d48808bd.6c42f8"],["4b3b6fbb.ef71c"],["99633903.870468"]]},{"id":"4b3b6fbb.ef71c","type":"function","z":"5026c83e.b368c8","name":"targetValue 0","func":"msg.payload = {'id':815, 'value': 0}\n\nreturn msg;","outputs":1,"noerr":0,"x":601,"y":1451,"wires":[["92181f1b.95f31"]]},{"id":"cf2d5c72.e1803","type":"change","z":"5026c83e.b368c8","name":"close","rules":[{"t":"set","p":"payload","pt":"msg","to":"close","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1071,"y":1451,"wires":[["be172674.4497d8"]]},{"id":"be172674.4497d8","type":"mqtt out","z":"5026c83e.b368c8","name":"features/nightvision/autoircut","topic":"instar/local/features/nightvision/autoled/raw","qos":"1","retain":"false","broker":"996228fe.ababc8","x":1261,"y":1450,"wires":[]},{"id":"b6bd5d69.b0f55","type":"change","z":"5026c83e.b368c8","name":"open","rules":[{"t":"set","p":"payload","pt":"msg","to":"open","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1071,"y":1487,"wires":[["be172674.4497d8"]]},{"id":"99633903.870468","type":"function","z":"5026c83e.b368c8","name":"targetValue 2","func":"msg.payload = {'id':815, 'value': 2}\n\nreturn msg;","outputs":1,"noerr":0,"x":601,"y":1487,"wires":[["92181f1b.95f31"]]},{"id":"996228fe.ababc8","type":"mqtt-broker","z":"","name":"INSTAR MQTT","broker":"192.168.2.117","port":"1883","clientid":"iored","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]

Nightvision IR LEDs


homee virtual INSTAR MQTT Camera


[{"id":"27554dd6.8ec422","type":"mqtt in","z":"5026c83e.b368c8","name":"status/features/nightvision/autoled","topic":"instar/local/status/features/nightvision/autoled","qos":"1","datatype":"auto","broker":"996228fe.ababc8","x":145,"y":1563,"wires":[["cd2a1929.be7e38"]]},{"id":"cd2a1929.be7e38","type":"json","z":"5026c83e.b368c8","name":"","property":"payload","action":"","pretty":false,"x":351,"y":1563,"wires":[["c71abc2f.657f8"]]},{"id":"d453867c.84fb88","type":"function","z":"5026c83e.b368c8","name":"targetValue 1","func":"msg.payload = {'id':816, 'value': 1}\n\nreturn msg;","outputs":1,"noerr":0,"x":601,"y":1543,"wires":[["c3d2a7b5.929628"]]},{"id":"c3d2a7b5.929628","type":"homeeDevice","z":"5026c83e.b368c8","virtual-homee":"","name":"INSTAR IR LEDs","nodeId":"12","profile":"10","icon":"nodeicon_motiondetector","attributes":"[{\"id\":816,\"node_id\":12,\"instance\":0,\"minimum\":0,\"maximum\":1,\"current_value\":0,\"target_value\":0,\"last_value\":0,\"unit\":\"IR\",\"step_value\":1,\"editable\":1,\"type\":1,\"state\":1,\"last_changed\":12345555,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":1,\"data\":\"\"}]","x":770,"y":1562,"wires":[["af42e371.d84fb"]]},{"id":"af42e371.d84fb","type":"switch","z":"5026c83e.b368c8","name":"","property":"payload.targetValue","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"str"},{"t":"eq","v":"0","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":954,"y":1562,"wires":[["7fce7a27.3c4284"],["a40f7347.03109"]]},{"id":"7fce7a27.3c4284","type":"change","z":"5026c83e.b368c8","name":"auto","rules":[{"t":"set","p":"payload","pt":"msg","to":"auto","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1068,"y":1542,"wires":[["9e294bf5.228348"]]},{"id":"c71abc2f.657f8","type":"switch","z":"5026c83e.b368c8","name":"","property":"payload.val","propertyType":"msg","rules":[{"t":"eq","v":"auto","vt":"str"},{"t":"eq","v":"close","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":465,"y":1563,"wires":[["d453867c.84fb88"],["c0465cf1.6546e"]]},{"id":"c0465cf1.6546e","type":"function","z":"5026c83e.b368c8","name":"targetValue 0","func":"msg.payload = {'id':816, 'value': 0}\n\nreturn msg;","outputs":1,"noerr":0,"x":601,"y":1579,"wires":[["c3d2a7b5.929628"]]},{"id":"a40f7347.03109","type":"change","z":"5026c83e.b368c8","name":"close","rules":[{"t":"set","p":"payload","pt":"msg","to":"close","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1070,"y":1578,"wires":[["9e294bf5.228348"]]},{"id":"9e294bf5.228348","type":"mqtt out","z":"5026c83e.b368c8","name":"features/nightvision/autoled","topic":"instar/local/features/nightvision/autoled/raw","qos":"1","retain":"false","broker":"996228fe.ababc8","x":1255,"y":1558,"wires":[]},{"id":"996228fe.ababc8","type":"mqtt-broker","z":"","name":"INSTAR MQTT","broker":"192.168.2.117","port":"1883","clientid":"iored","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]

Preset Positions


homee virtual INSTAR MQTT Camera


[{"id":"a1713d2e.34044","type":"homeeDevice","z":"5026c83e.b368c8","virtual-homee":"","name":"INSTAR Presets","nodeId":"13","profile":"1004","icon":"nodeicon_motiondetector","attributes":"[{\"id\":817,\"node_id\":13,\"instance\":0,\"minimum\":0,\"maximum\":7,\"current_value\":0,\"target_value\":0,\"last_value\":0,\"unit\":\"Preset\",\"step_value\":1,\"editable\":1,\"type\":2,\"state\":1,\"last_changed\":12345555,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":1,\"data\":\"\"}]","x":620,"y":1634,"wires":[["4112beed.90014","ca5427e4.48cd48"]]},{"id":"960b125f.dac4f","type":"mqtt out","z":"5026c83e.b368c8","name":"features/ptz/preset","topic":"instar/local/features/ptz/preset/raw","qos":"1","retain":"false","broker":"996228fe.ababc8","x":990,"y":1634,"wires":[]},{"id":"4112beed.90014","type":"change","z":"5026c83e.b368c8","name":"targetValue","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.targetValue","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":815,"y":1634,"wires":[["960b125f.dac4f"]]},{"id":"c45fca32.e1aca8","type":"function","z":"5026c83e.b368c8","name":"targetValue","func":"msg.payload = {'id':817, 'value': 0}\n\nreturn msg;","outputs":1,"noerr":0,"x":450,"y":1634,"wires":[["a1713d2e.34044"]]},{"id":"ca5427e4.48cd48","type":"delay","z":"5026c83e.b368c8","name":"","pauseType":"delay","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":303,"y":1634,"wires":[["c45fca32.e1aca8"]]},{"id":"996228fe.ababc8","type":"mqtt-broker","z":"","name":"INSTAR MQTT","broker":"192.168.2.117","port":"1883","clientid":"iored","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]

Manual Recording


homee virtual INSTAR MQTT Camera


[{"id":"678c91ad.0088","type":"function","z":"5026c83e.b368c8","name":"targetValue","func":"msg.payload = {'id':818, 'value': 0}\n\nreturn msg;","outputs":1,"noerr":0,"x":450,"y":1745,"wires":[["5444af11.ee1e3","c7ee2dfa.93e89"]]},{"id":"5444af11.ee1e3","type":"homeeDevice","z":"5026c83e.b368c8","virtual-homee":"","name":"INSTAR Manual Rec","nodeId":"14","profile":"10","icon":"nodeicon_motiondetector","attributes":"[{\"id\":818,\"node_id\":14,\"instance\":0,\"minimum\":0,\"maximum\":1,\"current_value\":0,\"target_value\":0,\"last_value\":0,\"unit\":\"Rec\",\"step_value\":1,\"editable\":1,\"type\":1,\"state\":1,\"last_changed\":12345555,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":1,\"data\":\"\"}]","x":639,"y":1745,"wires":[["5cd92aeb.613e44","45e688ca.b469b8"]]},{"id":"7dc29a9c.97b904","type":"mqtt out","z":"5026c83e.b368c8","name":"features/manualrec/start","topic":"instar/local/features/manualrec/start/raw","qos":"1","retain":"false","broker":"996228fe.ababc8","x":1005,"y":1745,"wires":[]},{"id":"5cd92aeb.613e44","type":"delay","z":"5026c83e.b368c8","name":"","pauseType":"delay","timeout":"20","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":303,"y":1745,"wires":[["678c91ad.0088"]]},{"id":"45e688ca.b469b8","type":"change","z":"5026c83e.b368c8","name":"60","rules":[{"t":"set","p":"payload","pt":"msg","to":"60","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":826,"y":1745,"wires":[["7dc29a9c.97b904"]]},{"id":"c7ee2dfa.93e89","type":"change","z":"5026c83e.b368c8","name":"off","rules":[{"t":"set","p":"payload","pt":"msg","to":"off","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":590,"y":1696,"wires":[["1139abe7.938d64"]]},{"id":"1139abe7.938d64","type":"mqtt out","z":"5026c83e.b368c8","name":"features/manualrec/stop","topic":"instar/local/features/manualrec/stop/raw","qos":"1","retain":"false","broker":"996228fe.ababc8","x":769,"y":1696,"wires":[]},{"id":"996228fe.ababc8","type":"mqtt-broker","z":"","name":"INSTAR MQTT","broker":"192.168.2.117","port":"1883","clientid":"iored","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]

Pan & Tilt


homee virtual INSTAR MQTT Camera


[{"id":"38b5c7e2.d08818","type":"homeeDevice","z":"5026c83e.b368c8","virtual-homee":"","name":"INSTAR Move","nodeId":"15","profile":"10","icon":"nodeicon_motiondetector","attributes":"[{\"id\":819,\"node_id\":15,\"instance\":0,\"minimum\":0,\"maximum\":1,\"current_value\":0,\"target_value\":0,\"last_value\":0,\"unit\":\"Up\",\"step_value\":1,\"editable\":1,\"type\":1,\"state\":1,\"last_changed\":12345555,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":1,\"data\":\"\"},{\"id\":820,\"node_id\":15,\"instance\":1,\"minimum\":0,\"maximum\":1,\"current_value\":0,\"target_value\":0,\"last_value\":0,\"unit\":\"Right\",\"step_value\":1,\"editable\":1,\"type\":1,\"state\":1,\"last_changed\":12345555,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":1,\"data\":\"\"},{\"id\":821,\"node_id\":15,\"instance\":2,\"minimum\":0,\"maximum\":1,\"current_value\":0,\"target_value\":0,\"last_value\":0,\"unit\":\"Down\",\"step_value\":1,\"editable\":1,\"type\":1,\"state\":1,\"last_changed\":12345555,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":1,\"data\":\"\"},{\"id\":822,\"node_id\":15,\"instance\":3,\"minimum\":0,\"maximum\":1,\"current_value\":0,\"target_value\":0,\"last_value\":0,\"unit\":\"Left\",\"step_value\":1,\"editable\":1,\"type\":1,\"state\":1,\"last_changed\":12345555,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":1,\"data\":\"\"}]","x":626,"y":1845,"wires":[["7b97a1c.5675c6","9d4cc439.719248"]]},{"id":"ae79382d.78f578","type":"mqtt out","z":"5026c83e.b368c8","name":"features/ptz/movestep","topic":"instar/local/features/ptz/movestep/raw","qos":"1","retain":"false","broker":"996228fe.ababc8","x":1166,"y":1847,"wires":[]},{"id":"dc709a95.9beb88","type":"change","z":"5026c83e.b368c8","name":"up","rules":[{"t":"set","p":"payload","pt":"msg","to":"up","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":940,"y":1796,"wires":[["ae79382d.78f578"]]},{"id":"7b97a1c.5675c6","type":"switch","z":"5026c83e.b368c8","name":"","property":"payload.attributeId","propertyType":"msg","rules":[{"t":"eq","v":"819","vt":"num"},{"t":"eq","v":"820","vt":"num"},{"t":"eq","v":"821","vt":"num"},{"t":"eq","v":"822","vt":"num"}],"checkall":"true","repair":false,"outputs":4,"x":806,"y":1845,"wires":[["dc709a95.9beb88"],["9f0685be.1afc78"],["f240c404.73c1f8"],["13f757b.cfab9a8"]]},{"id":"9f0685be.1afc78","type":"change","z":"5026c83e.b368c8","name":"right","rules":[{"t":"set","p":"payload","pt":"msg","to":"right","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":940,"y":1829,"wires":[["ae79382d.78f578"]]},{"id":"f240c404.73c1f8","type":"change","z":"5026c83e.b368c8","name":"down","rules":[{"t":"set","p":"payload","pt":"msg","to":"down","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":940,"y":1862,"wires":[["ae79382d.78f578"]]},{"id":"13f757b.cfab9a8","type":"change","z":"5026c83e.b368c8","name":"left","rules":[{"t":"set","p":"payload","pt":"msg","to":"left","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":940,"y":1896,"wires":[["ae79382d.78f578"]]},{"id":"a851ece6.9963a","type":"function","z":"5026c83e.b368c8","name":"targetValue","func":"msg.payload = {'id':819, 'value': 0}\n\nreturn msg;","outputs":1,"noerr":0,"x":427,"y":1862,"wires":[["38b5c7e2.d08818"]]},{"id":"9d4cc439.719248","type":"delay","z":"5026c83e.b368c8","name":"","pauseType":"delay","timeout":"1","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":250,"y":1920,"wires":[["a851ece6.9963a","63f0f420.303a0c","ecf4de1e.0eece","6c6b3dc7.7235b4"]]},{"id":"63f0f420.303a0c","type":"function","z":"5026c83e.b368c8","name":"targetValue","func":"msg.payload = {'id':820, 'value': 0}\n\nreturn msg;","outputs":1,"noerr":0,"x":425,"y":1900,"wires":[["38b5c7e2.d08818"]]},{"id":"ecf4de1e.0eece","type":"function","z":"5026c83e.b368c8","name":"targetValue","func":"msg.payload = {'id':821, 'value': 0}\n\nreturn msg;","outputs":1,"noerr":0,"x":425,"y":1940,"wires":[["38b5c7e2.d08818"]]},{"id":"6c6b3dc7.7235b4","type":"function","z":"5026c83e.b368c8","name":"targetValue","func":"msg.payload = {'id':822, 'value': 0}\n\nreturn msg;","outputs":1,"noerr":0,"x":425,"y":1980,"wires":[["38b5c7e2.d08818"]]},{"id":"996228fe.ababc8","type":"mqtt-broker","z":"","name":"INSTAR MQTT","broker":"192.168.2.117","port":"1883","clientid":"iored","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]