From b5323398954b9b21dbe0d08f59970d98f1e66aa6 Mon Sep 17 00:00:00 2001 From: Andre Lengwenus Date: Mon, 21 Jan 2019 20:39:25 +0100 Subject: [PATCH] Add documentation for LCN switch platform (#8223) * Add documentation for LCN switch platform * Changed ha_release to 0.87 --- source/_components/lcn.markdown | 25 +++++++++++++++++++++++++ source/_components/switch.lcn.markdown | 24 ++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 source/_components/switch.lcn.markdown diff --git a/source/_components/lcn.markdown b/source/_components/lcn.markdown index 5f92a5f5639..5dc88d3fe8d 100644 --- a/source/_components/lcn.markdown +++ b/source/_components/lcn.markdown @@ -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: - [Light](/components/light.lcn) +- [Switch](/components/switch.lcn) + ## {% linkable_title Configuration %} @@ -46,6 +48,11 @@ lcn: output: output1 dimmable: true transition: 5 + + switches: + - name: Sprinkler switch + address: myhome.s0.m7 + output: relay1 ``` {% configuration %} @@ -113,6 +120,24 @@ lights: required: false type: int 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 %} diff --git a/source/_components/switch.lcn.markdown b/source/_components/switch.lcn.markdown new file mode 100644 index 00000000000..6e61a908f51 --- /dev/null +++ b/source/_components/switch.lcn.markdown @@ -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.