Help needed wih TimerWidget

Hi,

after browsing through many posts on TimerWidget issues, I am still stuck.
Project is about a few doors I need to open/close remotely. Esp8266, some sensor, motors -> good. Blynk with LEDs, charts, Buttons, etc. -> great. EventorWidget to open/close at given times -> also good.
Now to open and close doors at sunrise/sunset I wanted to use the TimerWidget. Two more reasons for TimerWidget below.
After a lot of trying, TimerWidget totally doesn’t behave as advertised for me and since I couldn’t find any other report on such behaviour, I guess I screw up, not Blynk.
TimerWidet connected to VPin V11, all conf. options on (sunrise/set, start/stop/timezone,…).
Simple code below. Setup/Version below.

Symptoms:

  1. VPin IS NOT triggered at the time set. Not at start, not at stop.
  2. VPin IS triggered when I change the settings in the app.
  3. The Value transmitted is not 0 or 1, but 11760, 73680, or 66540. Depending on what setting I changed, not on the value of the setting.,

What am I screwing up?

Thanks
Rolf

Code:

#define BLYNK_PRINT Serial // Enables Serial Monitor
#include <BlynkSimpleEsp8266.h>
#define timer1VPin V11
BLYNK_WRITE(timer1VPin) {
  Serial.print("Got a value: ");
  Serial.println(param.asStr());
}

Serial output when changing TimerWidget settings, NO output at set times:

Got a value: 11760
Got a value: 73680
Got a value: 66540
Got a value: 66540

Project:

  • ESP8266 with blynk 0.4.8
  • android app 2.10.1
  • arduino IDE 1.6.13

PS: Why I would like to use TimerWidget, not Eventor:

  • can act on sunrise/sunset
  • gives info on current settings in widget when project is running
  • can change setting without stopping the app. Actually this is a show-stopper for EventorWidget, since several People should be able to change time settings, without stopping/starting the project.

Is this an issue with Timer or Time Input widget?

The Timer widget will trigger a pin but does not have sunrise/sunset control.

The Time Input widget will not trigger a pin. It is merely an Input widget for passing time information to your code.

You need to use the Time Input widget to setup your Timer, not trigger it

Thanks. Human stupidity can be amazing. Don’t ask my when I managed to replace the timer widget in my project by a time input widget.

1 Like