Closed CarterBrehm closed 2 years ago
Hey there @ajmarks, mind taking a look at this issue as its been labeled with an integration (sharkiq
) you are listed as a codeowner for? Thanks!
(message by CodeOwnersMention)
@CarterBrehm do you have a python environment in which you could install sharkiqpy
and run the following the next time you're stuck in the "Returning to dock" state?
from pprint import pprint
from sharkiqpy import get_ayla_api
ayla_api = get_ayla_api(USERNAME, PASSWORD)
ayla_api.sign_in()
shark_vacs = ayla_api.get_devices()
shark = shark_vacs[0]
shark.update()
pprint(dict(shark.property_values))
I have a RV1001AE model and have this same issue frequently. Other times it has just dropped to unavailble and won't reconnect until I restart the plugin. For the sharkiqpy python environment can it be from any other server and doesn't have to be from hassio?
edit: tried pip install sharkiqpy ... got error
Collecting sharkiqpy
Downloading https://files.pythonhosted.org/packages/ab/33/24382d2605199e85bd0c6d91307dfffc08392b4f7de18bf56a153fabc097/sharkiqpy-0.1.8.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-yXNWcL/sharkiqpy/
Also found this error when it went to unavailable : Logger: homeassistant.components.sharkiq Source: components/sharkiq/update_coordinator.py:62 Integration: Shark IQ (documentation, issues) First occurred: October 1, 2020, 7:59:43 AM (662 occurrences) Last logged: 1:30:13 PM
Bad auth state Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/sharkiq/update_coordinator.py", line 62, in _async_update_data all_vacuums = await self.ayla_api.async_list_devices() File "/usr/local/lib/python3.8/site-packages/sharkiqpy/ayla_api.py", line 198, in async_list_devices async with await self.async_request("get", f"{DEVICE_URL:s}/apiv1/devices.json") as resp: File "/usr/local/lib/python3.8/site-packages/sharkiqpy/ayla_api.py", line 187, in async_request headers = self._get_headers(kwargs) File "/usr/local/lib/python3.8/site-packages/sharkiqpy/ayla_api.py", line 178, in _get_headers headers.update(self.auth_header) File "/usr/local/lib/python3.8/site-packages/sharkiqpy/ayla_api.py", line 164, in auth_header self.check_auth() File "/usr/local/lib/python3.8/site-packages/sharkiqpy/ayla_api.py", line 158, in check_auth raise SharkIqNotAuthedError() sharkiqpy.exc.SharkIqNotAuthedError: Ayla Networks API not authenticated. Authenticate first and retry.
@christcb03, it can be any environment. As far as the reconnection failure goes, I've noticed that as well. There seems to be an uncaught exception that's not triggering the reauth config flow. If you look in your log, you'll likely see something about a SharkIqNotAuthed
error. Can you confirm that's what you're seeing? I hope to have a fix for that next week. Sorry for difficulty!
@christcb03, it can be any environment. As far as the reconnection failure goes, I've noticed that as well. There seems to be an uncaught exception that's not triggering the reauth config flow. If you look in your log, you'll likely see something about a
SharkIqNotAuthed
error. Can you confirm that's what you're seeing? I hope to have a fix for that next week. Sorry for difficulty!
The error looks similar... thanks for the work on this I was so happy to see this get added and will be happy to help with any troubleshooting I can. I tried to install sharkiqpy on another servers I have but no go, see above. I am not by any means a Python coder and just a little above novice with Linux.
@christcb03 sorry for taking so long to get back to you, I'm working on the SharkIqNotAuthedError
now, which I suspect may also underlie the "returning to dock" error. You should be able to run the python snippet on any python distribution on Linux, Mac, or Windows. If you're interested in helping (and I would totally appreciate that), the easiest thing might just be to install Anaconda (admittedly overkill, but easiest), and then run pip install sharkiqpy
to install my Shark IQ package.
Thanks
So I spun up a fresh centos server and tried to install sharkiqpy and I get this :
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Looks like you're running Python 2.7, and this is built for 3.7+. Try using pip3
and python3
.
I got it installed in anaconda, I think... and I ran the code and got this ...
runfile('C:/Users/chris/.spyder-py3/temp.py', wdir='C:/Users/chris/.spyder-py3') {'Ack_Response': None, 'Areas_To_Clean': '*', 'Battery_Capacity': 100, 'Battery_Serial_Num': '', 'CRCount': None, 'CRVote': None, 'Charging_Status': True, 'CleanComplete': None, 'Cleaning_Statistics': 'https://ads-field.aylanetworks.com/apiv1/devices/27173986/properties/GET_Cleaning_Statistics/datapoints/357c633c-f5e0-11ea-57d9-c53360e9c4e0.json', 'ContinueClean': None, 'DND_Time_Control': None, 'DND_Time_Setting': None, 'Default_Floor': None, 'DeleteMaps': 0, 'Device_Model_Number': '', 'Device_Serial_Num': '', 'Enable_RT_Map': None, 'Error_Code': 0, 'Evacuate_Resume': False, 'Exec_Command': None, 'Exec_Response': '[VD-region] Region = US', 'Extended_Error_Code': None, 'Find_Device': False, 'Main_PCB_BL_Version': 'MesaB0.1.1', 'Main_PCB_FW_Version': 'MesaM1.8.29', 'Main_PCB_HW_Version': 'MesaH14mp18', 'MissionComplete': None, 'Mobile_App_Room_Definition': 'https://ads-field.aylanetworks.com/apiv1/devices/27173986/properties/Mobile_App_Room_Definition/datapoints/77188a30-0401-11eb-61a1-6beaeb46c52f.json', 'Module_Debug': None, 'Module_debug': None, 'Nav_Module_App_Version': 'V3.6.21-m1680-Jan 10 2020', 'Nav_Module_BL_Version': 'V1.26.05.48\n', 'Nav_Module_FW_Version': 'V3.4.11-20191015', 'Nav_Module_HW_Version': '', 'OTA_FW_VERSION': 'V3.4.11-20191015V3.6.21-m1680-Jan 10 ' '2020MesaM1.8.29MesaB0.1.1S2.1.17', 'OTA_Progress': None, 'Operating_Mode': 3, 'Operational_Error_Log': None, 'PMLock': None, 'PMLocked': None, 'PMVote': 0, 'PbFloor_Confidence': 100, 'Persistent_Floor_1': 'https://ads-field.aylanetworks.com/apiv1/devices/27173986/properties/GET_Persistent_Floor_1/datapoints/38f54218-f5e0-11ea-199c-0a5b56ed8540.json', 'Persistent_Floor_2': None, 'Persistent_Floor_3': None, 'Power_Mode': 0, 'Quiet_Time': None, 'RSSI': -55, 'Recharge_Resume': False, 'ReplaceBattery': None, 'ReportPeriodDock': 20, 'ReportPeriodUndocked': 10, 'ResetRunTimeCumulative': None, 'Reset_Factory_Defaults': None, 'Reset_WiFi': False, 'Robot_Firmware_Version': 'AV3.4.11-20191015PMesaM1.8.29S2.1.17', 'Robot_Language_Control': 'invalid request: invalid request: invalid request: ' 'invalid request: invalid request: invalid request: ' 'invalid request: invalid request: invalid request: ' 'invalid request: invalid request: invalid request: ' 'invalid request: invalid request: invalid request:', 'Robot_Language_Setting': 'US-EN', 'Robot_Room_List': '05ECD50C:Living Room:Kitchen:Dining Room:Den:Hallway', 'Robot_Volume_Control': 100, 'Robot_Volume_Setting': 100, 'Room_Definition': None, 'RunTimeCumulative': 228, 'RunTimeCycle': 1, 'SCM_Error_Log': None, 'SCM_FW_Version': 'S2.1.17', 'Send_Error_Logs': False, 'Send_Map_Data': None, 'System_Error_Log': None, 'UBD_Version': None, 'User_Information': None, 'Visual_Floor_1': 'https://ads-field.aylanetworks.com/apiv1/devices/27173986/properties/GET_Visual_Floor_1/datapoints/37386b9e-f5e0-11ea-3013-177c25c27255.json', 'Visual_Floor_2': None, 'Visual_Floor_3': None, 'WiFiModuleSerialNumber': None, 'WiFi_FW_Version': None, 'WiFi_HW_Version': '', 'Zones': None}
Tagging, will also run a debug this weekend to test. Same symptoms on a Shark IQ Robot Self-Empty XL RV1001AE
'Areas_To_Clean': '*',
'Battery_Capacity': 55,
'Battery_Serial_Num': '',
'CRCount': None,
'CRVote': None,
'Charging_Status': True,
'CleanComplete': None,
'Cleaning_Statistics': 'https://ads-field.aylanetworks.com/apiv1/devices/27480439/properties/GET_Cleaning_Statistics/datapoints/ff37cae2-0f29-11eb-49d3-f5950f3f69fb.json',
'ContinueClean': None,
'DND_Time_Control': None,
'DND_Time_Setting': None,
'Default_Floor': None,
'DeleteMaps': None,
'Device_Model_Number': '',
'Device_Serial_Num': '',
'Enable_RT_Map': None,
'Error_Code': 9,
'Evacuate_Resume': True,
'Exec_Command': None,
'Exec_Response': '[VD-region] Region = US',
'Extended_Error_Code': None,
'Find_Device': False,
'Main_PCB_BL_Version': 'MesaB0.1.1',
'Main_PCB_FW_Version': 'MesaM1.8.29',
'Main_PCB_HW_Version': 'MesaH14mp18',
'MissionComplete': None,
'Mobile_App_Room_Definition': None,
'Module_Debug': None,
'Module_debug': None,
'Nav_Module_App_Version': 'V3.6.21-m1680-Jan 10 2020',
'Nav_Module_BL_Version': 'V1.26.05.48\n',
'Nav_Module_FW_Version': 'V3.4.11-20191015',
'Nav_Module_HW_Version': '',
'OTA_FW_VERSION': 'V3.4.11-20191015V3.6.21-m1680-Jan 10 '
'2020MesaM1.8.29MesaB0.1.1S2.1.17',
'OTA_Progress': None,
'Operating_Mode': 3,
'Operational_Error_Log': None,
'PMLock': None,
'PMLocked': None,
'PMVote': 0,
'PbFloor_Confidence': 33,
'Persistent_Floor_1': 'https://ads-field.aylanetworks.com/apiv1/devices/27480439/properties/GET_Persistent_Floor_1/datapoints/04ccd05c-0f74-11eb-79b0-a6ee6ac67286.json',
'Persistent_Floor_2': None,
'Persistent_Floor_3': None,
'Power_Mode': 0,
'Quiet_Time': '',
'RSSI': -60,
'Recharge_Resume': True,
'ReplaceBattery': None,
'ReportPeriodDock': 20,
'ReportPeriodUndocked': 10,
'ResetRunTimeCumulative': None,
'Reset_Factory_Defaults': None,
'Reset_WiFi': False,
'Robot_Firmware_Version': 'AV3.4.11-20191015PMesaM1.8.29S2.1.17',
'Robot_Language_Control': 'invalid request: invalid request: started 1 for '
'request: '
'https://sharkionrobot.s3.us-east-2.amazonaws.com/robot_voice/EN_US.tar.gz',
'Robot_Language_Setting': 'EN_US',
'Robot_Room_List': None,
'Robot_Volume_Control': 0,
'Robot_Volume_Setting': 0,
'Room_Definition': None,
'RunTimeCumulative': 4,
'RunTimeCycle': 0,
'SCM_Error_Log': None,
'SCM_FW_Version': 'S2.1.17',
'Send_Error_Logs': None,
'Send_Map_Data': None,
'System_Error_Log': None,
'UBD_Version': None,
'User_Information': None,
'Visual_Floor_1': 'https://ads-field.aylanetworks.com/apiv1/devices/27480439/properties/GET_Visual_Floor_1/datapoints/008dec0a-0f2a-11eb-d7e0-dfed82d5eae4.json',
'Visual_Floor_2': None,
'Visual_Floor_3': None,
'WiFiModuleSerialNumber': None,
'WiFi_FW_Version': None,
'WiFi_HW_Version': '',
'Zones': None}```
Curious if anything ever came of this? I am running into the same issue.
I also want to echo that I've experienced the same symptoms with my RV1001AEC model. Same issue of the uncaught exception in check_auth
.
I'm not super versed in asyncio
, but does the exception handling have to be constructed a little differently since that is an asynchronous callback?
Just to provide a bit more detail, I got the following log today as well:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/sharkiq/update_coordinator.py", line 62, in _async_update_data
all_vacuums = await self.ayla_api.async_list_devices()
File "/usr/local/lib/python3.8/site-packages/sharkiqpy/ayla_api.py", line 198, in async_list_devices
async with await self.async_request("get", f"{DEVICE_URL:s}/apiv1/devices.json") as resp:
File "/usr/local/lib/python3.8/site-packages/sharkiqpy/ayla_api.py", line 187, in async_request
headers = self._get_headers(kwargs)
File "/usr/local/lib/python3.8/site-packages/sharkiqpy/ayla_api.py", line 178, in _get_headers
headers.update(self.auth_header)
File "/usr/local/lib/python3.8/site-packages/sharkiqpy/ayla_api.py", line 164, in auth_header
self.check_auth()
File "/usr/local/lib/python3.8/site-packages/sharkiqpy/ayla_api.py", line 158, in check_auth
raise SharkIqNotAuthedError()
sharkiqpy.exc.SharkIqNotAuthedError: Ayla Networks API not authenticated. Authenticate first and retry.
The relevant snippet in ayla_api.check_auth()
is the condition:
if not self._access_token or not self._is_authed or self.token_expired:
self._is_authed = False
raise SharkIqNotAuthedError()
but there's no way to diagnose which of those 3 conditions were met.
In the UpdateCoordinator._async_update_data()
method, this exception should be caught, but isn't for some reason. This appears to be the fundamental issue, as pointed out by @ajmarks. Any insight as to why this exception wouldn't be caught as expected?
I am having this issue as well
Hi guys,
I just wanted to let everybody know that I haven't forgotten about this. I've been unexpectedly very busy lately, but will definitely be trying to get this fixed.
Sorry for taking so long!
On Tue, Nov 17, 2020 at 1:58 PM Joel notifications@github.com wrote:
I am having this issue as well
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/40427#issuecomment-729134085, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABHRHX5IVPJVOSTL7CGRAELSQLBWXANCNFSM4RU5YCEQ .
Sorry for taking so long!
@ajmarks Nothing to apologize for, thanks for the open source efforts!
If it helps, here is the output of that script. Thank you for your time! Note, if I press "continue" in home assistant, it changes to cleaning and appears to update when it docks.
'Areas_To_Clean': '*',
'Battery_Capacity': 100,
'Battery_Serial_Num': '',
'CRCount': None,
'CRVote': None,
'Charging_Status': False,
'CleanComplete': None,
'CleanRoomCommand': None,
'Cleaning_Statistics': 'https://ads-field.aylanetworks.com/apiv1/devices/27594640/properties/GET_Cleaning_Statistics/datapoints/b84a95a8-2831-11eb-5308-126eda26fec4.json',
'ContinueClean': None,
'DND_Time_Control': None,
'DND_Time_Setting': None,
'Default_Floor': None,
'DeleteMaps': None,
'Device_Model_Number': '',
'Device_Serial_Num': '',
'DoNotDisturb': None,
'DockedStatus': False,
'Enable_RT_Map': None,
'Error_Code': 0,
'Exec_Command': None,
'Exec_Response': '[VD-region] Region = US',
'Extended_Error_Code': None,
'Find_Device': False,
'JSON_Data_Log': None,
'LowLightMission': False,
'Main_PCB_BL_Version': 'ValleyB0.1.9',
'Main_PCB_FW_Version': 'ValleyM0.1.29',
'Main_PCB_HW_Version': 'ValleyH17np18',
'MissionComplete': None,
'Mobile_App_Room_Definition': None,
'Module_Debug': None,
'Module_debug': None,
'Nav_Module_App_Version': 'V6.6.16-m1224-Sep 25 2020',
'Nav_Module_BL_Version': '',
'Nav_Module_FW_Version': 'V1.3.8-20200907',
'Nav_Module_HW_Version': '',
'OTA_FW_VERSION': 'V1.3.8-20200907V6.6.16-m1224-Sep 25 '
'2020ValleyM0.1.29ValleyB0.1.9T2.1.57',
'OTA_Progress': 'File Downloaded, requesting Nav to upgrade.',
'Operating_Mode': 3,
'Operational_Error_Log': None,
'PMLock': None,
'PMLocked': None,
'PMVote': 0,
'PbFloor_Confidence': 66,
'Persistent_Floor_1': 'https://ads-field.aylanetworks.com/apiv1/devices/27594640/properties/GET_Persistent_Floor_1/datapoints/d543c912-2864-11eb-2035-f91f559c5093.json',
'Persistent_Floor_2': None,
'Persistent_Floor_3': None,
'Power_Mode': 0,
'Quiet_Time': None,
'RSSI': -43,
'Recharge_Resume': True,
'RechargingToResume': False,
'RecommendRandR': None,
'ReplaceBattery': None,
'ReportPeriodDock': 20,
'ReportPeriodUndocked': 10,
'ResetRunTimeCumulative': None,
'Reset_Factory_Defaults': None,
'Reset_WiFi': False,
'Robot_Firmware_Version': 'AV1.3.8-20200907PValleyM0.1.29T2.1.57',
'Robot_Language_Control': None,
'Robot_Language_Setting': 'US-EN',
'Robot_Room_List': None,
'Robot_Volume_Control': 100,
'Robot_Volume_Setting': 100,
'Room_Definition': None,
'RunTimeCumulative': 4,
'RunTimeCycle': 1,
'SAET_Enable_JSON_Data_Log': None,
'SCM_Error_Log': None,
'SCM_FW_Version': 'T2.1.57',
'Send_Error_Logs': None,
'Send_Map_Data': None,
'System_Error_Log': None,
'UBD_Version': None,
'User_Information': None,
'Visual_Floor_1': 'https://ads-field.aylanetworks.com/apiv1/devices/27594640/properties/GET_Visual_Floor_1/datapoints/b9dbb7a8-2831-11eb-ba9f-552968210fe3.json',
'Visual_Floor_2': None,
'Visual_Floor_3': None,
'WiFiModuleSerialNumber': None,
'WiFi_FW_Version': None,
'WiFi_HW_Version': '',
'Zones': None}
@ajmarks Not sure if that's relevant but I keep getting 'Error fetching sharkiq data: Ayla Networks API authentication expired. Re-authenticate and retry.' in the logs. Once I get it I can no longer control my shark from home assistant. Restarting home assistant fixes it (which I have to do every day)
My RV1001AE also never reports making it home and frequently pause and cleaning are not noted. Happy to run the test script or provide what I can if you still need input. Also noticed that when paused from the app, HA show the state as idle.
I only see these attributes:
battery_level: 100 battery_icon: 'mdi:battery' fan_speed: Normal last_error_code: 0 last_error_message: null low_light: null recharge_and_resume: true
error: Logger: homeassistant.components.sharkiq Source: helpers/update_coordinator.py:166 Integration: Shark IQ (documentation, issues) First occurred: 7:36:09 AM (1 occurrences) Last logged: 7:36:09 AM
Error fetching sharkiq data: Cannot connect to host ads-field.aylanetworks.com:443 ssl:default [Try again]
@ajmarks Hi. Below is the output of the script for my Shark IQ after clicking Return in Home Assistant. The _OperatingMode seems to be stuck in 3 - RETURN. I also noticed that my Shark IQ app says "Resting on the dock".
If click Stop using the Shark IQ app the robot returns to the dock and says "Resting on the dock" as well. My _OperatingMode is still set to 3.
I'm not sure if that is helpful at all. Let me know if there is anything you'd like me to test.
{'Ack_Response': None,
'Areas_To_Clean': '*',
'Battery_Capacity': 100,
'Battery_Serial_Num': '',
'CRCount': None,
'CRVote': None,
'Charging_Status': True,
'CleanComplete': None,
'Cleaning_Statistics': 'https://ads-field.aylanetworks.com/apiv1/devices/27296639/properties/GET_Cleaning_Statistics/datapoints/271b75f4-2f46-11eb-5fe0-b6ed37686ea2.json',
'ContinueClean': None,
'DND_Time_Control': 'bQwAAghYABgA=',
'DND_Time_Setting': 'bJAAAMThjOGU3AAAAghYABgA=',
'Default_Floor': None,
'DeleteMaps': 0,
'Device_Model_Number': '',
'Device_Serial_Num': '',
'Enable_RT_Map': None,
'Error_Code': 0,
'Evacuate_Resume': False,
'Exec_Command': None,
'Exec_Response': '[VD-region] Region = US',
'Extended_Error_Code': None,
'Find_Device': False,
'Main_PCB_BL_Version': 'MesaB0.1.1',
'Main_PCB_FW_Version': 'MesaM1.8.29',
'Main_PCB_HW_Version': 'MesaH14mp18',
'MissionComplete': True,
'Mobile_App_Room_Definition': 'https://ads-field.aylanetworks.com/apiv1/devices/27296639/properties/Mobile_App_Room_Definition/datapoints/008cda5a-4322-11eb-4267-115f401750eb.json',
'Module_Debug': None,
'Module_debug': None,
'Nav_Module_App_Version': 'V3.6.21-m1680-Jan 10 2020',
'Nav_Module_BL_Version': 'V1.26.05.48\n',
'Nav_Module_FW_Version': 'V3.4.11-20191015',
'Nav_Module_HW_Version': '',
'OTA_FW_VERSION': 'V3.4.11-20191015V3.6.21-m1680-Jan 10 '
'2020MesaM1.8.29MesaB0.1.1S2.1.17',
'OTA_Progress': None,
'Operating_Mode': 3,
'Operational_Error_Log': None,
'PMLock': None,
'PMLocked': None,
'PMVote': 0,
'PbFloor_Confidence': 100,
'Persistent_Floor_1': 'https://ads-field.aylanetworks.com/apiv1/devices/27296639/properties/GET_Persistent_Floor_1/datapoints/2a10848e-2f46-11eb-fd95-9747d3b7f94a.json',
'Persistent_Floor_2': None,
'Persistent_Floor_3': None,
'Power_Mode': 0,
'Quiet_Time': None,
'RSSI': -50,
'Recharge_Resume': True,
'ReplaceBattery': None,
'ReportPeriodDock': 20,
'ReportPeriodUndocked': 10,
'ResetRunTimeCumulative': None,
'Reset_Factory_Defaults': None,
'Reset_WiFi': False,
'Robot_Firmware_Version': 'AV3.4.11-20191015PMesaM1.8.29S2.1.17',
'Robot_Language_Control': 'invalid request: invalid request: invalid request: '
'invalid request: invalid request: invalid request: '
'invalid request: invalid request: invalid request: '
'invalid request: invalid request: invalid request: '
'invalid request: invalid request: invalid request:',
'Robot_Language_Setting': 'US-EN',
'Robot_Room_List': '6DB20997:Kitchen:Living Room:Foyer',
'Robot_Volume_Control': 100,
'Robot_Volume_Setting': 100,
'Room_Definition': None,
'RunTimeCumulative': 140,
'RunTimeCycle': 0,
'SCM_Error_Log': 'https://ads-field.aylanetworks.com/apiv1/devices/27296639/properties/GET_SCM_Error_Log/datapoints/51bb1850-34f0-11eb-6d25-f9c19877a5db.json',
'SCM_FW_Version': 'S2.1.17',
'Send_Error_Logs': False,
'Send_Map_Data': None,
'System_Error_Log': 'https://ads-field.aylanetworks.com/apiv1/devices/27296639/properties/GET_System_Error_Log/datapoints/4e13b950-34f0-11eb-397d-5394c04177f2.json',
'UBD_Version': None,
'User_Information': None,
'Visual_Floor_1': 'https://ads-field.aylanetworks.com/apiv1/devices/27296639/properties/GET_Visual_Floor_1/datapoints/28ddc4a0-2f46-11eb-d59e-1084e772ea90.json',
'Visual_Floor_2': None,
'Visual_Floor_3': None,
'WiFiModuleSerialNumber': None,
'WiFi_FW_Version': None,
'WiFi_HW_Version': '',
'Zones': None}
Thanks, guys this is sorry helpful. I'm hoping to have some down time over the next week to pound out a fix. Thanks for being patient with me.
On Thu, Dec 24, 2020, 3:48 PM Antonio Fernandez notifications@github.com wrote:
@ajmarks https://github.com/ajmarks Hi. Below is the output of the script for my Shark IQ after clicking Return in Home Assistant. The Operating_Mode seems to be stuck in 3 - RETURN. I also noticed that my Shark IQ app says "Resting on the dock".
If click Stop using the Shark IQ app the robot returns to the dock and says "Resting on the dock" as well. My Operating_Mode is still set to 3.
I'm not sure if that is helpful at all. Let me know if there is anything you'd like me to test.
{'Ack_Response': None, 'Areas_To_Clean': '*', 'Battery_Capacity': 100, 'Battery_Serial_Num': '', 'CRCount': None, 'CRVote': None, 'Charging_Status': True, 'CleanComplete': None, 'Cleaning_Statistics': 'https://ads-field.aylanetworks.com/apiv1/devices/27296639/properties/GET_Cleaning_Statistics/datapoints/271b75f4-2f46-11eb-5fe0-b6ed37686ea2.json', 'ContinueClean': None, 'DND_Time_Control': 'bQwAAghYABgA=', 'DND_Time_Setting': 'bJAAAMThjOGU3AAAAghYABgA=', 'Default_Floor': None, 'DeleteMaps': 0, 'Device_Model_Number': '', 'Device_Serial_Num': '', 'Enable_RT_Map': None, 'Error_Code': 0, 'Evacuate_Resume': False, 'Exec_Command': None, 'Exec_Response': '[VD-region] Region = US', 'Extended_Error_Code': None, 'Find_Device': False, 'Main_PCB_BL_Version': 'MesaB0.1.1', 'Main_PCB_FW_Version': 'MesaM1.8.29', 'Main_PCB_HW_Version': 'MesaH14mp18', 'MissionComplete': True, 'Mobile_App_Room_Definition': 'https://ads-field.aylanetworks.com/apiv1/devices/27296639/properties/Mobile_App_Room_Definition/datapoints/008cda5a-4322-11eb-4267-115f401750eb.json', 'Module_Debug': None, 'Module_debug': None, 'Nav_Module_App_Version': 'V3.6.21-m1680-Jan 10 2020', 'Nav_Module_BL_Version': 'V1.26.05.48\n', 'Nav_Module_FW_Version': 'V3.4.11-20191015', 'Nav_Module_HW_Version': '', 'OTA_FW_VERSION': 'V3.4.11-20191015V3.6.21-m1680-Jan 10 ' '2020MesaM1.8.29MesaB0.1.1S2.1.17', 'OTA_Progress': None, 'Operating_Mode': 3, 'Operational_Error_Log': None, 'PMLock': None, 'PMLocked': None, 'PMVote': 0, 'PbFloor_Confidence': 100, 'Persistent_Floor_1': 'https://ads-field.aylanetworks.com/apiv1/devices/27296639/properties/GET_Persistent_Floor_1/datapoints/2a10848e-2f46-11eb-fd95-9747d3b7f94a.json', 'Persistent_Floor_2': None, 'Persistent_Floor_3': None, 'Power_Mode': 0, 'Quiet_Time': None, 'RSSI': -50, 'Recharge_Resume': True, 'ReplaceBattery': None, 'ReportPeriodDock': 20, 'ReportPeriodUndocked': 10, 'ResetRunTimeCumulative': None, 'Reset_Factory_Defaults': None, 'Reset_WiFi': False, 'Robot_Firmware_Version': 'AV3.4.11-20191015PMesaM1.8.29S2.1.17', 'Robot_Language_Control': 'invalid request: invalid request: invalid request: ' 'invalid request: invalid request: invalid request: ' 'invalid request: invalid request: invalid request: ' 'invalid request: invalid request: invalid request: ' 'invalid request: invalid request: invalid request:', 'Robot_Language_Setting': 'US-EN', 'Robot_Room_List': '6DB20997:Kitchen:Living Room:Foyer', 'Robot_Volume_Control': 100, 'Robot_Volume_Setting': 100, 'Room_Definition': None, 'RunTimeCumulative': 140, 'RunTimeCycle': 0, 'SCM_Error_Log': 'https://ads-field.aylanetworks.com/apiv1/devices/27296639/properties/GET_SCM_Error_Log/datapoints/51bb1850-34f0-11eb-6d25-f9c19877a5db.json', 'SCM_FW_Version': 'S2.1.17', 'Send_Error_Logs': False, 'Send_Map_Data': None, 'System_Error_Log': 'https://ads-field.aylanetworks.com/apiv1/devices/27296639/properties/GET_System_Error_Log/datapoints/4e13b950-34f0-11eb-397d-5394c04177f2.json', 'UBD_Version': None, 'User_Information': None, 'Visual_Floor_1': 'https://ads-field.aylanetworks.com/apiv1/devices/27296639/properties/GET_Visual_Floor_1/datapoints/28ddc4a0-2f46-11eb-d59e-1084e772ea90.json', 'Visual_Floor_2': None, 'Visual_Floor_3': None, 'WiFiModuleSerialNumber': None, 'WiFi_FW_Version': None, 'WiFi_HW_Version': '', 'Zones': None}
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/40427#issuecomment-751017034, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABHRHX5VNWE4UNG7TS7UTWLSWOSKTANCNFSM4RU5YCEQ .
Maybe this guy's work will help: https://github.com/TheChrisTech/Hubitat-SharkIQRobot
I see I'm not the only one seeing this error "SharkIqNotAuthedError" and the robot goes offline. Reloading the integration brings it back online. I started to create an automation to reload it when the error shows up in the logs but ran into a roadblock when I found reload.integration isn't a service.
@mattyb8562 I've posted solution in #44775
Currently my problem is the opposite. My Shark will never report 'Returning to dock', it is only "Unavailable", "Cleaning", "Docked" and "Idle".
Since multi-room navigation is so poor I have to close my shark in the kitchen to avoid unnecessary noise each time it tries to leave it before finishing cleaning. And since it never reports 'Returning to dock' i can't create automation to notify me when it's done, so it spends ages trying to find path to the Dock which is outside of Kitchen, before it gives up and reports "Idle" state.
Same here. Returning to Dock but is docked
My RV1000A shows Returning to Dock all the time however my RV1100A shows the correct status at all times. I'm guessing it's some difference between the models but I have no idea what that could be since the Shark app always updates appropriately as well.
My model RV1001AE also reports "Returning to Dock" even though it has successfully docked. Commands like "run" or "return to base" work fine.
@ajmarks Is there anything the community can help you do to help troubleshoot or fix this? Would love to contribute if I'm able to, but not sure where to start.
My unit has shown "Docked" after returning from its last 3 outings. Nine month break-in period?
My unit has shown "Docked" after returning from its last 3 outings. Nine month break-in period?
Same here. Upstream API changes perhaps?
This issue has been solved by #58975
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
The problem
As stated in the title, I just upgraded to 0.115 and added my Shark IQ Vacuum via the Integrations UI. All of the commands work to control the vacuum, but occasionally (I haven’t done enough testing to determine exactly what causes the issue) the state of the vacuum will be reported as “Returning to dock” indefinitely once the robot has been docked. Checking the SharkClean app reveals that the vacuum has returned to the dock and should be returned to the “Docked” state in Home Assistant, but this switch will sometimes not happen.
Environment
Problem-relevant
configuration.yaml
As I set up this integration using the UI, there’s nothing in configuration.yaml.
Traceback/Error logs
No error logs are returned when this behavior occurs.
Additional information
I think a possible cause of this error is that I’m using a Shark RV750_NL robot, rather than the R101AE or the R100. However, since almost all other behavior works I’m assuming this is an existing bug rather than a lack of support for my robot.
For what it’s worth, I used to have control of my robot using a variety of REST commands and REST sensors combined using a template vacuum, and I can post the code I have for those if needed to help with fixing this.