Giter Club home page Giter Club logo

node-red-contrib-knx-easy's Introduction

node-red-contrib-knx-easy

Simple Node-RED nodes for knx. The input and output nodes is used in a similar way as the built in mqtt nodes.

Input and output node

Input node

Set Group-address and DPT in node config to subscribe to all messages with that destination and msg.payload will contain the value you want.

Listen to values written to address 1/1/1:

Input and output node

You can also suscribe to GroupValue response and GroupValue read events, this way you can create your own response and send it back to the bus with a knxEasy-out node.

If you need more than the value, extended information is available in the message outputted:

msg = 
    { "topic": "1/1/1"
    , "payload": 0
    , "knx": 
        { "event": "GroupValue_Write"
        , "dpt":"1.001"
        , "dptDetails": 
            { "name": "DPT_Switch"
            ,"desc": "switch"
            ,"use":"G"
            }
        , "source":"2.2.2"
        , "destination": "1/1/1"
        , "rawValue":[0]
        }
    }                        

(Read events will have payload and knx.rawValue of null)

Output node

Set up group address and select DPT in node configuration. Send your values using msg.payload This makes it simple to connect the output node directly to a slider or a switch. Input and output node

Output mode can be set to "Response" if you want to use a input-node to listen for readRequests and make your own responses to the knx bus.

Inputs

payload

Value to transmit

knx

The following parameters can be sent to override what is configured for the node:

{ "knx": { 
    "event": "GroupValue_Write",
     "dpt":"1.001",
     "destination": "1/1/1"
    }
}

(DPTs can be sent as 9 , "9" , "9.001" or "DPT9.001")

Example: If you only want to override destination you would send only that, eventType and dpt will be taken from node config:

{ "knx": { 
     "destination": "1/1/1"
    }
}

node-red-contrib-knx-easy's People

Contributors

atlewee avatar micha149 avatar moccacup avatar waldbaer avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.