Minimizing of the configuration sample (#1047)
This commit is contained in:
parent
dfb2c94112
commit
a2776110aa
24 changed files with 104 additions and 157 deletions
|
@ -23,9 +23,8 @@ To use Netio devices in your installation, add the following to your `configurat
|
|||
switch:
|
||||
- platform: netio
|
||||
host: 192.168.1.43
|
||||
port: 1234
|
||||
username: user
|
||||
password: pwd
|
||||
username: YOUR_USERNAME
|
||||
password: YOUR_PASSWORD
|
||||
outlets:
|
||||
1: Free
|
||||
2: TV
|
||||
|
@ -34,17 +33,14 @@ switch:
|
|||
|
||||
Configuration variables:
|
||||
|
||||
- **host** (*Required*): The IP address of your Netio plug, eg. http://192.168.1.32
|
||||
- **host** (*Required*): The IP address of your Netio plug, eg. `http://192.168.1.32`.
|
||||
- **port** (*Optional*): The port to communicate with the switch. Defaults to `1234`.
|
||||
- **username** (*Required*): The username for your plug.
|
||||
- **password** (*Required*): The password for your plug.
|
||||
- **outlets** (*Required*) array: List of all outlets.
|
||||
- **[No.]: [Name]** (*Required*): Identification of an outlet.
|
||||
|
||||
|
||||
|
||||
To get pushed updates from the Netio devices, one can add this Lua code in the device interface as an action triggered on "Netio" "System variables updated"
|
||||
with an 'Always' schedule:
|
||||
To get pushed updates from the Netio devices, one can add this Lua code in the device interface as an action triggered on "Netio" "System variables updated" with an 'Always' schedule:
|
||||
|
||||
|
||||
```lua
|
||||
|
@ -69,44 +65,3 @@ local url = string.format('http://%s%s?%s', address, path, qs)
|
|||
devices.system.CustomCGI{url=url}
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
The `dlink` switch platform allows you to control the state of your [D-Link Wi-Fi Smart Plugs](http://us.dlink.com/product-category/home-solutions/connected-home/smart-plugs/).
|
||||
|
||||
Supported devices (tested):
|
||||
|
||||
- DSP-W215
|
||||
- DSP-W110
|
||||
|
||||
To use your D-Link smart plugs in your installation, add the following to your `configuration.yaml` file:
|
||||
|
||||
```yaml
|
||||
# Example configuration.yaml entry
|
||||
switch:
|
||||
platform: dlink
|
||||
host: IP_ADRRESS
|
||||
name: D-Link plug
|
||||
username: YOUR_USERNAME
|
||||
password: YOUR_PASSWORD
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue