this rules sample will set KC868-A16 input1 toggle output1.
for example if input1 -- toggle --> output1:
rule1 on PCF8574-1_INP#D0=0 do power1 toggle endon
rule1 1
if input2 -- toggle --> output2:
rule2 on PCF8574-1_INP#D1=0 do power2 toggle endon
rule2 1
if input3 -- toggle --> output3:
rule3 on PCF8574-1_INP#D2=0 do power3 toggle endon
rule3 1
here are setting photos for sample rule1:
for example if input1 -- toggle --> output1:
rule1 on PCF8574-1_INP#D0=0 do power1 toggle endon
rule1 1
if input2 -- toggle --> output2:
rule2 on PCF8574-1_INP#D1=0 do power2 toggle endon
rule2 1
if input3 -- toggle --> output3:
rule3 on PCF8574-1_INP#D2=0 do power3 toggle endon
rule3 1
here are setting photos for sample rule1: