Update Mochad light and switch component configuration variable (#6680)

* Update Mochad light and switch component configuration variable

Update style of Mochad light and switch component documentation to follow new configuration variables description.
Related to #6385.

* 🚑 Bugfix

*  Undo last change

* 🚑 Fix

* 🚑 Fix round 2
This commit is contained in:
Klaas Schoute 2018-10-11 21:43:02 +02:00 committed by Franck Nijhof
parent 18dd481a9e
commit e8cbe07067
2 changed files with 37 additions and 15 deletions

View File

@ -26,10 +26,24 @@ light:
- address: a5
```
Configuration variables:
- **address** (*Required*): The X10 address of the light.
- **name** (*Optional*): The name of the light. Default is: x10_light_dev_*address*.
- **comm_type** (*Optional*): pl (powerline) or rf (radio frequency). Default is pl.
- **brightness_levels** (*Optional*): The number of brightness levels the X10 light device supports. This can either be 32, 64, or 256 (note that the max
value sent to the device will be n-1 because it starts at 0)
{% configuration %}
address:
description: The X10 address of the light.
required: true
type: string
name:
description: The name of the light.
required: false
default: x10_light_dev_address
type: string
comm_type:
description: pl (powerline) or rf (radio frequency).
required: false
default: pl
type: string
brightness_levels:
description: The number of brightness levels the X10 light device supports. This can either be 32, 64, or 256 (note that the max value sent to the device will be n-1 because it starts at 0).
required: false
default: 32
type: integer
{% endconfiguration %}

View File

@ -27,11 +27,19 @@ switch:
- address: a5
```
Configuration variables:
- **address** (*Required*): The X10 address of the switch.
- **name** (*Optional*): The name of the switch. Default is: x10_switch_dev_*address*.
- **comm_type** (*Optional*): pl (powerline) or rf (radio frequency). Default is pl.
{% configuration %}
address:
description: The X10 address of the switch.
required: true
type: string
name:
description: The name of the switch.
required: false
default: x10_switch_dev_*address*
type: string
comm_type:
description: pl (powerline) or rf (radio frequency).
required: false
default: pl
type: string
{% endconfiguration %}