This is great, I’m looking foward to using it for some of my notifications.
While trying it out with my setup (Raspberry Pi 3 B+ with remote access over Nabu Casa) I initially a problem where, after answering “Yes” or “No”, it would just respond with “Sorry, I had trouble doing what you asked. Please try again.”. This was easily fixed by tweaking the timeouts in the Lambda function.
If anyone else has the same issue simply find all all instances of timeout=urllib3.Timeout(connect=2.0, read=10.0)
and change the timeout values until it works for you. I currently have it at timeout=urllib3.Timeout(connect=10.0, read=10.0)
although, judging from the response times, I don’t think the connect timeout actually needs to be that high.