m0urs / arlo-fhem

"arlo-fhem" is a module for sending control commands from FHEM to ARLO and also receving status information from ARLO and saving them to FHEM.
GNU Lesser General Public License v3.0
1 stars 0 forks source link

Crash after "set-mode" #1

Closed m0urs closed 3 years ago

m0urs commented 3 years ago

Oct 15 18:32:43 raspberrypi02 arlo-fhem[9673]: 2020-10-15 18:32:43 - arlo-fhem - Received command: set-mode aktiviert Oct 15 18:32:43 raspberrypi02 arlo-fhem[9673]: DEBUG: set-mode aktiviert Oct 15 18:33:43 raspberrypi02 arlo-fhem[9673]: Traceback (most recent call last): Oct 15 18:33:43 raspberrypi02 arlo-fhem[9673]: File "/opt/fhem/arlo-fhem/arlo-fhem.py", line 167, in Oct 15 18:33:43 raspberrypi02 arlo-fhem[9673]: base.mode = 'armed' Oct 15 18:33:43 raspberrypi02 arlo-fhem[9673]: File "/opt/fhem/arlo-fhem/pyaarlo/base.py", line 238, in mode Oct 15 18:33:43 raspberrypi02 arlo-fhem[9673]: _set_mode_v2_cb(1) Oct 15 18:33:43 raspberrypi02 arlo-fhem[9673]: File "/opt/fhem/arlo-fhem/pyaarlo/base.py", line 222, in _set_mode_v2_cb Oct 15 18:33:43 raspberrypi02 arlo-fhem[9673]: if body.get('success', False) is True or body.get('resource', '') == 'activeAutomations': Oct 15 18:33:43 raspberrypi02 arlo-fhem[9673]: AttributeError: 'NoneType' object has no attribute 'get' Oct 15 18:33:43 raspberrypi02 systemd[1]: arlo-fhem.service: Main process exited, code=exited, status=1/FAILURE Oct 15 18:33:43 raspberrypi02 systemd[1]: arlo-fhem.service: Unit entered failed state. Oct 15 18:33:43 raspberrypi02 systemd[1]: arlo-fhem.service: Failed with result 'exit-code'. Oct 15 18:33:54 raspberrypi02 systemd[1]: Started Arlo-FHEM-Daemon. Oct 15 18:33:55 raspberrypi02 arlo-fhem[4728]: 2020-10-15 18:33:55 - arlo-fhem - version 1.0 Oct 15 18:33:55 raspberrypi02 arlo-fhem[4728]: 2020-10-15 18:33:55 - arlo-fhem - Trying to connect 1 of 5 Oct 15 18:34:02 raspberrypi02 arlo-fhem[4728]: 2020-10-15 18:34:02 - arlo-fhem - CONNECTED

m0urs commented 3 years ago

Opened issue with upsteam repository: https://github.com/twrecked/pyaarlo/issues/45

m0urs commented 3 years ago

"Added parameter "refresh_devices_every=3" to Arlo login in order to prevent the Arlo connection to close.": This does NOT help. Error has appeared again.

m0urs commented 3 years ago

Fixed in upstream code.

m0urs commented 3 years ago

Fixed with https://github.com/m0urs/arlo-fhem/commit/bd5cc38643b6b3a52fb60e409f9947a257d8fe03