heggink / domoticz-icloud

iCloud device location python plugin for Domoticz
MIT License
1 stars 1 forks source link

Error authorization? #2

Open EvelRus opened 5 years ago

EvelRus commented 5 years ago

Good day! There was a small problem. I have configured two-factor authentication, after entering the password every x-minutes, I receive a confirmation to enter ( In iCloud, I created an application password, specifically for Domoticz, but now I get the errors listed below.

Is there a way to fix this? Thank!

2019-01-11 17:56:36.735 (iCloud) Pushing 'onHeartbeatCallback' on to queue
2019-01-11 17:56:36.755 (iCloud) Processing 'onHeartbeatCallback' message
2019-01-11 17:56:36.755 (iCloud) Calling message handler 'onHeartbeat'.
2019-01-11 17:56:36.755 (iCloud) onHeartBeat called:0/0
2019-01-11 17:56:36.755 (iCloud) Checking iCloud...
2019-01-11 17:56:37.191 Error: (iCloud) 'onHeartbeat' failed 'PyiCloudFailedLoginException'.
2019-01-11 17:56:37.191 Error: (iCloud) ----> Line 257 in '/home/pi/domoticz/plugins/domoticz-icloud/plugin.py', function onHeartbeat
2019-01-11 17:56:37.191 Error: (iCloud) ----> Line 137 in '/home/pi/domoticz/plugins/domoticz-icloud/plugin.py', function onHeartbeat
2019-01-11 17:56:37.191 Error: (iCloud) ----> Line 167 in '/usr/local/lib/python3.5/dist-packages/pyicloud/base.py', function __init__
2019-01-11 17:56:37.191 Error: (iCloud) ----> Line 190 in '/usr/local/lib/python3.5/dist-packages/pyicloud/base.py', function authenticate
2019-01-11 17:56:46.738 (iCloud) Pushing 'onHeartbeatCallback' on to queue
2019-01-11 17:56:46.762 (iCloud) Processing 'onHeartbeatCallback' message
2019-01-11 17:56:46.762 (iCloud) Calling message handler 'onHeartbeat'.
2019-01-11 17:56:46.762 (iCloud) onHeartBeat called:0/0
2019-01-11 17:56:46.762 (iCloud) Checking iCloud...
2019-01-11 17:56:47.201 Error: (iCloud) 'onHeartbeat' failed 'PyiCloudFailedLoginException'.
2019-01-11 17:56:47.201 Error: (iCloud) ----> Line 257 in '/home/pi/domoticz/plugins/domoticz-icloud/plugin.py', function onHeartbeat
2019-01-11 17:56:47.201 Error: (iCloud) ----> Line 137 in '/home/pi/domoticz/plugins/domoticz-icloud/plugin.py', function onHeartbeat
2019-01-11 17:56:47.201 Error: (iCloud) ----> Line 167 in '/usr/local/lib/python3.5/dist-packages/pyicloud/base.py', function __init__
2019-01-11 17:56:47.201 Error: (iCloud) ----> Line 190 in '/usr/local/lib/python3.5/dist-packages/pyicloud/base.py', function authenticate
heggink commented 5 years ago

Hi EvelRus, The plugin was never built for 2FA and I never tested it really. Sorry for that. I also don;t hve an IOS device to test 2FA ever since I switched to droid myself. I use it to check other family members' presence. The net is that I don;t have the opportunity to test and change. That said, if you can debug and check with the pyicloud lib then happy to amend the plugin. Apologies I cannot be of more help. H