Jump to content

Comms error handling in program


johnnyt

Recommended Posts

Posted

Hi Michel,

Would it be possible for UDI to provide the ability to do some insteon/zwave communication error handling via user programs similar to:

 

if errorlevel > 0 then

Send Notification to 'me' content 'Error Message'

 

Where:

errorlevel 0 = success

errorlevel 1 to x = warnings, e.g. high number of retries or unexpected responses but no failure, etc.

errorlevel x+1 to y = failure

 

And with:

System variables for the error code and description that one could include in a custom notification (i.e. 'Error Message' in my example) in addition to the existing system variable for time, program name, status, etc.

 

If possible I'd like to see the ability to set it globably (example above) and for specific devices, e.g.

 

if 'Kitchen Light" errorlevel > x then

Send Notification to 'me' content 'Error Message'

Run Program 'Toggle Kitchen Light' (Then Path)

 

As a related request along side (but that stands on its own as well), can you develop a way to ensure the variable data is accurate in the notification message? Currently notifications don't always provide the actual variable content at the time of the notification (because of execution queuing, I believe).

 

Posted

Hi johnnyt,

 

Detail error codes are rather difficult. 

 

The major issues are:

1. We will have to store detailed error conditions for each node

2. We will have to have the means for resetting them

3. Have to find a way to abstract Z-Wave vs. INSTEON error codes

 

As a workaround, you can use Not Responding and increment a variable. 

 

This said, we'll do proper sizing to see what it would take.

 

With kind regards,

Michel

Archived

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

×
×
  • Create New...