Update ADS documentation (#4145)

This commit is contained in:
Fabian Affolter 2017-12-06 08:10:25 +01:00 committed by GitHub
parent 39bed44f77
commit 93f964b786
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 54 additions and 73 deletions

View file

@ -7,17 +7,15 @@ sidebar: true
comments: false
sharing: true
footer: true
logo: home-assistant.png
logo: beckhoff.png
ha_category: Switch
ha_release: 0.60
ha_release: "0.60"
ha_iot_class: "Local Push"
---
An ADS switch accesses a boolean variable on the connected ADS device. The
variable is identified by its name.
The `ads` switch platform accesses a boolean variable on the connected ADS device. The variable is identified by its name.
To use your ADS device, you first have to set up your [ADS
hub](/components/ads/) and then add the following to your `configuration.yaml`
To use your ADS device, you first have to set up your [ADS hub](/components/ads/) and then add the following to your `configuration.yaml`
file:
```yaml
@ -26,15 +24,14 @@ switch:
- platform: ads
adsvar: .global_bool
```
Configuration variables:
{% configuration %}
adsvar:
required: true
description: The name of the variable which you want to access on the ADS device
description: The name of the variable which you want to access on the ADS device.
type: string
name:
required: false
description: An identifier for the switch in the frontend
description: An identifier for the switch in the frontend.
type: string
{% endconfiguration %}
{% endconfiguration %}