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

Eventor and remembering last state

I am using the Eventor widget for a lights on and off timer for my indoor garden. If there is a power cut, Blynk does not remember the last state of the lights. e.g. Power goes off at 16:00. when it comes back on again, The lights will stay off (Pins are low on boot for relay)

Is there any way to solve this? ATM I am using a back up battery so when thr power kills, the arduino does not turn off. But i would like to find it in the software

I’d say that you should stop using Eventor, put the Eventor logic into your code, use 100% virtual pins for your widgets and use the BLYNK_CONNECTED callback with a Blynk.syncVirtual(vPin) for each pin that you want to obtain the server state for at start up.

Pete.

2 Likes