Sample Read value from Device - Supergiovane/node-red-contrib-knx-ultimate GitHub Wiki

Read Request to the KNX BUS

KNX-Ultimate is able to issua a read request to a device in your KNX installation. This is useful, for example, when you need to obtain a status of a light if it doesn't send his own status on change, or it's useful if you wish in any case query a device. The queried device returns a Response type telegram, so you can trap it by using a knx-ultimate node set to react to responses.

Read Request


Copy this code and paste it into your flow

View code

Adjust the nodes according to your setup

[{"id":"3c005b67.29796c","type":"knxUltimate","z":"7ea56d8f.4d0aa4","server":"9a4e8eef.3e9d38","topic":"0/0/26","outputtopic":"","dpt":"1.001","initialread":false,"notifyreadrequest":false,"notifyresponse":false,"notifywrite":true,"notifyreadrequestalsorespondtobus":false,"notifyreadrequestalsorespondtobusdefaultvalueifnotinitialized":"","listenallga":false,"name":"Light Status","outputtype":"write","outputRBE":false,"inputRBE":false,"formatmultiplyvalue":"1","formatnegativevalue":"leave","formatdecimalsvalue":"999","passthrough":"no","x":410,"y":320,"wires":[[]]},{"id":"7875f296.21be24","type":"debug","z":"7ea56d8f.4d0aa4","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","x":310,"y":560,"wires":[]},{"id":"4ddb745c.b99a74","type":"function","z":"7ea56d8f.4d0aa4","name":"Read","func":"return {readstatus:true};","outputs":1,"noerr":0,"x":270,"y":320,"wires":[["3c005b67.29796c"]]},{"id":"21f9cbac.27df4c","type":"inject","z":"7ea56d8f.4d0aa4","name":"Read","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":150,"y":320,"wires":[["4ddb745c.b99a74"]]},{"id":"d3f5ddf.89419a","type":"comment","z":"7ea56d8f.4d0aa4","name":"Issue a READ request, using a function node, the alternate way","info":"","x":310,"y":280,"wires":[]},{"id":"5bbee4e9.d07e3c","type":"knxUltimate","z":"7ea56d8f.4d0aa4","server":"9a4e8eef.3e9d38","topic":"0/0/26","dpt":"1.001","initialread":false,"notifyreadrequest":false,"notifyresponse":true,"notifywrite":false,"notifyreadrequestalsorespondtobus":false,"notifyreadrequestalsorespondtobusdefaultvalueifnotinitialized":"","listenallga":false,"name":"Light Status","outputtype":"write","outputRBE":false,"inputRBE":false,"x":150,"y":560,"wires":[["7875f296.21be24"]]},{"id":"32b55af1.c07f66","type":"comment","z":"7ea56d8f.4d0aa4","name":"Catch the response from the device","info":"","x":220,"y":520,"wires":[]},{"id":"6cd812da.a77d24","type":"knxUltimate","z":"7ea56d8f.4d0aa4","server":"9a4e8eef.3e9d38","topic":"0/0/26","outputtopic":"","dpt":"1.001","initialread":false,"notifyreadrequest":false,"notifyresponse":false,"notifywrite":true,"notifyreadrequestalsorespondtobus":false,"notifyreadrequestalsorespondtobusdefaultvalueifnotinitialized":"","listenallga":true,"name":"All","outputtype":"write","outputRBE":false,"inputRBE":false,"formatmultiplyvalue":"1","formatnegativevalue":"leave","formatdecimalsvalue":"999","passthrough":"no","x":390,"y":420,"wires":[[]]},{"id":"c21da88c.38d28","type":"function","z":"7ea56d8f.4d0aa4","name":"Read","func":"return {destination:\"0/0/26\",readstatus:true};\n","outputs":1,"noerr":0,"x":270,"y":420,"wires":[["6cd812da.a77d24"]]},{"id":"e1845278.806828","type":"inject","z":"7ea56d8f.4d0aa4","name":"Read","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":150,"y":420,"wires":[["c21da88c.38d28"]]},{"id":"efb4f0fc.2a5458","type":"comment","z":"7ea56d8f.4d0aa4","name":"Issue a READ request to a specific group address, using function node and a \"universal mode\" node","info":"","x":420,"y":380,"wires":[]},{"id":"1f1817e1.75aba8","type":"knxUltimate","z":"7ea56d8f.4d0aa4","server":"9a4e8eef.3e9d38","topic":"0/0/26","outputtopic":"","dpt":"1.001","initialread":false,"notifyreadrequest":false,"notifyresponse":false,"notifywrite":true,"notifyreadrequestalsorespondtobus":false,"notifyreadrequestalsorespondtobusdefaultvalueifnotinitialized":"","listenallga":false,"name":"Light Status","outputtype":"read","outputRBE":false,"inputRBE":false,"formatmultiplyvalue":"1","formatnegativevalue":"leave","formatdecimalsvalue":"999","passthrough":"no","x":290,"y":100,"wires":[[]]},{"id":"c4829357.af7a8","type":"inject","z":"7ea56d8f.4d0aa4","name":"Read","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":150,"y":100,"wires":[["1f1817e1.75aba8"]]},{"id":"94240bec.3ed5c","type":"comment","z":"7ea56d8f.4d0aa4","name":"Issue a READ request","info":"","x":180,"y":60,"wires":[]},{"id":"a69114ea.6d0d68","type":"knxUltimate","z":"7ea56d8f.4d0aa4","server":"9a4e8eef.3e9d38","topic":"0/0/26","outputtopic":"","dpt":"1.001","initialread":false,"notifyreadrequest":false,"notifyresponse":false,"notifywrite":true,"notifyreadrequestalsorespondtobus":false,"notifyreadrequestalsorespondtobusdefaultvalueifnotinitialized":"","listenallga":true,"name":"All","outputtype":"read","outputRBE":false,"inputRBE":false,"formatmultiplyvalue":"1","formatnegativevalue":"leave","formatdecimalsvalue":"999","passthrough":"no","x":270,"y":200,"wires":[[]]},{"id":"dc69388e.cc9738","type":"inject","z":"7ea56d8f.4d0aa4","name":"Read","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":150,"y":200,"wires":[["a69114ea.6d0d68"]]},{"id":"1e9205c1.fdb3da","type":"comment","z":"7ea56d8f.4d0aa4","name":"Issue a READ request, using a \"universal mode\" node","info":"","x":280,"y":160,"wires":[]},{"id":"9a4e8eef.3e9d38","type":"knxUltimate-config","z":"","host":"224.0.23.12","port":"3671","physAddr":"15.15.22","suppressACKRequest":false,"csv":"","KNXEthInterface":"en9","KNXEthInterfaceManuallyInput":"","statusDisplayLastUpdate":false,"statusDisplayDeviceNameWhenALL":false,"statusDisplayDataPoint":false}]
⚠️ **GitHub.com Fallback** ⚠️