Home Automation using NodeMcu

Hello Everyone…
I’m doing project on voice controlled home automation with 4 channel relay module.Using blynk I can control 4 loads individually.
But How to turn on or off all loads using single trigger…
Please help me…

By using virtual pins…


1 Like

Hi, I will recomend to use a virtual pin for this purpose. You can check the following article for reference.

I have used V9 to turn off the all the relays. You can also add following lines to your code.

[Unformatted code removed by moderator]

@techstudycell please edit your post, using the pencil icon at the bottom, and add triple backticks at the beginning and end of your code so that it displays correctly.
Triple backticks look like this:

Also, use of delay() isn’t good practice when using Blynk and isn’t something that should be advocated.


Thanks for your very well pages and circuits
may help me about this issue?
Help about program can’t load complete - Need Help With My Project - Blynk Community