Skip to content

Commit

Permalink
Add docs for LCN binary_sensor platform (#9010)
Browse files Browse the repository at this point in the history
  • Loading branch information
alengwenus authored and amelchio committed Mar 28, 2019
1 parent 831411c commit 7aa1e91
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions source/_components/lcn.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ With this setup sending and receiving commands to and from LCN modules is possib

There is currently support for the following device types within Home Assistant:

- [Binary Sensor](#binary_sensor)
- [Cover](#cover)
- [Light](#light)
- [Sensor](#sensor)
Expand All @@ -49,6 +50,11 @@ lcn:
username: lcn
password: lcn

binary_sensors:
- name: Kitchen window
address: myhome.s0.m7
source: binsensor1

covers:
- name: Living room cover
address: myhome.s0.m7
Expand Down Expand Up @@ -111,6 +117,24 @@ connections:
default: steps50
type: string
binary_sensors:
description: List of your binary sensors.
required: false
type: map
keys:
name:
description: "Name of the sensor."
required: true
type: string
address:
description: "[Address](/components/lcn#lcn-addresses) of the module/group."
required: true
type: string
source:
description: "Sensor source ([BINSENSOR](/components/lcn#ports), [SETPOINT](/components/lcn#variables-and-units), [KEYS](/components/lcn#keys))."
required: true
type: string
covers:
description: List of your covers.
required: false
Expand Down Expand Up @@ -244,6 +268,7 @@ The platforms and service calls use several predefined constants as parameters.
| MOTOR_PORT | `motor1`, `motor2`, `motor3`, `motor4` |
| LED_PORT | `led1`, `led2`, `led3`, `led4`, `led5`, `led6`, `led7`, `led8`, `led9`, `led10`, `led11`, `led12` |
| LOGICOP_PORT | `logicop1`, `logicop2`, `logicop3`, `logicop4` |
| BINSENSOR_PORT | `binsensor1`, `binsensor2`, `binsensor3`, `binsensor4`, `binsensor5`, `binsensor6`, `binsensor7`, `binsensor8` |

The [MOTOR_PORT](/components/lcn#ports) values specify which hardware relay configuration will be used:

Expand Down Expand Up @@ -271,8 +296,23 @@ The [MOTOR_PORT](/components/lcn#ports) values specify which hardware relay conf
| LED_STATE | `on`. `off`, `blink`, `flicker` |
| LOGICOP_STATE | `not`. `or`, `and` |

### {% linkable_title Keys %}:

Whenever a key has to be provided, it is defined by a joint string consisting of the table identifier (`a`, `b`, `c`, `d`) and the corresponding key number.
Examples: `a1`, `a5`, `d8`.

## {% linkable_title Platforms %}

### {% linkable_title Binary Sensor %}

The `lcn` binary sensor platform allows the monitoring of the following [LCN](http://www.lcn.eu) binary data sources:

- Binary hardware sensors
- Lock state of regulator setpoints
- Lock state of keys

The binary sensor can be used in automation scripts or in conjunction with `template` platforms.

### {% linkable_title Cover %}

The `lcn` cover platform allows the control of [LCN](http://www.lcn.eu) relays which have been configured as motor controllers.
Expand Down

0 comments on commit 7aa1e91

Please sign in to comment.