Then add 8 button widgets from the Widget Box to control the 8 relays.

Create buttons with V1,V2, V3, V4, V5, V6, V7, V8 pins to control the relays.

Select the Mode as Switch for all the buttons.

**Here I have used an active low Relay module, so to turn ON the relay we have to send “0” and “1” to turn OFF the relay.

I have used virtual pins V1, V2, V3, V4 to control the first relay module (Room-1)

And V5, V6, V7, V8 to control the second relay module (Room-2)

I have explained all the details in the tutorial video.

Leave a Reply