UNPKG

knxultimate

Version:

KNX IP protocol implementation for Node. This is the ENGINE of Node-Red KNX-Ultimate node.

52 lines (47 loc) 1.09 kB
/** * Provides KNX Data Point Type 6 encoding and decoding helpers. * * Written in Italy with love, sun and passion, by Massimo Saccani. * * Released under the MIT License. * Use at your own risk; the author assumes no liability for damages. */ /** * KNXEngine - a KNX protocol stack in Javascript * (C) 2020-2022 Supergiovane */ import type { DatapointConfig } from '.' const config: DatapointConfig = { id: 'DPT6', // Adding the ID for DPT6 basetype: { bitlength: 8, signedness: 'signed', valuetype: 'basic', desc: '8-bit signed value', range: [-128, 127], help: `// Send value -128 to 127 msg.payload = -24; return msg;`, }, subtypes: { // 6.001 percentage (-128%..127%) '001': { name: 'Percent (-128..127%)', desc: 'percent', unit: '%', }, // 6.002 counter pulses (-128..127) '010': { name: 'Counter pulses (-128..127%)', desc: 'counter pulses', unit: 'pulses', }, // 6.02 Status with mode '020': { name: 'Status with mode (-128..127%)', desc: 'status with mode', unit: 'status', }, }, } export default config