Closed USAFPride closed 9 months ago
Hey there @natekspencer, @tkdrob, mind taking a look at this issue as it has been labeled with an integration (litterrobot
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
litterrobot documentation litterrobot source (message by IssueLinks)
@USAFPride what robot do you have? The status code is primarily a direct read from what is returned in the API, especially for the LR3. So status code may show something different even though the robot is offline.
Apologies. LR4
sensor.xxx_status_code
shows all the options, but it shows rdy
when no wifi.
History shows only rdy
, cst
, cdt
& ccp
ever reported
@natekspencer , further update; was home today and during a CCP
it stayed at CST
the entire time. It appears to not be picking up a lot of the status codes on the LR4.
hi, since Whisker's Litter Robot 4 latest firmware upgrade (1.1.66), stopped working on home assistant.
Debugging log:
2023-08-24 01:45:07.120 WARNING (MainThread) [homeassistant.config_entries] Config entry '' for litterrobot integration not ready yet: Unable to connect to Litter-Robot API; Retrying in background 2023-08-24 01:54:20.148 WARNING (MainThread) [homeassistant.config_entries] Config entry '' for litterrobot integration not ready yet: Unable to connect to Litter-Robot API; Retrying in background 2023-08-24 01:55:27.548 WARNING (MainThread) [homeassistant.config_entries] Config entry '' for litterrobot integration not ready yet: Unable to connect to Litter-Robot API; Retrying in background 2023-08-24 12:26:53.945 WARNING (MainThread) [homeassistant.config_entries] Config entry '' for litterrobot integration not ready yet: Unable to connect to Litter-Robot API; Retrying in background 2023-08-24 12:29:23.540 DEBUG (MainThread) [pylitterbot.session] Making POST request to https://42nk7qrhdg.execute-api.us-east-1.amazonaws.com/prod/login 2023-08-24 12:29:25.968 DEBUG (MainThread) [pylitterbot.session] Received 200 response: {'token': '**REDACTED**'} 2023-08-24 12:29:25.968 DEBUG (MainThread) [pylitterbot.session] Making POST request to https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyCustomToken 2023-08-24 12:29:26.348 DEBUG (MainThread) [pylitterbot.session] Received 200 response: {'kind': 'identitytoolkit#VerifyCustomTokenResponse', 'idToken': '**REDACTED**', 'refreshToken': '**REDACTED**', 'expiresIn': '3600', 'isNewUser': False} 2023-08-24 12:29:26.348 DEBUG (MainThread) [pylitterbot.session] Making GET request to https://v2.api.whisker.iothings.site/users 2023-08-24 12:29:26.676 WARNING (MainThread) [homeassistant.config_entries] Config entry '' for litterrobot integration not ready yet: Unable to connect to Litter-Robot API; Retrying in background
happy to give more information
I also have the problem with my Litter Robot 3
@hugosbnarciso / @FrancoLoco your issue is related to https://github.com/home-assistant/core/issues/98853 and will be fixed via https://github.com/home-assistant/core/pull/98854 which should be released in 2023.8.4
@natekspencer after updates, it is still not picking up status. Note I enabled debug log and then restarted integration.
2023-08-24 14:29:34.745 DEBUG (MainThread) [pylitterbot.robot] Feeder-Robot unsubscribed from updates
2023-08-24 14:29:34.745 DEBUG (MainThread) [pylitterbot.robot] Clementine unsubscribed from updates
2023-08-24 14:29:34.745 DEBUG (MainThread) [pylitterbot.ws_monitor] LitterRobot4 web socket stopped
2023-08-24 14:29:34.746 DEBUG (MainThread) [pylitterbot.ws_monitor] FeederRobot web socket stopped
2023-08-24 14:29:34.755 DEBUG (MainThread) [pylitterbot.session] Making POST request to https://42nk7qrhdg.execute-api.us-east-1.amazonaws.com/prod/login
2023-08-24 14:29:35.906 DEBUG (MainThread) [pylitterbot.session] Received 200 response: {'token': '**REDACTED**'}
2023-08-24 14:29:35.906 DEBUG (MainThread) [pylitterbot.session] Making POST request to https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyCustomToken
2023-08-24 14:29:36.071 DEBUG (MainThread) [pylitterbot.session] Received 200 response: {'kind': 'identitytoolkit#VerifyCustomTokenResponse', 'idToken': '**REDACTED**', 'refreshToken': '**REDACTED**', 'expiresIn': '3600', 'isNewUser': False}
2023-08-24 14:29:36.072 DEBUG (MainThread) [pylitterbot.session] Making GET request to https://v2.api.whisker.iothings.site/users/1181915/robots
2023-08-24 14:29:36.073 DEBUG (MainThread) [pylitterbot.session] Making POST request to https://lr4.iothings.site/graphql
2023-08-24 14:29:36.074 DEBUG (MainThread) [pylitterbot.session] Making POST request to https://graphql.whisker.iothings.site/v1/graphql
2023-08-24 14:29:36.289 DEBUG (MainThread) [pylitterbot.session] Received 200 response: {'data': {'feeder_unit': [{'id': '**REDACTED**', 'name': 'Feeder-Robot', 'serial': '**REDACTED**', 'timezone': 'America/Detroit', 'isEighthCupEnabled': True, 'created_at': '2022-09-13T13:22:27.34615+00:00', 'household_id': 287482, 'state': {'id': '**REDACTED**', 'info': {'power': True, 'online': False, 'acPower': False, 'dcPower': False, 'gravity': False, 'chuteFull': False, 'onBoarded': False, 'unitMeals': 0, 'motorJammed': False, 'chuteFullExt': False, 'panelLockout': False, 'unitPortions': 0, 'mealInsertSize': 1}, 'updated_at': '2022-09-13T14:04:54.199087+00:00', 'active_schedule': None}, 'feeding_snack': [{'timestamp': '2022-09-10T23:38:04.373966+00:00', 'amount': 0.125}, {'timestamp': '2022-09-10T23:36:03.248607+00:00', 'amount': 0.125}, {'timestamp': '2022-09-10T23:34:49.070858+00:00', 'amount': 0.125}, {'timestamp': '2022-09-10T23:34:33.107147+00:00', 'amount': 0.125}], 'feeding_meal': [{'timestamp': '2022-09-10T23:52:34.631601+00:00', 'amount': 0.125, 'meal_name': 'gravity', 'meal_number': -1, 'meal_total_portions': 1}, {'timestamp': '2022-09-10T23:52:27.799404+00:00', 'amount': 0.125, 'meal_name': 'gravity', 'meal_number': -1, 'meal_total_portions': 1}, {'timestamp': '2022-09-10T23:52:20.398896+00:00', 'amount': 0.125, 'meal_name': 'gravity', 'meal_number': -1, 'meal_total_portions': 1}, {'timestamp': '2022-09-10T23:52:12.341752+00:00', 'amount': 0.125, 'meal_name': 'gravity', 'meal_number': -1, 'meal_total_portions': 1}, {'timestamp': '2022-09-10T23:35:06.816281+00:00', 'amount': 0.125, 'meal_name': 'Dinner', 'meal_number': 3, 'meal_total_portions': 1}]}, {'id': '**REDACTED**', 'name': 'Clementine ', 'serial': '**REDACTED**', 'timezone': 'America/Detroit', 'isEighthCupEnabled': True, 'created_at': '2022-09-15T19:08:24.280552+00:00', 'household_id': 287482, 'state': {'id': '**REDACTED**', 'info': {'level': 8, 'power': True, 'online': True, 'acPower': True, 'dcPower': False, 'gravity': False, 'chuteFull': False, 'fwVersion': '1.0.0', 'onBoarded': True, 'unitMeals': 0, 'motorJammed': False, 'chuteFullExt': False, 'panelLockout': False, 'unitPortions': 0, 'activeSession': '9a9e8f2a-bdf7-4dc7-a2a2-6fb449a435f6', 'mealInsertSize': 1}, 'updated_at': '2023-08-24T16:39:50.690331+00:00', 'active_schedule': {'id': '**REDACTED**', 'name': 'Meal', 'meals': [{'id': '**REDACTED**', 'days': ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'], 'hour': 6, 'name': 'Morning ', 'skip': None, 'minute': 5, 'paused': False, 'portions': 1, 'mealNumber': 1, 'scheduleId': None}, {'id': '**REDACTED**', 'days': ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'], 'hour': 18, 'name': 'Evening ', 'skip': '2023-06-02T00:00:00.000', 'minute': 5, 'paused': False, 'portions': 1, 'mealNumber': 2, 'scheduleId': None}], 'created_at': '2022-10-22T22:55:53.570329+00:00'}}, 'feeding_snack': [{'timestamp': '2023-02-02T02:33:52.066206+00:00', 'amount': 0.125}, {'timestamp': '2023-02-02T02:32:29.88298+00:00', 'amount': 0.125}, {'timestamp': '2023-01-27T04:18:58.916059+00:00', 'amount': 0.125}, {'timestamp': '2023-01-24T05:23:07.027484+00:00', 'amount': 0.125}, {'timestamp': '2022-11-19T13:29:00.08813+00:00', 'amount': 0.25}, {'timestamp': '2022-10-23T13:03:55.479865+00:00', 'amount': 0.25}, {'timestamp': '2022-09-16T11:57:56.831471+00:00', 'amount': 0.25}, {'timestamp': '2022-09-16T00:20:02.558722+00:00', 'amount': 0.25}, {'timestamp': '2022-09-15T23:03:15.981559+00:00', 'amount': 0.25}, {'timestamp': '2022-09-15T20:36:17.656595+00:00', 'amount': 0.25}], 'feeding_meal': [{'timestamp': '2023-08-24T10:08:55.245387+00:00', 'amount': 0.125, 'meal_name': 'Morning ', 'meal_number': 1, 'meal_total_portions': 1}, {'timestamp': '2023-08-23T22:09:58.342151+00:00', 'amount': 0.125, 'meal_name': 'Evening ', 'meal_number': 2, 'meal_total_portions': 1}, {'timestamp': '2023-08-23T10:08:56.418905+00:00', 'amount': 0.125, 'meal_name': 'Morning ', 'meal_number': 1, 'meal_total_portions': 1}, {'timestamp': '2023-08-22T22:10:30.56611+00:00', 'amount': 0.125, 'meal_name': 'Evening ', 'meal_number': 2, 'meal_total_portions': 1}, {'timestamp': '2023-08-22T10:09:02.657592+00:00', 'amount': 0.125, 'meal_name': 'Morning ', 'meal_number': 1, 'meal_total_portions': 1}, {'timestamp': '2023-08-21T22:10:23.779439+00:00', 'amount': 0.125, 'meal_name': 'Evening ', 'meal_number': 2, 'meal_total_portions': 1}, {'timestamp': '2023-08-21T10:09:07.947268+00:00', 'amount': 0.125, 'meal_name': 'Morning ', 'meal_number': 1, 'meal_total_portions': 1}, {'timestamp': '2023-08-20T22:10:09.607459+00:00', 'amount': 0.125, 'meal_name': 'Evening ', 'meal_number': 2, 'meal_total_portions': 1}, {'timestamp': '2023-08-20T10:09:23.63477+00:00', 'amount': 0.125, 'meal_name': 'Morning ', 'meal_number': 1, 'meal_total_portions': 1}, {'timestamp': '2023-08-19T22:10:05.645869+00:00', 'amount': 0.125, 'meal_name': 'Evening ', 'meal_number': 2, 'meal_total_portions': 1}]}]}}
2023-08-24 14:29:36.291 DEBUG (MainThread) [pylitterbot.session] Received 200 response: {'data': {'getLitterRobot4ByUser': [{'unitId': '**REDACTED**', 'name': 'Poppy', 'serial': '**REDACTED**', 'userId': '**REDACTED**', 'espFirmware': '1.1.66', 'picFirmwareVersion': '10512.2560.2.85', 'picFirmwareVersionHex': '2910.A00.255 (Production)', 'laserBoardFirmwareVersion': '5.0.1.1', 'laserBoardFirmwareVersionHex': '5.0.11 (Production)', 'wifiRssi': -70.0, 'unitPowerType': 'AC', 'catWeight': 7.21, 'displayCode': 'DC_MODE_IDLE', 'unitTimezone': 'America/Detroit', 'unitTime': None, 'cleanCycleWaitTime': 7, 'isKeypadLockout': False, 'nightLightMode': 'ON', 'nightLightBrightness': 100, 'isPanelSleepMode': False, 'panelSleepTime': 1320, 'panelWakeTime': 510, 'weekdaySleepModeEnabled': {'Sunday': {'sleepTime': 1320, 'wakeTime': 480, 'isEnabled': False}, 'Monday': {'sleepTime': 1320, 'wakeTime': 510, 'isEnabled': False}, 'Tuesday': {'sleepTime': 1320, 'wakeTime': 510, 'isEnabled': False}, 'Wednesday': {'sleepTime': 1320, 'wakeTime': 510, 'isEnabled': False}, 'Thursday': {'sleepTime': 1320, 'wakeTime': 510, 'isEnabled': False}, 'Friday': {'sleepTime': 1320, 'wakeTime': 510, 'isEnabled': False}, 'Saturday': {'sleepTime': 1320, 'wakeTime': 480, 'isEnabled': False}}, 'unitPowerStatus': 'ON', 'sleepStatus': 'WAKE', 'robotStatus': 'ROBOT_IDLE', 'globeMotorFaultStatus': 'FAULT_CLEAR', 'pinchStatus': 'CLEAR', 'catDetect': 'CAT_DETECT_CLEAR', 'isBonnetRemoved': False, 'isNightLightLEDOn': True, 'odometerPowerCycles': 75, 'odometerCleanCycles': 938, 'panelBrightnessHigh': 0, 'panelBrightnessLow': 0, 'smartWeightEnabled': True, 'odometerEmptyCycles': 3, 'odometerFilterCycles': 0, 'isDFIResetPending': False, 'DFINumberOfCycles': 2, 'DFILevelPercent': 16, 'isDFIFull': False, 'DFIFullCounter': 0, 'DFITriggerCount': 0, 'litterLevel': 442, 'DFILevelMM': 23, 'isCatDetectPending': True, 'globeMotorRetractFaultStatus': 'FAULT_CLEAR', 'robotCycleStatus': 'CYCLE_IDLE', 'robotCycleState': 'CYCLE_STATE_WAIT_ON', 'weightSensor': 0.9, 'isOnline': False, 'isOnboarded': True, 'isProvisioned': True, 'isDebugModeActive': False, 'lastSeen': '2023-08-24T18:14:45.583Z', 'sessionId': '**REDACTED**', 'setupDateTime': '2022-10-21T00:13:41.840Z', 'isFirmwareUpdateTriggered': False, 'firmwareUpdateStatus': 'PICTRIGGERED', 'wifiModeStatus': 'ROUTER_CONNECTED', 'isUSBPowerOn': True, 'USBFaultStatus': 'CLEAR', 'isDFIPartialFull': False, 'isLaserDirty': False}]}}
2023-08-24 14:29:36.388 DEBUG (MainThread) [pylitterbot.session] Received 200 response: []
2023-08-24 14:29:36.513 DEBUG (MainThread) [pylitterbot.robot] Poppy subscribed to updates
2023-08-24 14:29:36.557 DEBUG (MainThread) [pylitterbot.robot] Feeder-Robot subscribed to updates
2023-08-24 14:29:36.558 DEBUG (MainThread) [pylitterbot.robot] Clementine subscribed to updates
2023-08-24 14:29:36.560 INFO (MainThread) [homeassistant.components.update] Setting up update.litterrobot
2023-08-24 14:29:36.560 INFO (MainThread) [homeassistant.components.select] Setting up select.litterrobot
2023-08-24 14:29:36.560 INFO (MainThread) [homeassistant.components.vacuum] Setting up vacuum.litterrobot
2023-08-24 14:29:36.563 INFO (MainThread) [homeassistant.components.button] Setting up button.litterrobot
2023-08-24 14:29:36.564 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.litterrobot
2023-08-24 14:29:36.564 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.litterrobot
2023-08-24 14:29:36.564 INFO (MainThread) [homeassistant.components.switch] Setting up switch.litterrobot
2023-08-24 14:29:36.566 DEBUG (MainThread) [pylitterbot.session] Making POST request to https://lr4.iothings.site/graphql
2023-08-24 14:29:36.848 DEBUG (MainThread) [pylitterbot.session] Received 200 response: {'data': {'litterRobot4CompareFirmwareVersion': None}, 'errors': [{'path': ['litterRobot4CompareFirmwareVersion'], 'data': None, 'errorType': 'Error', 'errorInfo': None, 'locations': [{'line': 3, 'column': 29, 'sourceName': None}], 'message': 'validateFirmwareForRobotDetails: Robot is not available'}]}
2023-08-24 14:29:36.848 DEBUG (MainThread) [pylitterbot.session] Making POST request to https://lr4.iothings.site/graphql
2023-08-24 14:29:37.146 DEBUG (MainThread) [pylitterbot.session] Received 200 response: {'data': {'litterRobot4CompareFirmwareVersion': None}, 'errors': [{'path': ['litterRobot4CompareFirmwareVersion'], 'data': None, 'errorType': 'Error', 'errorInfo': None, 'locations': [{'line': 3, 'column': 29, 'sourceName': None}], 'message': 'validateFirmwareForRobotDetails: Robot is not available'}]}
My LR3 seems to be back on track after updating to 2023.8.4
my LR4 seems good as well
Reloaded my instance and got a new popup to enter in my Whisker credentials, but unfortunately I am still getting an error. Setup fails and automatically retries, failing again.
2023-08-25 06:20:03.549 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Litter Robots' for litterrobot integration not ready yet: Unable to connect to Litter-Robot API; Retrying in background
Reloaded my instance and got a new popup to enter in my Whisker credentials, but unfortunately I am still getting an error. Setup fails and automatically retries, failing again.
2023-08-25 06:20:03.549 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Litter Robots' for litterrobot integration not ready yet: Unable to connect to Litter-Robot API; Retrying in background
Make sure you are on the latest HA release.
Reloaded my instance and got a new popup to enter in my Whisker credentials, but unfortunately I am still getting an error. Setup fails and automatically retries, failing again.
2023-08-25 06:20:03.549 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Litter Robots' for litterrobot integration not ready yet: Unable to connect to Litter-Robot API; Retrying in background
Make sure you are on the latest HA release.
Thank you! I was on 8.3 and now I'm on 8.4, but now I'm getting a different error. Now the Litter Robot integration login popup says Failed to connect
.
I unfortunately deleted my configuration before for the integration so sadly I don't have access to the logs. 😕
@NicholasYamamoto please see https://github.com/home-assistant/core/issues/99060
@natekspencer: here is the log for when the LR4 is offline
:
2023-09-01 08:28:58.588 DEBUG (MainThread) [pylitterbot.session] Received 200 response: {'token': '**REDACTED**'}
2023-09-01 08:28:58.588 DEBUG (MainThread) [pylitterbot.session] Making POST request to https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyCustomToken
2023-09-01 08:28:58.763 DEBUG (MainThread) [pylitterbot.session] Received 200 response: {'kind': 'identitytoolkit#VerifyCustomTokenResponse', 'idToken': '**REDACTED**', 'refreshToken': '**REDACTED**', 'expiresIn': '3600', 'isNewUser': False}
2023-09-01 08:28:58.763 DEBUG (MainThread) [pylitterbot.session] Making GET request to https://v2.api.whisker.iothings.site/users/1181915/robots
2023-09-01 08:28:58.764 DEBUG (MainThread) [pylitterbot.session] Making POST request to https://lr4.iothings.site/graphql
2023-09-01 08:28:58.765 DEBUG (MainThread) [pylitterbot.session] Making POST request to https://graphql.whisker.iothings.site/v1/graphql
2023-09-01 08:28:58.971 DEBUG (MainThread) [pylitterbot.session] Received 200 response: []
2023-09-01 08:28:58.988 DEBUG (MainThread) [pylitterbot.session] Received 200 response: {'data': {'feeder_unit': [{'id': '**REDACTED**', 'name': 'Feeder-Robot', 'serial': '**REDACTED**', 'timezone': 'America/Detroit', 'isEighthCupEnabled': True, 'created_at': '2022-09-13T13:22:27.34615+00:00', 'household_id': 287482, 'state': {'id': '**REDACTED**', 'info': {'power': True, 'online': False, 'acPower': False, 'dcPower': False, 'gravity': False, 'chuteFull': False, 'onBoarded': False, 'unitMeals': 0, 'motorJammed': False, 'chuteFullExt': False, 'panelLockout': False, 'unitPortions': 0, 'mealInsertSize': 1}, 'updated_at': '2022-09-13T14:04:54.199087+00:00', 'active_schedule': None}, 'feeding_snack': [{'timestamp': '2022-09-10T23:38:04.373966+00:00', 'amount': 0.125}, {'timestamp': '2022-09-10T23:36:03.248607+00:00', 'amount': 0.125}, {'timestamp': '2022-09-10T23:34:49.070858+00:00', 'amount': 0.125}, {'timestamp': '2022-09-10T23:34:33.107147+00:00', 'amount': 0.125}], 'feeding_meal': [{'timestamp': '2022-09-10T23:52:34.631601+00:00', 'amount': 0.125, 'meal_name': 'gravity', 'meal_number': -1, 'meal_total_portions': 1}, {'timestamp': '2022-09-10T23:52:27.799404+00:00', 'amount': 0.125, 'meal_name': 'gravity', 'meal_number': -1, 'meal_total_portions': 1}, {'timestamp': '2022-09-10T23:52:20.398896+00:00', 'amount': 0.125, 'meal_name': 'gravity', 'meal_number': -1, 'meal_total_portions': 1}, {'timestamp': '2022-09-10T23:52:12.341752+00:00', 'amount': 0.125, 'meal_name': 'gravity', 'meal_number': -1, 'meal_total_portions': 1}, {'timestamp': '2022-09-10T23:35:06.816281+00:00', 'amount': 0.125, 'meal_name': 'Dinner', 'meal_number': 3, 'meal_total_portions': 1}]}, {'id': '**REDACTED**', 'name': 'Clementine ', 'serial': '**REDACTED**', 'timezone': 'America/Detroit', 'isEighthCupEnabled': True, 'created_at': '2022-09-15T19:08:24.280552+00:00', 'household_id': 287482, 'state': {'id': '**REDACTED**', 'info': {'level': 5, 'power': True, 'online': True, 'acPower': True, 'dcPower': False, 'gravity': False, 'chuteFull': False, 'fwVersion': '1.0.0', 'onBoarded': True, 'unitMeals': 0, 'motorJammed': False, 'chuteFullExt': False, 'panelLockout': False, 'unitPortions': 0, 'activeSession': None, 'mealInsertSize': 1}, 'updated_at': '2023-09-01T07:02:33.487744+00:00', 'active_schedule': {'id': '**REDACTED**', 'name': 'Meal', 'meals': [{'id': '**REDACTED**', 'days': ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'], 'hour': 6, 'name': 'Morning ', 'skip': None, 'minute': 5, 'paused': False, 'portions': 1, 'mealNumber': 1, 'scheduleId': None}, {'id': '**REDACTED**', 'days': ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'], 'hour': 18, 'name': 'Evening ', 'skip': '2023-06-02T00:00:00.000', 'minute': 5, 'paused': False, 'portions': 2, 'mealNumber': 2, 'scheduleId': None}], 'created_at': '2022-10-22T22:55:53.570329+00:00'}}, 'feeding_snack': [{'timestamp': '2023-02-02T02:33:52.066206+00:00', 'amount': 0.125}, {'timestamp': '2023-02-02T02:32:29.88298+00:00', 'amount': 0.125}, {'timestamp': '2023-01-27T04:18:58.916059+00:00', 'amount': 0.125}, {'timestamp': '2023-01-24T05:23:07.027484+00:00', 'amount': 0.125}, {'timestamp': '2022-11-19T13:29:00.08813+00:00', 'amount': 0.25}, {'timestamp': '2022-10-23T13:03:55.479865+00:00', 'amount': 0.25}, {'timestamp': '2022-09-16T11:57:56.831471+00:00', 'amount': 0.25}, {'timestamp': '2022-09-16T00:20:02.558722+00:00', 'amount': 0.25}, {'timestamp': '2022-09-15T23:03:15.981559+00:00', 'amount': 0.25}, {'timestamp': '2022-09-15T20:36:17.656595+00:00', 'amount': 0.25}], 'feeding_meal': [{'timestamp': '2023-09-01T10:09:58.258135+00:00', 'amount': 0.125, 'meal_name': 'Morning ', 'meal_number': 1, 'meal_total_portions': 1}, {'timestamp': '2023-08-31T22:12:10.397973+00:00', 'amount': 0.125, 'meal_name': 'Evening ', 'meal_number': 2, 'meal_total_portions': 2}, {'timestamp': '2023-08-31T10:09:22.606174+00:00', 'amount': 0.125, 'meal_name': 'Morning ', 'meal_number': 1, 'meal_total_portions': 1}, {'timestamp': '2023-08-30T22:10:40.714087+00:00', 'amount': 0.125, 'meal_name': 'Evening ', 'meal_number': 2, 'meal_total_portions': 1}, {'timestamp': '2023-08-30T10:09:22.050871+00:00', 'amount': 0.125, 'meal_name': 'Morning ', 'meal_number': 1, 'meal_total_portions': 1}, {'timestamp': '2023-08-29T22:10:49.748197+00:00', 'amount': 0.125, 'meal_name': 'Evening ', 'meal_number': 2, 'meal_total_portions': 1}, {'timestamp': '2023-08-29T10:09:03.777593+00:00', 'amount': 0.125, 'meal_name': 'Morning ', 'meal_number': 1, 'meal_total_portions': 1}, {'timestamp': '2023-08-28T22:10:38.627447+00:00', 'amount': 0.125, 'meal_name': 'Evening ', 'meal_number': 2, 'meal_total_portions': 1}, {'timestamp': '2023-08-28T10:09:39.92656+00:00', 'amount': 0.125, 'meal_name': 'Morning ', 'meal_number': 1, 'meal_total_portions': 1}, {'timestamp': '2023-08-27T22:09:56.552906+00:00', 'amount': 0.125, 'meal_name': 'Evening ', 'meal_number': 2, 'meal_total_portions': 1}]}]}}
2023-09-01 08:28:59.014 DEBUG (MainThread) [pylitterbot.session] Received 200 response: {'data': {'getLitterRobot4ByUser': [{'unitId': '**REDACTED**', 'name': 'Poppy', 'serial': '**REDACTED**', 'userId': '**REDACTED**', 'espFirmware': '1.1.66', 'picFirmwareVersion': '10512.2560.2.85', 'picFirmwareVersionHex': '2910.A00.255 (Production)', 'laserBoardFirmwareVersion': '5.0.1.1', 'laserBoardFirmwareVersionHex': '5.0.11 (Production)', 'wifiRssi': -68.0, 'unitPowerType': 'AC', 'catWeight': 17.32, 'displayCode': 'DC_MODE_IDLE', 'unitTimezone': 'America/Detroit', 'unitTime': None, 'cleanCycleWaitTime': 7, 'isKeypadLockout': False, 'nightLightMode': 'ON', 'nightLightBrightness': 100, 'isPanelSleepMode': False, 'panelSleepTime': 1320, 'panelWakeTime': 510, 'weekdaySleepModeEnabled': {'Sunday': {'sleepTime': 1320, 'wakeTime': 480, 'isEnabled': False}, 'Monday': {'sleepTime': 1320, 'wakeTime': 510, 'isEnabled': False}, 'Tuesday': {'sleepTime': 1320, 'wakeTime': 510, 'isEnabled': False}, 'Wednesday': {'sleepTime': 1320, 'wakeTime': 510, 'isEnabled': False}, 'Thursday': {'sleepTime': 1320, 'wakeTime': 510, 'isEnabled': False}, 'Friday': {'sleepTime': 1320, 'wakeTime': 510, 'isEnabled': False}, 'Saturday': {'sleepTime': 1320, 'wakeTime': 480, 'isEnabled': False}}, 'unitPowerStatus': 'ON', 'sleepStatus': 'WAKE', 'robotStatus': 'ROBOT_IDLE', 'globeMotorFaultStatus': 'FAULT_CLEAR', 'pinchStatus': 'CLEAR', 'catDetect': 'CAT_DETECT_CLEAR', 'isBonnetRemoved': False, 'isNightLightLEDOn': True, 'odometerPowerCycles': 75, 'odometerCleanCycles': 956, 'panelBrightnessHigh': 0, 'panelBrightnessLow': 0, 'smartWeightEnabled': True, 'odometerEmptyCycles': 3, 'odometerFilterCycles': 0, 'isDFIResetPending': False, 'DFINumberOfCycles': 20, 'DFILevelPercent': 29, 'isDFIFull': False, 'DFIFullCounter': 0, 'DFITriggerCount': 0, 'litterLevel': 452, 'DFILevelMM': 41, 'isCatDetectPending': True, 'globeMotorRetractFaultStatus': 'FAULT_CLEAR', 'robotCycleStatus': 'CYCLE_IDLE', 'robotCycleState': 'CYCLE_STATE_WAIT_ON', 'weightSensor': 0.9, 'isOnline': False, 'isOnboarded': True, 'isProvisioned': True, 'isDebugModeActive': False, 'lastSeen': '2023-09-01T11:29:14.912Z', 'sessionId': '**REDACTED**', 'setupDateTime': '2022-10-21T00:13:41.840Z', 'isFirmwareUpdateTriggered': False, 'firmwareUpdateStatus': 'PICTRIGGERED', 'wifiModeStatus': 'ROUTER_CONNECTED', 'isUSBPowerOn': True, 'USBFaultStatus': 'CLEAR', 'isDFIPartialFull': True, 'isLaserDirty': False}]}}
2023-09-01 08:28:59.099 DEBUG (MainThread) [pylitterbot.robot] Poppy subscribed to updates
2023-09-01 08:28:59.147 DEBUG (MainThread) [pylitterbot.robot] Feeder-Robot subscribed to updates
2023-09-01 08:28:59.148 DEBUG (MainThread) [pylitterbot.robot] Clementine subscribed to updates
2023-09-01 08:28:59.149 INFO (MainThread) [homeassistant.components.vacuum] Setting up vacuum.litterrobot
2023-09-01 08:28:59.149 INFO (MainThread) [homeassistant.components.select] Setting up select.litterrobot
2023-09-01 08:28:59.149 INFO (MainThread) [homeassistant.components.update] Setting up update.litterrobot
2023-09-01 08:28:59.150 INFO (MainThread) [homeassistant.components.switch] Setting up switch.litterrobot
2023-09-01 08:28:59.150 INFO (MainThread) [homeassistant.components.button] Setting up button.litterrobot
2023-09-01 08:28:59.163 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.litterrobot
2023-09-01 08:28:59.164 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.litterrobot
2023-09-01 08:28:59.170 DEBUG (MainThread) [pylitterbot.session] Making POST request to https://lr4.iothings.site/graphql
2023-09-01 08:28:59.649 DEBUG (MainThread) [pylitterbot.session] Received 200 response: {'data': {'litterRobot4CompareFirmwareVersion': None}, 'errors': [{'path': ['litterRobot4CompareFirmwareVersion'], 'data': None, 'errorType': 'Error', 'errorInfo': None, 'locations': [{'line': 3, 'column': 29, 'sourceName': None}], 'message': 'validateFirmwareForRobotDetails: Robot is not available'}]}
2023-09-01 08:28:59.650 DEBUG (MainThread) [pylitterbot.session] Making POST request to https://lr4.iothings.site/graphql
2023-09-01 08:28:59.856 DEBUG (MainThread) [pylitterbot.session] Received 200 response: {'data': {'litterRobot4CompareFirmwareVersion': None}, 'errors': [{'path': ['litterRobot4CompareFirmwareVersion'], 'data': None, 'errorType': 'Error', 'errorInfo': None, 'locations': [{'line': 3, 'column': 29, 'sourceName': None}], 'message': 'validateFirmwareForRobotDetails: Robot is not available'}]}
@natekspencer, do you need anything else to evaluate incorrect Status
being reported?
Apologies, I have the issue resolved in the client library. I just haven't taken the time to get it included in HA core yet, but working on that soon.
Reopening issue as the client library has an issue where it locks the whole thread, making HA unusable.
Any progress on getting this issue resolved?
Any progress on getting this issue resolved?
This was addressed in https://github.com/home-assistant/core/pull/101285 and released as part of 2023.10.0
confirmed. My automation was looking for 'off' vs 'offline'
Can be closed
The problem
Status Code
does not change to Offline when unit is offline (eg. lost wifi connection)App will show as offline.
What version of Home Assistant Core has the issue?
core-2023.7.3
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Litter-Robot
Link to integration documentation on our website
https://www.home-assistant.io/integrations/litterrobot
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response