Dear all,
I wrote a tiny script which reads out BatteryLevel and DisplayState (every minute) from my cell phone and sends both values to my Home Automation System (via http request).
Once a day, my Home Automation System is unavailable for approximately 3 minutes.
Now, whenever my Automate Script tries to submit its data during these 3 minutes, it stalls with Error: "java.net.ConnectException: Failed to connect to /192.168.xxx.yyy"
and bails out.
How can I prevent the script from failing?
I'd rather let it ignore the error - and keep going
What is the magic trick, here?
Thank you kindly for your help!