mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-16 13:56:53 +00:00
Update Kankun switch component configuration variable (#6682)
* Update Kankun switch component configuration variable Update style of Kankun switch component documentation to follow new configuration variables description. Related to #6385. * ✏️ Tweak
This commit is contained in:
parent
9bc92ec1e4
commit
e8f962fa7d
@ -30,14 +30,41 @@ switch:
|
|||||||
host: hostname_or_ipaddr
|
host: hostname_or_ipaddr
|
||||||
```
|
```
|
||||||
|
|
||||||
Configuration variables:
|
{% configuration %}
|
||||||
|
switches:
|
||||||
- **switches** (*Required*): The array that contains all Kankun switches.
|
description: The array that contains all Kankun switches.
|
||||||
- **identifier** (*Required*): Name of the Kankun switch as slug. Multiple entries are possible.
|
required: true
|
||||||
- **host** (*Required*): Hostname or IP address of the switch on the local network.
|
type: map
|
||||||
- **name** (*Optional*): Friendly name of the switch.
|
keys:
|
||||||
- **port** (*Optional*): HTTP connection port, defaults to 80.
|
identifier:
|
||||||
- **path** (*Optional*): Path of CGI script, defaults to `/cgi-bin/json.cgi`.
|
description: Name of the Kankun switch as slug. Multiple entries are possible.
|
||||||
- **username** (*Optional*): Username for basic authentication.
|
required: true
|
||||||
- **password** (*Optional*): Password for basic authentication.
|
type: map
|
||||||
|
keys:
|
||||||
|
host:
|
||||||
|
description: Hostname or IP address of the switch on the local network.
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
name:
|
||||||
|
description: Friendly name of the switch.
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
port:
|
||||||
|
description: HTTP connection port.
|
||||||
|
required: false
|
||||||
|
default: 80
|
||||||
|
type: integer
|
||||||
|
patch:
|
||||||
|
description: Path of CGI script.
|
||||||
|
required: false
|
||||||
|
default: "/cgi-bin/json.cgi"
|
||||||
|
type: string
|
||||||
|
username:
|
||||||
|
description: Username for basic authentication.
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
password:
|
||||||
|
description: Password for basic authentication.
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
{% endconfiguration %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user