I am having difficulty triggering a notification when my device goes offline.
As I haven’t used automation before, I suspect this is were the problem lies.
(1) in my void myTimerEvent() block, I have a heartbeat:
Blynk.virtualWrite(V5, online);
(2) in datastreams, I have my “online” stream (V5) defined. Please see image below for automation and datastream definitions.
(1) you are correct, that is more than likely the problem.
(2) the write statement in my original post is incorrect, my sketch shows
Blynk.virtualWrite(V4, online); // send heartbeat
where online = 1
Hey @bobcroft Can you explain what are you trying to achieve exactly? Why are you using pushover?
I assume you’re looking for a different method to send and receive notifications in order to replace Blynk events, am I right?
Hey @nandomtl1 I’m using an app called Automate. The idea is to continuously monitor the notification bar looking for incoming Blynk notifications, then perform an action based on a specific keyword. For example, if the message content is “device went offline,” perform an action like sending email, sending SMS, making HTTP request, etc. It’s not the best approach, but it’s working properly. If you like the idea and would like to try it, I’ll send you more details.
Hi Bob, if you’re using Node-Red then it’s easy to use Blynk notifications to tell you that one of your devices has gone offline.
Of course, it won’t tell you if the Node-Red server has gone offline, but you should get that notification from Blynk - I certainly do.
I used Pushover for a while with Blynk legacy, because it allowed more functionality than the Blynk Legacy notifications, but haven’t used it for a long time.
If you tell us more about what you’re trying to achieve then I can probably point you in the right direction.
I’m travelling at the moment, so don’t have as much access to stuff as I would if I was at home, but I should certainly be able to help a bit and give pointers.
Shouldn’t it be possible to use “Events” to send a notification/email when a device goes offline? I guess I would have to “enable notifications”, but I can’t do that, as the cursor shows a “not” sign
Hi Peter, sorry for the delay in replying, it has been a busy weekend. I too am using Blynk 2 notifications sucessfully based on some guidance given by you earlier this year. However, I wanted to investigate other options and was interested in what John93 would propose.