Learning to understand Node-red Flows
Posted: Sunday 07 June 2020 21:31
..Like the head says....
Hope there are some pro's that can help to learn domoticz with Node red.
Step by step make simple flows to understand how to use them.
For me myself is nr higher math..
And i use other flows to check some options and try then.
So i hope when i you post here a flow there are some people that can help:-)
My simple flow.
Try to get pressure and wifi from a device
And the output.
Hope there are some pro's that can help to learn domoticz with Node red.
Step by step make simple flows to understand how to use them.
For me myself is nr higher math..
And i use other flows to check some options and try then.
So i hope when i you post here a flow there are some people that can help:-)
My simple flow.
Try to get pressure and wifi from a device
Code: Select all
[{"id":"92af773.5fabe88","type":"tab","label":"Uitlees z2m","disabled":false,"info":""},{"id":"28f69e95.240e02","type":"mqtt in","z":"92af773.5fabe88","name":"","topic":"zigbee2mqtt/ZBXA: Woonkamer","qos":"2","datatype":"json","broker":"76a2f7d0.ff3b38","x":190,"y":180,"wires":[["2cffad2e.910f72","68547aa4.2b5c84"]]},{"id":"2cffad2e.910f72","type":"debug","z":"92af773.5fabe88","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":270,"y":120,"wires":[]},{"id":"27e56c48.b0d674","type":"mqtt out","z":"92af773.5fabe88","name":"Domoticz In","topic":"domoticz/in","qos":"0","retain":"false","broker":"6ec8bbd8.1dc814","x":1130,"y":180,"wires":[]},{"id":"50eabbae.8004b4","type":"function","z":"92af773.5fabe88","name":"idx\":13592 druk and pressure","func":"msg.payload = {\"command\":\"udevice\",\"idx\":13592,\"nvalue\":0,\"svalue\":\"pressure\".toString()};\nreturn msg;","outputs":1,"noerr":0,"x":880,"y":180,"wires":[["27e56c48.b0d674","7391975b.b9fa78"]]},{"id":"7391975b.b9fa78","type":"debug","z":"92af773.5fabe88","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":810,"y":120,"wires":[]},{"id":"68547aa4.2b5c84","type":"function","z":"92af773.5fabe88","name":"add pressure","func":"msg.src = 'pressure';\n\nreturn msg;","outputs":1,"noerr":0,"x":490,"y":180,"wires":[["f7c57f5.e8f1f8","50eabbae.8004b4"]]},{"id":"f7c57f5.e8f1f8","type":"debug","z":"92af773.5fabe88","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":510,"y":120,"wires":[]},{"id":"2eb3041f.2d2e5c","type":"mqtt in","z":"92af773.5fabe88","name":"","topic":"zigbee2mqtt/ZBXA: Woonkamer","qos":"2","datatype":"json","broker":"76a2f7d0.ff3b38","x":190,"y":420,"wires":[["5a397e50.105c6","7643e676.b13d78"]]},{"id":"5a397e50.105c6","type":"debug","z":"92af773.5fabe88","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":230,"y":360,"wires":[]},{"id":"e155d52b.ddd478","type":"mqtt out","z":"92af773.5fabe88","name":"Domoticz In","topic":"domoticz/in","qos":"1","retain":"true","broker":"6ec8bbd8.1dc814","x":1110,"y":420,"wires":[]},{"id":"2c68e92e.dbd696","type":"function","z":"92af773.5fabe88","name":"idx\":13605 custom sensor","func":"msg.payload = {\"command\":\"udevice\",\"idx\":13605,\"nvalue\":0,\"svalue\":\"linkquality\".toString()};\nreturn msg;","outputs":1,"noerr":0,"x":870,"y":420,"wires":[["e155d52b.ddd478","6138e958.aa2ea8"]]},{"id":"6138e958.aa2ea8","type":"debug","z":"92af773.5fabe88","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":870,"y":360,"wires":[]},{"id":"7643e676.b13d78","type":"function","z":"92af773.5fabe88","name":"ad Link","func":"msg.src = 'linkquality';\nreturn msg;","outputs":1,"noerr":0,"x":520,"y":420,"wires":[["4cf428b7.d16448","2c68e92e.dbd696"]]},{"id":"4cf428b7.d16448","type":"debug","z":"92af773.5fabe88","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":510,"y":360,"wires":[]},{"id":"76a2f7d0.ff3b38","type":"mqtt-broker","broker":"127.0.0.1","port":"1883","clientid":"","usetls":false,"verifyservercert":true,"compatmode":true,"keepalive":15,"cleansession":true,"birthQos":"0","willQos":"0"},{"id":"6ec8bbd8.1dc814","type":"mqtt-broker","z":"","name":"","broker":"127.0.0.1","port":"1883","clientid":"","usetls":false,"verifyservercert":true,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]