mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-16 13:56:53 +00:00
Updated code syntax (#13198)
This commit is contained in:
parent
855ccbaeb4
commit
bce66a0b97
@ -16,16 +16,16 @@ To enable this switch, add the following lines to your `configuration.yaml` file
|
||||
```yaml
|
||||
# Example configuration.yaml entry
|
||||
switch:
|
||||
platform: telnet
|
||||
switches:
|
||||
projector:
|
||||
resource: THE_IP_ADDRESS
|
||||
port: 4002
|
||||
command_on: "PWR ON"
|
||||
command_off: "PWR OFF"
|
||||
command_state: "PWR?"
|
||||
value_template: '{{ value == "PWR=01" }}'
|
||||
timeout: 0.9
|
||||
- platform: telnet
|
||||
switches:
|
||||
projector:
|
||||
resource: THE_IP_ADDRESS
|
||||
port: 4002
|
||||
command_on: "PWR ON"
|
||||
command_off: "PWR OFF"
|
||||
command_state: "PWR?"
|
||||
value_template: '{{ value == "PWR=01" }}'
|
||||
timeout: 0.9
|
||||
```
|
||||
{% endraw %}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user