Smart Home Automation Forum

Full Version: How to program switch 1 to change relay 1 state - KC868-H8
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi, thank you for the reply. But if I trigger the input, the reley changes state to on and on another press on the trigger it turns off.
Yes, another firmware have this function use input work as switch panel , but will no command feedback when you pressed input port.
I have written a node-red flow where I input a RELAY-STATE-255 via inject(every few seconds) and then I get a response with the state of relays(eg. RELAY-STATE-255,63,OK). Then with the switch I set the state of input_boolean to the correct state for the specific response. It was a lot of clicks  Big Grin . I just used 6 relay combinations.

[Image: flow.jpg]
this is another way by Node-Red, but if use switch terminal board will better.
Pages: 1 2