Add documentation for LCN switch platform (#8223)

* Add documentation for LCN switch platform

* Changed ha_release to 0.87
This commit is contained in:
Andre Lengwenus 2019-01-21 20:39:25 +01:00 committed by Franck Nijhof
parent 4ba0fe31de
commit b532339895
2 changed files with 49 additions and 0 deletions

View File

@ -23,6 +23,8 @@ 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: There is currently support for the following device types within Home Assistant:
- [Light](/components/light.lcn) - [Light](/components/light.lcn)
- [Switch](/components/switch.lcn)
## {% linkable_title Configuration %} ## {% linkable_title Configuration %}
@ -46,6 +48,11 @@ lcn:
output: output1 output: output1
dimmable: true dimmable: true
transition: 5 transition: 5
switches:
- name: Sprinkler switch
address: myhome.s0.m7
output: relay1
``` ```
{% configuration %} {% configuration %}
@ -113,6 +120,24 @@ lights:
required: false required: false
type: int type: int
default: 0 default: 0
switches:
description: List of your switches.
required: false
type: map
keys:
name:
description: "Name of the switch."
required: true
type: string
address:
description: "[Address](/components/lcn#lcn-addresses) of the module/group."
required: true
type: string
output:
description: "Switch source ([OUTPUT_PORT](/components/lcn#ports), [RELAY_PORT](/components/lcn#ports))."
required: true
type: string
{% endconfiguration %} {% endconfiguration %}

View File

@ -0,0 +1,24 @@
---
layout: page
title: "LCN Switch"
description: "Instructions on how to setup LCN switches within Home Assistant."
date: 2018-11-01 08:00
sidebar: true
comments: false
sharing: true
footer: true
logo: lcn.png
ha_category: Switch
ha_release: 0.87
ha_iot_class: "Local Push"
---
The `lcn` switch platform allows the control of the following [LCN](http://www.lcn.eu) ports:
- Output ports
- Relays
## {% linkable_title Configuration %}
The `lcn` component must be configured correctly, see [LCN component](/components/lcn).
This platform is configured within the `lcn` component.