Jump to content

Simple program Q, check is not set?


kohai

Recommended Posts

I have a z-wave sensor outside plugged into a 110v.  I want to monitor if it loses power or I lose the z-wave connection to it.  (It's on the same power circuit as my sump pump and I want to know if the sump loses power.  This sensor is a water sensor and I'm monitoring if the water gets too high, e.g. the pump isn't running.)  The device has a temp sensor and thus I think the easiest thing to monitor is the reported temperature.  My idea is that If it ever stops reporting temp, then notify me.  

When I look at the IF options in a program, I'm not sure I can evaluate a BLANK or NULL rather than a number.  I could check for 0 but I'm not sure if a BLANK or NULL evaluates the same as a zero and then I have the possibility of the temp outside hitting exactly 0 and sending me a message. 

I'm assuming the ISY sensor record will have a BLANK or NULL if it hasn't heard from the sensor for awhile.... or maybe by chance it will hold onto the last reported number?  I guess I could stick the temp in a variable and then monitor the last time the variable was updated but that seems like an unnecessary step.

Seems like a simple question but I'm not sure the elegant answer.

Link to comment
Share on other sites

@kohai, The problem is once a device loses power there isn't any way for the ISY to interpret that and send you a notification. I wanted to do the same thing. My plan was to send a query to the device on a regular basis. When the power was off at the device, ISY got a message back that the communication failed. However, there was no way that I could figure out how to use that error to send me the notification.

Link to comment
Share on other sites

On 9/30/2018 at 6:16 PM, dbuss said:

@kohai, The problem is once a device loses power there isn't any way for the ISY to interpret that and send you a notification. I wanted to do the same thing. My plan was to send a query to the device on a regular basis. When the power was off at the device, ISY got a message back that the communication failed. However, there was no way that I could figure out how to use that error to send me the notification.

Maybe we have a feature request?  Ability to monitor devices and notify when they disappear?

Link to comment
Share on other sites

22 minutes ago, kohai said:

Maybe we have a feature request?  Ability to monitor devices and notify when they disappear?

One would need to have the ISY on a UPS so it would have power to query the device. If you wanted to query an Insteon device the PLM would also need to be on a UPS which is not recommended. My plan was to query a Z-wave device and have only the ISY on a UPS. 

Link to comment
Share on other sites

1 minute ago, dbuss said:

One would need to have the ISY on a UPS so it would have power to query the device. If you wanted to query an Insteon device the PLM would also need to be on a UPS which is not recommended. My plan was to query a Z-wave device and have only the ISY on a UPS. 

Same with me. My setup is all z-wave and the ISY is on a UPS.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...