improvement:
add "SW trigger output" option in config webpage.
"SW trigger output" Enable:
32 channel Switch button control 32 channel output.
a. such as key1 press 1 time will trigger output1. key2 press 1 time will trigger output2. key3 press 1 time will trigger output3. ....... until key32 press 1 time will trigger output32.
b. support "double click" define everyone of 32 key's function.
c. ALL ON button: turn ON all (32 channel) output
d. ALL OFF button: turn OFF all (32 channel) output
"SW trigger output" Disable:
a. switch button will not control output directly, but will feedback message by TCP string or by MQTT message.
b. if ethernet work mode = "TCP Server" or "TCP Client" will feedback:
RELAY-COM-255,x,y,OK
x is switch button number
y is channel x's output relay last state
for example:
RELAY-COM-255,2,1,OK means: switch button2 have pressed, now the output2 is ON (because it is 1)
RELAY-COM-255,3,0,OK means: switch button3 have pressed, now the output2 is OFF (because it is 0)
RELAY-COM-255,33,0,OK means: switch button33 (ALL OFF) have pressed, now all output is ON
RELAY-COM-255,34,0,OK means: switch button34 (ALL ON) have pressed, now all output is OFF
c. if ethernet work mode = "MQTT" will feedback:
{"SWx":{"on":y}}
x is switch button number (1-34) 33: "ALL OFF" button 34: "ALL ON" button
y is click times. number (1-6,99) 1: one click 2: double click 3: three times click 4: four times click 5: five times click 6: >=6 times click if "hold on" button >3 seconds y=99
for example:
{"SW10":{"on":1}} means switch10 press 1 time
{"SW11":{"on":2}} means switch11 press 2 time
{"SW12":{"on":3}} means switch12 press 3 time
{"SW13":{"on":4}} means switch13 press 4 time
{"SW14":{"on":5}} means switch14 press 5 time
{"SW15":{"on":6}} means switch15 press 6 time or maybe > 6 times
{"SW16":{"on":99}} means switch16 is hold on (long time pressed > 3 seconds)
---------------------------------------------------------------------------------
{"SW33":{"on":1}} means "ALL OFF" button pressed
{"SW33":{"on":0}} means "ALL OFF" button released
{"SW34":{"on":1}} means "ALL ON" button pressed
{"SW34":{"on":0}} means "ALL ON" button released
H32BS_V142_211205.zip (Size: 53.1 KB / Downloads: 289)
download the ZIP file , unzip update the bin file for KC868-H32BS relay controller by USB-RS232 cable.