Sample DateTime to BUS - Supergiovane/node-red-contrib-knx-ultimate GitHub Wiki

DATE / TIME TO THE KNX BUS


Set KNX bus Date with Datapoint 11.001

// This sets the Date
msg.payload = new Date().toString();
return msg;

Set KNX bus Time with Datapoint 10.001

// This sets the time
msg.payload = new Date().toString();
return msg;

Set KNX bus Date/Time with Datapoint 19.001

// Setting date/time using DPT 19.001
// This sends both date and time to the KNX BUS
msg.payload = new Date();
return msg;
⚠️ **GitHub.com Fallback** ⚠️