BLYNK
HOME       📲 GETTING STARTED       📗 DOCS       ❓HELP CENTER       👉 SKETCH BUILDER

Multiple conditions for same EVENT

#1

Hello!
I’m looking to create a notification/task system with a button to quickly activate/deactivate the event.
More exactly an alarm system with a virtual button for arming/disarming. I already have the sensors monitored inside the app and I want to enable/disable the notifications but an arm/disarm button created inside the app without any extra code on the hardware.

I couldn’t add more conditions to the event. Is there any way I can do it and I don’t see it?

if (V0 = 1) and (V1 = 1) do (notification) and (extra something etc.)

I think it would be very helpful to have that feature.

0 Likes

#2

Of course.

Create 2 global variables, then assign values in VIRTUAL_WRITES, then compare them.

0 Likes