Update Pilight switch component configuration variable (#6883)

This commit is contained in:
Klaas Schoute 2018-10-17 11:50:15 +02:00 committed by Fabian Affolter
parent 2a3cdbfe37
commit 29efb1f7b1

View File

@ -37,14 +37,34 @@ switch:
'off': 1 'off': 1
``` ```
Configuration variables: {% configuration %}
switches:
- **switches** array (*Required*): The list that contains all command switches. description: The list that contains all command switches.
- **[entry]** (*Required*): Name of the command switch. Multiple entries are possible. required: true
- **on_code** (*Required*): The code to turn the device on. type: string
- **off_code** (*Required*): The code to turn the device off. keys:
- **on_code_receive** (*Optional*): If given, this command will turn the switch on if it is received by pilight. entry:
- **off_code_receive** (*Optional*): If given, this command will turn the switch off if it is received by pilight. description: Name of the command switch. Multiple entries are possible.
required: true
type: list
keys:
on_code:
description: The code to turn the device on.
required: true
type: list
off_code:
description: The code to turn the device off.
required: true
type: list
on_code_receive:
description: If given, this command will turn the switch on if it is received by pilight.
required: false
type: list
off_code_receive:
description: If given, this command will turn the switch off if it is received by pilight.
required: false
type: list
{% endconfiguration %}
Variables for the different codes (`on_code` and `off_code`): Variables for the different codes (`on_code` and `off_code`):