Update optionality of Telnet Switch config (#5007)

State command and value template are optional parameters.
This commit is contained in:
Dan Nixon 2018-03-26 17:24:00 +01:00 committed by Fabian Affolter
parent 45617ed868
commit e547512307

View File

@ -39,6 +39,6 @@ Configuration variables:
- **port** (*Optional*): Port to connect to. Default is 23 if not defined.
- **command_on** (*Required*): Command to turn device on.
- **command_off** (*Required*): Command to turn device off.
- **command_state** (*Required*): Command to determine the state of the switch. If not defined the switch will assume successful state changes.
- **value_template** (*Required*): The template evaluating to `true` will indicate that the switch is on.
- **command_state** (*Optional*): Command to determine the state of the switch. If not defined the switch will assume successful state changes.
- **value_template** (*Optional*): The template evaluating to `true` will indicate that the switch is on.
- **name** (*Optional*): The name used to display the switch in the frontend.