mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-17 22:36:51 +00:00
New component hlk_sw16 relay module (#7250)
* New component hlk_sw16 relay module. * Update to new config schema. * format fixes * add keys * add relayid * add keys * fix
This commit is contained in:
parent
4389ae077f
commit
84c1bd74e2
90
source/_components/hlk_sw16.markdown
Normal file
90
source/_components/hlk_sw16.markdown
Normal file
@ -0,0 +1,90 @@
|
|||||||
|
---
|
||||||
|
layout: page
|
||||||
|
title: "HLK-SW16 Relay Module"
|
||||||
|
description: "Instructions on how to integrate HLK-SW16 relay into Home Assistant."
|
||||||
|
date: 2018-10-29 20:00
|
||||||
|
sidebar: true
|
||||||
|
comments: false
|
||||||
|
sharing: true
|
||||||
|
footer: true
|
||||||
|
logo: hlktech.jpg
|
||||||
|
ha_category: DIY
|
||||||
|
ha_release: 0.84
|
||||||
|
ha_iot_class: "Local Push"
|
||||||
|
---
|
||||||
|
|
||||||
|
The [HLK-SW16](http://www.hlktech.net/product_detail.php?ProId=48) by [Hi-Link](http://www.hlktech.net/) is a simple networkable 16 port relay device.
|
||||||
|
|
||||||
|
To enable it, add the following lines to your `configuration.yaml`:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# Example configuration.yaml entry
|
||||||
|
hlk_sw16:
|
||||||
|
relay1:
|
||||||
|
host: 10.225.225.53
|
||||||
|
switches:
|
||||||
|
0:
|
||||||
|
name: relay1-0
|
||||||
|
1:
|
||||||
|
name: relay1-1
|
||||||
|
2:
|
||||||
|
name: relay1-2
|
||||||
|
3:
|
||||||
|
name: relay1-3
|
||||||
|
4:
|
||||||
|
name: relay1-4
|
||||||
|
5:
|
||||||
|
name: relay1-5
|
||||||
|
6:
|
||||||
|
name: relay1-6
|
||||||
|
7:
|
||||||
|
name: relay1-7
|
||||||
|
8:
|
||||||
|
name: relay1-8
|
||||||
|
9:
|
||||||
|
name: relay1-9
|
||||||
|
a:
|
||||||
|
name: relay1-a
|
||||||
|
b:
|
||||||
|
name: relay1-b
|
||||||
|
c:
|
||||||
|
name: relay1-c
|
||||||
|
d:
|
||||||
|
name: relay1-d
|
||||||
|
e:
|
||||||
|
name: relay1-e
|
||||||
|
f:
|
||||||
|
name: relay1-f
|
||||||
|
```
|
||||||
|
|
||||||
|
{% configuration %}
|
||||||
|
deviceid:
|
||||||
|
description: The array that contains the HLK-SW16 devices.
|
||||||
|
required: true
|
||||||
|
type: map
|
||||||
|
keys:
|
||||||
|
host:
|
||||||
|
description: The IP address or hostname of the HLK-SW16.
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
port:
|
||||||
|
description: The control port for the relays.
|
||||||
|
required: false
|
||||||
|
type: integer
|
||||||
|
default: 8080
|
||||||
|
switches:
|
||||||
|
description: The array that contains the relays.
|
||||||
|
required: true
|
||||||
|
type: map
|
||||||
|
keys:
|
||||||
|
relayid:
|
||||||
|
description: The array that contains the HLK-SW16 relays, each must be a number between 0 and 9 or letter between a and f which each corresponds to a labled relay switch on the HLK-SW16.
|
||||||
|
required: false
|
||||||
|
type: map
|
||||||
|
keys:
|
||||||
|
name:
|
||||||
|
description: The name used to display the switch in the frontend.
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: relayid
|
||||||
|
{% endconfiguration %}
|
18
source/_components/switch.hlk_sw16.markdown
Normal file
18
source/_components/switch.hlk_sw16.markdown
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
---
|
||||||
|
layout: page
|
||||||
|
title: "HLK-SW16 Relay Module"
|
||||||
|
description: "Instructions on how to integrate HLK-SW16 relay switches into Home Assistant."
|
||||||
|
date: 2018-10-29 20:00
|
||||||
|
sidebar: true
|
||||||
|
comments: false
|
||||||
|
sharing: true
|
||||||
|
footer: true
|
||||||
|
logo: hlktech.jpg
|
||||||
|
ha_category: Switch
|
||||||
|
ha_release: 0.84
|
||||||
|
ha_iot_class: "Local Push"
|
||||||
|
---
|
||||||
|
|
||||||
|
See the [HLK-SW16 main component](/components/hlk_sw16/) for configuration instructions.
|
||||||
|
|
||||||
|
The HLK-SW16 is a simple 16 port relay switch.
|
BIN
source/images/supported_brands/hlktech.jpg
Normal file
BIN
source/images/supported_brands/hlktech.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 18 KiB |
Loading…
x
Reference in New Issue
Block a user