HLK-SW16 Relay Module


The HLK-SW16 by Hi-Link is a simple networkable 16 port relay device.

To enable it, add the following lines to your configuration.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 Variables

deviceid

(map)(Required)The array that contains the HLK-SW16 devices.

host

(string)(Required)The IP address or hostname of the HLK-SW16.

port

(integer)(Optional)The control port for the relays.

Default value: 8080

switches

(map)(Required)The array that contains the relays.

relayid

(map)(Optional)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.

name

(string)(Optional)The name used to display the switch in the frontend.

Default value: relayid