Sample Switch light - Supergiovane/node-red-contrib-knx-ultimate GitHub Wiki
Assuming you send a message from a function node, to a knx-ultimate node with Group Address and Datapoint properties set.
Turn on/off a Lamp
return {payload:true}
return {payload:false}
Read Lamp Status
return ({readstatus: true});
You'll expect a "response" from the KNX bus, that you can read using a knx-ultimate node set to react to "response" messages. Please see the node config wiki
Assuming you send a message from a function node, to a knx-ultimate node with Listen to all Group Addresses and and a ETS csv file set.
Turn on/off a Lamp
return ({
payload: true,
destination: "0/0/1"
});
return ({
payload: false,
destination: "0/0/1"
});
Read Lamp Status
return ({
readstatus: true,
destination: "0/0/1"
});
Sample ETS csv file to paste into your config for testing pourposes
Copy/Paste this into your configuration node.
"Group name" "Address" "Central" "Unfiltered" "Description" "DatapointType" "Security"
"Attuatori luci" "0/-/-" "" "" "Attuatori luci" "" "Auto"
"Luci primo piano" "0/0/-" "" "" "Luci primo piano" "" "Auto"
"Camera da letto luce" "0/0/1" "" "" "Camera da letto luce" "DPST-1-8" "Auto"
"Loggia camera da letto" "0/0/2" "" "" "Loggia camera da letto" "DPST-1-1" "Auto"
"Camera armadi luce" "0/0/3" "" "" "Camera armadi luce" "DPST-1-1" "Auto"
"Bagno grande luce" "0/0/4" "" "" "Bagno grande luce" "DPST-1-1" "Auto"
"Loggia bagno grande" "0/0/5" "" "" "Loggia bagno grande" "DPST-1-1" "Auto"
"Bagno grande specchio (switch)" "0/0/6" "" "" "Bagno grande specchio switch" "DPST-1-1" "Auto"
"Lavanderia luce" "0/0/7" "" "" "Lavanderia luce" "DPST-1-1" "Auto"
"Lavanderia specchio (switch)" "0/0/8" "" "" "Lavanderia specchio switch" "DPST-1-1" "Auto"
"Studio luce" "0/0/9" "" "" "Studio luce" "DPST-1-1" "Auto"
"Soggiorno luce (switch)" "0/0/10" "" "" "Soggiorno luce switch" "DPST-1-1" "Auto"
"Soggiorno aplique (switch)" "0/0/11" "" "" "Soggiorno aplique switch" "DPST-1-1" "Auto"
"Loggia soggiorno cucina" "0/0/12" "" "" "Loggia soggiorno-cucina" "DPST-1-1" "Auto"
"Cucina luce" "0/0/13" "" "" "Cucina luce" "DPT-1" "Auto"
"Cucina luce pensili" "0/0/14" "" "" "Cucina luce pensili" "DPT-1" "Auto"
"Corridoio luce" "0/0/15" "" "" "Corridoio luce" "DPST-1-1" "Auto"
"Scala LED" "0/0/16" "" "" "Scala LED" "DPST-1-1" "Auto"
"Soggiorno aplique brighness value" "0/0/17" "" "" "" "DPST-5-1" "Auto"
"Bagno grande specchio (dim)" "0/0/18" "" "" "Bagno grande specchio dim" "DPST-3-7" "Auto"
"Soggiorno luce brighness value" "0/0/19" "" "" "" "DPST-5-1" "Auto"
"Lavanderia specchio (dim)" "0/0/20" "" "" "Lavanderia specchio dim" "DPST-3-7" "Auto"
"Scala LED cambiacolori RGB" "0/0/21" "" "" "" "DPST-1-1" "Auto"
"Bagno grande specchio brightness value" "0/0/22" "" "" "" "DPST-5-1" "Auto"
"Soggiorno luce (dim)" "0/0/23" "" "" "Soggiorno luce dim" "DPST-3-7" "Auto"