mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-21 00:06:51 +00:00
Update Pilight switch component configuration variable (#6883)
This commit is contained in:
parent
2a3cdbfe37
commit
29efb1f7b1
@ -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`):
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user