Ha. No. The errors indicated a call function so I searched for that. It took me two or three attempts. Someone in the other thread commented that you can just rem out line 2800. I was trying to be a little more surgical and trimming as little as possible.
i changed it this way.. less invasive.. and still have one error message so when it stops i know it has been fixed (if ever).
Thank you for this. Since I couldn't copy the lines from the image, I've included the changes I made below.
New line added at 2796, in Apps Code > Echo Speaks
} catch (ex) {
log.debug "error still exists: getDeviceActivity | Response Exception | Status: (404) | Msg: status code: 404, reason phrase: Not Found"
//jocko: line above added; line below commented
//respExceptionHandler(ex, "getDeviceActivity")
// log.error "getDeviceActivity error: ${ex.message}"
}
This still logs the error since without it, over time, it will be lost from the logs.
@jeremyleestewart and @kahn-hubitat .... Thanks for the work on this. Any thoughts on what the cause is and if @tonesto7 is aware and looking into this?
I think I got this correctly placed in my Echo Speaks App and now get the Log Attached.
Does this look as expected.
I don't have an idea at this time, but I haven't looked into it either.
I can't say the original author (@tonesto7) is looking into a fix as well.
The 'debug' message looks correct and should cut down on the 'error' items in the logs.
Note: the changes will have to be made each time there's an update to the app unless the underlying issue is resolved.
The error is a result of Echo Speaks used Alexa's unofficial API https://alexa.amazon.com/api/activities, it was removed since sometime Oct 2023. Actually, there are many integrations including IFTTT and HA were impacted too. HA implemented another hack by scrapping a webpage, which may break again at any time.
Commenting out the line that writes the error to log does not prevent the HE from doing the meaningless work and wasting CPU time (handling exception is expensive). To stop the meaningless call, you can modify line 1054 of the driver code in Echo Speaks Device to below:
Map actData = null //parent?.getDeviceActivity((String)state.serialNumber)
I don't see the line above in the version of Echo Speak that I have..
does the getDeviceActivity not work and I can just return null right away or does that function still work... this is what I did but not too sure
still getting
Are you looking at the App code or Driver code? I looked at the app code first myself and realized I was not looking at the driver.
Ha, NOW I see it...thanks ! - forgot there was a device driver code : )
Ken, thanks for this, the visual helps. I am dyslexic so this can be challenging for me but fun when I can fix something.