Device Not Polling Alert/Alarm?

I would like to place a GE 45604 module on a circuit in my house and be able to get an alarm if the device doesn’t check in after 1 hour. This would let me know if that breaker has been tripped in my house. Does anyone know how to create a scene using either LUUP or otherwise in which I can monitor the Last Update variable? I saw a similar post of someone wanting to do this whenever their thermostat didn’t check in but I am not sure if this would work for my needs or not. Here is a screenshot of the variables for the GE. Thank You

I don’t think LastUpdate is going to help you with this. It is not, on my devices, an indication of recent activity. Nor, sadly, is PollOk. I cannot see any variable that can reliably be used to indicate that a device is still alive.

You could have a scene run every 30 minutes that toggles the state of the device. If you check the timestamp of the last Status update you can see if it responded. I don’t know how long the device would last…

local dID = 146 local status, ts = luup.variable_get("urn:upnp-org:serviceId:SwitchPower1", "Status",dID) local now = os.time() if (now - ts) > 3600 then return true end local target = (status + 1) % 2 luup.call_action("urn:upnp-org:serviceId:SwitchPower1", "SetTarget",{newTargetValue=target},dID) return false

If the device responds, the scene actions will not be executed. If there has been no response for one hour, the scene actions will execute.

I would have suggested looking at [tt]PollNoReply[/tt] (and/or the other Poll variables). Was not aware this is not working properly.

@RexBeckett, can you elaborate?

[quote=“oTi@, post:3, topic:179445”]I would have suggested looking at [tt]PollNoReply[/tt] (and/or the other Poll variables). Was not aware this is not working properly.

@RexBeckett, can you elaborate?[/quote]
I didn’t do an exhaustive investigation. I did a luup.variable_get(…) on LastUpdate, PollOk and a few other variables and checked the timestamps. I didn’t get any recent timestamps despite all the devices working correctly. I didn’t try PollNoReply but, if PollOk isn’t being updated, I would be wary of trusting it.

I tested on a couple of different Fibaro FGS211 and FGS221 modules. Maybe it is different on other devices…

Thanks. OK, yeah, I didn’t look into it specifically either, but at face value they appear ‘to do something’ / I just watched some of my [tt]PollOk[/tt] counts get incremented by one. And [tt]PollNoReply[/tt] has a value as well.

It would have to be a ‘pollable’ device and a device that is actually set to being polled. Vera skips devices that she knows have instant status. Which I believe means she sets the poll interval to 0 for that device; is that true for your Fibaros?

For the subject GE both conditions seem satisfied though (it’s not a battery-operated device, and does not support instant status).

The counts get reset after a heal.

My Fibaro modules are all instant status but Vera still polls them. It may explain why it doesn’t update the variables properly, though.

Interestingly a device that has been unplugged for weeks has a lower PollNoReply count than one that is working just fine. Maybe my network is weird or maybe Vera doesn’t quite understand Fibaro modules. Personally I would not rely on these variables for anything important.

Interesting. On the Fibaro’s, I’m not sure that that is instant status in the sense of the patented flavor, or one of the workarounds (I had assumed the latter). And I’m not sure how Vera determines ‘instant status’ / which devices to skip for polling. Didn’t think it applied to the Fibaro’s, but since your counts are not working…

On the device that is unplugged, does it have a [tt]PollTxFail[/tt] count / how does that compare to the working device?

Again, I have not looked at this in detail / just assumed :slight_smile: this was working the way you would expect; so just collecting some data points off of you and see (maybe) if the behavior in my setup is similar.

On the device that is unplugged, does it have a PollTxFail count / how does that compare to the working device?
Neither the unplugged or working device have any value in [i]PollTxFail[/i]. Actually none of my Z-Wave devices have any value for this variable.

Thank You guys for all of your hard work looking into my question. How are you guys going about showing what is currently in all of the variables for the device like luup.variable_get(…)? I am used to Windows/batch/C programming in which I can see the values of my variables in a watch window or by displaying them on screen but I don’t know how to do this yet with LUUP. Is there a way to dump all variables to the screen or a file that is being reported back from a device or is everything just seen under the Advanced tab of the device? I know the Vera must keep only one list of variables for all of LUUP for the Vera because I learned the hard way of re-using the same LUUP variable for multiple scens that they were overwriting each other, is there a way to display a list of all current LUUP variables and their values? Has anyone ever created more of a GUI to create LUUP code or do most people just start using PLEG? Thanks

IMHO, the best way to experiment with Vera Luup code is using ZeroBrane Studio. This executes the Lua code right on Vera so it has access to all device variables, actions and all the luup extensions. It provides watch-lists and the ability to print variables and expressions. You can debug your code with breakpoints and single-step execution.

You have to buy a subscription but I believe it is worth the money.

Thanks Rex, that is exactly what I was looking for. Any idea why you would want the subscription when you can just buy it for $36 for personal use? Even at $36 / year its still cheaper than $12/month. Even if you had 2 devices $72 / year is still cheaper than $144/year unless I am missing something? Thanks again

Yes I meant the personal-use annual subscription rather than the professional one. I guess if you don’t care about updates and support you could consider it a one-time cost but you may want any updates that are required for UI7…

I just sent the vendor an email asking them the same question so I can let you know what they say. Even then if I just purchase it every year at $36 for the updates that is still cheaper than $12/month. Any idea when UI7 will be out for the VeraLite?

Any idea when UI7 will be out for the VeraLite?
I tried [b]luup.crystal_ball("UI7 Release date")[/b] but it just returned nil...

Response back from vendor if anyone wants to know the licensing model.

For the $36 personal use do I own this copy and get updates for free for 1 year?

You get updates for free for 1 year.

After the 1 year can I continue to use the software even if I don’t want updates anymore?

Yes.

What advantage is there to purchasing the standard subscription at $12/month? I only have 1 Vera so this would be $144/year which is way more than $36/month, so just curious what the subscription does differently?

$12/month needs to be compared with $72/year commercial option. The
main advantage of the monthly plan is that you get access to several
devices and can get updates while you are on that monthly plan. It’s
roughly the same cost per year as two instances of 1-device license,
but it’s more convenient to debug two devices from one setup, than
from two. For personal use, I don’t see a reason to use the
subscription model given the current pricing.