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