Device tiles and timer

Not sure these are issues :frowning:

Just 2 quick questions. I am using device tiles. I have a timer that triggers a relay. If i am placing the timer inside of a device tile it never triggers. If the trigger is placed on the project itself (and i select the device target) the timer works as it is supposed to.

I am doing something wrong or this is normal?

And the second question: i use a tile template button that triggers a vpin of a device; it works perfect. But if the sketch also triggers that vpin at some point, the tile(button) never updates its status. This is happening only on button template. The sensor type template it’s in sync with the sketch.

Latest local server, latest blynk library, latest android app, Android 7.

Not yet implemented.

I think this one is already fixed. Will be available in next update.

1 Like

Thank you!

@mugur by the way. Second issue was fixed in latest server 0.33.4. Are you sure you have this version?

Hi, are you sending values specified in min and max pins setting to the button tiles? As it will get ON only on max value, and OFF - on any other.

no specified values.

I am on 0.34-snapshot… previous one was 33.2
I will switch to 33.4 to test

1 Like

To switch a button tile to ON state it should receive same value as in its settings for MAX/ON field, same as in the button widget.

This the button tile template. It triggers the V4. Inside the sketch V4 simply triggers the relay.

And this is the V4 button. They both triggers the relay. Just can’ t synchronise them.

This is not supported currently

Ok…

@mugur i just made a test. Timer actually should work in 0.33.4 server version. Could you please verify?

I will switch to 0.33.4 to test it and will post here.

Well, obviously should be something i am doing wrong…
i am on 33.4. This is the code that triggers the relay

BLYNK_WRITE(V4){
  if (param.asInt() == 1) {
  digitalWrite(relay, HIGH);  // relay is ON
  }else
  digitalWrite(relay, LOW);  // relay is OFF
}

I have the timer inside the template now. I am setting the timer to trigger V4 at a specific time (server time is ok, i’ve checked). When the time comes nothing happens. Then i’ve set the timer to trigger GPIO 12(relay). No luck. If i place the timer outside of the template, and select the device (socket) the timer triggers OK no matter if i choose the Vpin or the digital pin.

esp_core: 2.4.1
server 0.33.4
blynk library 0.5.1
blynk app: 2.20.0

@mugur You are right. Fixed in this build - https://github.com/blynkkk/blynk-server/releases/download/v0.33.4/server-0.34.0-SNAPSHOT-java9.jar

1 Like

Thank you! Do i have any chance to get a java8 version? :((

https://github.com/blynkkk/blynk-server/releases/download/v0.33.4/server-0.34.0-SNAPSHOT-java8.jar

1 Like

It works inside template now! Thank you !!!

Just for your information, be aware that TIme Input has the same issue. Works only outside of the template.
For me Timer widget is enough, but i’ve thought you would like to know about time input also.