There is a trigger in the SQL Logger plugin (logging doesn't have to be enabled) called "Error in Event Log" that will fire when an error is detected. Select "Plugin" from the trigger type, "SQL Logger from the plugin popup, and "Error in Event Log". If you only want server errors (like the one you specify above) select "Internal Indigo Errors".
While you can't specify which device failed, you can use the following Python script action to send you the last few lines of the event log to you - that should show the device that caused the error:
- Code: Select all
contents = indigo.server.getEventLogList(lineCount=NUMBEROFLINESTOEMAIL)
indigo.server.sendEmailTo("ADDRESS", subject="SUBJECT", body=contents)
Substitute your values for the ALL CAPS words. There's an action in the Action Collection plugin to do it without a script but it has a bug and will email all log lines since the last reboot or 1500, whichever is lower, so I suggest using the script above until we get that bug fixed in the next release.