GithubHelp home page GithubHelp logo

org.openhab.binding.lcnserial's Introduction

LCNSerial Binding

This binding provides support for an LCN-Bussystem - with a serial interface LCN-PK (or maybe LCN- PKU? ) The binding ist tested on a Windows10-PC and a Raspberry-Pi using a LCN-PK Modul with a USB-Serial cable. The serial-Port can be configured with the Thing configuration.

LCN Bus

In this first release, all Things (LCN-Modules) must use the same COM-Port.

Supported Things

The binding defines a single thing type called lcnActor.

An lcnActor requires the single configuration parameter port, which specifies the serial port that should be used.

Configuration

The configuration for the LCNSerial consists of the following parameters:

Parameter Type Description
port String The serial port where the LCN-PK is connected to. (e.g. Linux: /dev/ttyUSB1, Windows: COM2)
lcn_id int LCN-Address of the LCN-Module
Shutter1_enabled boolean Does the LCN-Module has a Relais-Modul connected with Shutter1 connected?
Shutter1_drivetime int Time in seconds the Rollershutter needs to close the window/door 100%
Shutter1_overalltime int Time in seconds the Rollershutter needs to come to the end-position
Shutter2_enabled boolean Does the LCN-Module has a Relais-Modul connected with Shutter1 connected?
Shutter2_drivetime int Time in seconds the Rollershutter needs to close the window/door 100%
Shutter2_overalltime int Time in seconds the Rollershutter needs to come to the end-position
Shutter3_enabled boolean Does the LCN-Module has a Relais-Modul connected with Shutter1 connected?
Shutter3_drivetime int Time in seconds the Rollershutter needs to close the window/door 100%
Shutter3_overalltime int Time in seconds the Rollershutter needs to come to the end-position
Shutter4_enabled boolean Does the LCN-Module has a Relais-Modul connected with Shutter1 connected?
Shutter4_drivetime int Time in seconds the Rollershutter needs to close the window/door 100%
Shutter4_overalltime int Time in seconds the Rollershutter needs to come to the end-position

Channels

Channel Type Description
Output1 Dimmer tbd
Output2 Dimmer tbd
Relais_Bit1 Switch tbd
Relais_Bit2 Switch tbd
Relais_Bit3 Switch tbd
Relais_Bit4 Switch tbd
Relais_Bit5 Switch tbd
Relais_Bit6 Switch tbd
Relais_Bit7 Switch tbd
Relais_Bit8 Switch tbd
Shutter1 Rollershutter tbd
Shutter2 Rollershutter tbd
Shutter3 Rollershutter tbd
Shutter4 Rollershutter tbd

Configuration Paper-UI

Paper-UI1 Paper-UI2

Usage of rollershutters

Rollershutters in LCN are typically connected to a "LCN-R8H" or "LCN-R4M2H" modul.

Relais-Modul

2 Relais are used:

  • 1 for setting the power
  • 1 for defining the direction

LCNSerial currently supports up to 4 shutters - inclusive a position handling (realized by timers) Relais for Rollershutters

Full Example

demo.things:

TBD

demo.items:

TBD

Note: This is a trigger channel, so you will most likely bind a second (state) channel to your item, which will control your physical light, so you might end up with the following, if you want to use your button with a Hue bulb:

TBD

demo.sitemap:

sitemap demo label="Main Menu"
{
    Frame {
        TBD
    }
}

org.openhab.binding.lcnserial's People

Contributors

fischertbilligheim 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.