However, last 2 days the plugin has crashed two times due to the following error message from Verisure:
- Code: Select all
2020-01-08 00:18:58.943 Verisure v2 Error Error in plugin execution runConcurrentThread:
Traceback (most recent call last):
File "plugin.py", line 334, in runConcurrentThread
File "plugin.py", line 177, in refreshData
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/VerisureV2.indigoPlugin/Contents/Server Plugin/verisure/session.py", line 188, in get_overview
RequestError: HTTPSConnectionPool(host='e-api02.verisure.com', port=443): Max retries exceeded with url: /xbn/2/installation/<removed my installation number from here>/overview (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x113841e90>: Failed to establish a new connection: [Errno 60] Operation timed out',))
2020-01-08 00:18:58.944 Verisure v2 Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
2020-01-08 00:19:08.947 Verisure v2 Error Error in plugin execution runConcurrentThread:
Traceback (most recent call last):
File "plugin.py", line 329, in runConcurrentThread
AttributeError: 'Plugin' object has no attribute 'login'
2020-01-08 00:19:08.948 Verisure v2 Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
When this happens the plugin never recovers and it just keeps on repeating the error message:
- Code: Select all
2020-01-08 00:19:38.962 Verisure v2 Error Error in plugin execution runConcurrentThread:
Traceback (most recent call last):
File "plugin.py", line 329, in runConcurrentThread
AttributeError: 'Plugin' object has no attribute 'login'
2020-01-08 00:19:38.963 Verisure v2 Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
Only solution is to reload the plugin and it starts to work normally again.
Seems to have been caused by Verisure responding "Max retries exceeded with url:" so I decided to decrease the polling interval from 5 seconds to 15 seconds.
Let's see if this error happens again with the lower polling interval.