Changing variable value if it wasn't active


#1

There were few topics describing similar issues but none were about setting a specific value to a variable if it wasn’t updated for longer than some time.

I send few values to Ubidots via ESP8266 and all works fine, but i want to know if the device is alive and kicking just by looking at the control indicator. That is why I also send a boolean variable from ESP and show it as an indicator on my dashboard. The thing is to set ‘0’ value after every 3 minutes the variable was not updated.

The problem is, that an event set up to do so is not working. I configured it to set 0 to my ‘boolean’ variable if it wasn’t updated by ESP, but after even a longer time nothing happens. I also tried to set some other variables if my ‘boolean’ is not updated, but no luck.

Anyone managed to configure working event with similiar conditions?

Regards,
wilpaw


#2

Hello @Wilpaw,

After setting up the event for the first time, could you see any changes in the variable? I was testing the event settings and I didn’t have any issues.


You could run a test with the same variable and thus verify those events are working correctly. Example, create an event where each 3 minutes, when the variable has been inactive, it send a value to the same variable (set variable), as you can see in my case is “1”. Also, create an event each 4 minutes, where you get an email alert when the variable isn’t active. Thus, you’ll notice if events are working correctly.

Regards.
Maria.