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.
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
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.