I have to convert my project to Blynk 2.0 but i don’t find the equivalent with the email widget to send me notifications on specific events triggered in my code with Blynk.email(" ", " "). So, i need too the timer widget to trigger actions on time conditions (ex: V1 = 0 at 10:00 and V1 = 1 at 10:10).
I hope that these functions are still available or have equivalent ? Thanks for your advice.
Emails are part of Notifications. Read the Notifications section of the documentation. You will trigger the notification with an event, or maybe with an automation.
Automations are used instead of the Timer widget. You datastreams need to be exposed to automations for them to be available for use.
I have seen these explanations but not sure i understood correctly.
I can’t find any examples, so i’m afraid i won’t be able to report my functions because the automations don’t seem to be as flexible with code as in Blynk 1.0
I will experiment later…
@gacaron you need to use automations for your use case. It should be simple task. Please follow the links Pete provided.
I had a look but it seems that i can’t reproduce the same behaviour
- For email ==> send an email on a specific event triggered in the code compared to a variable
- For Timer ==> trigger a programmed action in the code
Automation & log events are a little bit nebulous for me without examples for my specific needs.
You do this in the app. create a datastream that is exposed to automations, and in the app create an automation that uses that datastream and its state to trigger an action of sending an email.
Same with this:
Create a “Time of Day” automation that has a “Set device to” action.