Blynk + google assistance help values

Before creating the topic

  1. Search forum for similar topics
  2. Check http://docs.blynk.cc and http://help.blynk.cc/
  3. Add details :
    • Hardware model + communication type. For example: Arduino UNO with Ethernet Shield
    • Smartphone OS (iOS or Android) + version
    • Blynk server or local server
    • Blynk Library version
    • Add your sketch code. :point_up:Code should be formatted as example below.

Simply paste your code between ``` If you don’t format your code, your topic can be deleted by moderators.


void loop()

Hi
my project arduino mega + 16ch relay module + ethernet shield, using for domotic.
i have created app with blynk and sketch for arduino is all perfect , now i wold using a ifttt , but i have problem because when send a comand with google assistant, the relè is forever on, instead the rele i use it as a button .

how can I send two commands simultaneously
example i say turn on the light ifttt send value=1 and value=0
i say turn off the light ifttt send value=0 and value=1

thank’s

  1. If you could post your code it may make it easier.

  2. Maybe look into using timers so that when it receives the command, your program will activate the relay for the time you desired then turn back off again?

1 Like

That’s a IFTTT related question, this is the Blynk forum :smiley:
As @JustBertC suggested, the easiest solution is probably to handle that in your code. When you receive a specific command via IFTTT activate your relay then deactivate it shortly afterwards. However, don’t use delay(), use a timeout timer instead.

Pete.

1 Like