Checking the Log for Hue Error

Posted on
Mon May 30, 2016 12:18 am
ckeyes888 offline
Posts: 2110
Joined: Nov 26, 2009
Location: Kalispell, MT

Checking the Log for Hue Error

Hey,

I'm trying to periodically check the log for a Hue error, my hub seems to be dying, and am getting this error from the
script.

Schedule Hue Error Check
Action Group Hue Restart
Error TriggerAction() caught exception: ElementNotFoundError -- could not find device with element ID 0

Code: Select all
tell application "IndigoServer"
   set bad to "Hue Lights Error"
   set res to (do shell script "tail -n 200 '/Library/Application Support/Perceptive Automation/Indigo 6/Logs/indigo_log.txt'")
   if res contains bad then
      execute group "Hue Restart"
   end if
end tell


Any clue what is failing?

Thanks,

Carl

Posted on
Sun Oct 30, 2016 3:35 pm
joekewe offline
Posts: 4
Joined: May 27, 2013

Re: Checking the Log for Hue Error

I used a second, "Compare.txt" file with diff and grep to find Log errors. Perhaps my new post will help:

http://forums.indigodomo.com/viewtopic.php?f=4&t=17031

Good luck,

Joe

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest