Bubba8291 / homebridge-sharkiq

A Homebridge plugin to connect your Shark Vacuum to homebridge.
Apache License 2.0
9 stars 1 forks source link

Shark Config settings no longer has a place to put in username and password #18

Open thatpaulallen opened 2 months ago

thatpaulallen commented 2 months ago

IMG_0016

Describe The Bug: There is no longer a field to input username and password. Now I get an error in the log that says “ API Error: Unauthorized SharkIQ will not continue. If the issue persists, open an issue”

To Reproduce: I downgraded to the last stable and release and everything worked. I upgraded to the RC again, and it was broken. (My login info still appears in the JSON editor…

IMG_0018

Environment:

reddog1987 commented 2 months ago

I had same issue with v1.2.0-rc.1, sorry I don't have time to create bug reports

Bubba8291 commented 2 months ago

Garrr, my bad. I didn't mean to publish it haha.

I am going to push out 1.2.0 in a little bit.

Shark changed their login method, so username and password in the configuration file will not work anymore.

17 discusses those changes.

thatpaulallen commented 2 months ago

Thanks for all your hard work!

Bubba8291 commented 2 months ago

Published #19

reddog1987 commented 2 months ago

Thank you!

On Aug 19, 2024, at 12:47, Bubba8291 @.***> wrote:

Published #19 https://github.com/Bubba8291/homebridge-sharkiq/pull/19 — Reply to this email directly, view it on GitHub https://github.com/Bubba8291/homebridge-sharkiq/issues/18#issuecomment-2297107545, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5AZUEIFPS46WEMH4MX27GLZSIVRNAVCNFSM6AAAAABMX6LBYOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJXGEYDONJUGU. You are receiving this because you commented.

reddog1987 commented 2 months ago

FYI: plugin is working, however I have persistent errors getting property values…

NOTICE TO USERS AND PLUGIN DEVELOPERS

Homebridge 2.0 is on the way and brings some breaking changes to existing plugins. Please visit the following link to learn more about the changes and how to prepare: https://github.com/homebridge/homebridge/wiki/Updating-To-Homebridge-v2.0

[8/20/2024, 5:13:22 PM] [SharkIQ] Restarting child bridge... [8/20/2024, 5:13:22 PM] Got SIGTERM, shutting down child bridge process... [8/20/2024, 5:13:27 PM] [SharkIQ] Child bridge process ended [8/20/2024, 5:13:27 PM] [SharkIQ] Process Ended. Code: 143, Signal: null [8/20/2024, 5:13:34 PM] [SharkIQ] Restarting Process... [8/20/2024, 5:13:35 PM] [SharkIQ] Launched child bridge with PID 18459 [8/20/2024, 5:13:35 PM] Registering platform 'homebridge-sharkiq.SharkIQ' [8/20/2024, 5:13:35 PM] [SharkIQ] Loaded homebridge-sharkiq v1.2.0 child bridge successfully [8/20/2024, 5:13:35 PM] Loaded 0 cached accessories from cachedAccessories.0EA4C1E2B01B. [8/20/2024, 5:13:35 PM] Homebridge v1.8.4 (HAP v0.12.2) (SharkIQ) is running on port 39369. [8/20/2024, 5:13:35 PM]

NOTICE TO USERS AND PLUGIN DEVELOPERS

Homebridge 2.0 is on the way and brings some breaking changes to existing plugins. Please visit the following link to learn more about the changes and how to prepare: https://github.com/homebridge/homebridge/wiki/Updating-To-Homebridge-v2.0

[8/20/2024, 5:13:39 PM] [SharkIQ] Successfully logged in to Shark [8/20/2024, 5:13:46 PM] [SharkIQ] Error getting property values. [8/20/2024, 5:13:46 PM] [SharkIQ] Attempting to refresh access token. [8/20/2024, 5:17:26 PM] [SharkIQ] Initializing SharkIQ platform... [8/20/2024, 5:17:26 PM] [SharkIQ] Initializing child bridge 0E:A4:C1:E2:B0:1B [8/20/2024, 5:17:26 PM] Loading 3 accessories... [8/20/2024, 5:17:26 PM] [SharkIQ] Launched child bridge with PID 18638 [8/20/2024, 5:17:26 PM] [SharkIQ] Loaded homebridge-sharkiq v1.2.0 child bridge successfully [8/20/2024, 5:17:26 PM] Loaded 1 cached accessories from cachedAccessories.0EA4C1E2B01B. [8/20/2024, 5:17:26 PM] [SharkIQ] Loading accessory from cache: Alice [8/20/2024, 5:17:26 PM] Registering platform 'homebridge-lutron-caseta-leap.LutronCasetaLeap' [8/20/2024, 5:18:28 PM] [SharkIQ] Error getting property values. [8/20/2024, 5:18:28 PM] [SharkIQ] Attempting to refresh access token. [8/20/2024, 5:18:52 PM] [SharkIQ] Error setting property value. [8/20/2024, 5:18:52 PM] [SharkIQ] Attempting to refresh access token. [8/20/2024, 5:18:53 PM] [SharkIQ] Error setting property value. [8/20/2024, 5:18:53 PM] [SharkIQ] SharkIQ will not continue. If the issue persists, open an issue. [8/20/2024, 5:18:53 PM] [SharkIQ] Error setting property value. [8/20/2024, 5:18:53 PM] [SharkIQ] Attempting to refresh access token. [8/20/2024, 5:18:53 PM] [SharkIQ] Error setting property value. [8/20/2024, 5:18:53 PM] [SharkIQ] SharkIQ will not continue. If the issue persists, open an issue. [8/20/2024, 5:18:54 PM] [SharkIQ] Error setting property value. [8/20/2024, 5:18:54 PM] [SharkIQ] Attempting to refresh access token. [8/20/2024, 5:18:54 PM] [SharkIQ] Error setting property value. [8/20/2024, 5:18:54 PM] [SharkIQ] SharkIQ will not continue. If the issue persists, open an issue. [8/20/2024, 5:23:46 PM] [SharkIQ] Error setting property value. [8/20/2024, 5:23:46 PM] [SharkIQ] Attempting to refresh access token. [8/20/2024, 5:23:46 PM] [SharkIQ] Error setting property value. [8/20/2024, 5:23:46 PM] [SharkIQ] SharkIQ will not continue. If the issue persists, open an issue. [8/20/2024, 5:23:46 PM] [SharkIQ] Error setting property value. [8/20/2024, 5:23:46 PM] [SharkIQ] Attempting to refresh access token. [8/20/2024, 5:23:47 PM] [SharkIQ] Error setting property value. [8/20/2024, 5:23:47 PM] [SharkIQ] SharkIQ will not continue. If the issue persists, open an issue. [8/20/2024, 5:25:36 PM] [SharkIQ] Initializing SharkIQ platform... [8/20/2024, 5:25:36 PM] [SharkIQ] Initializing child bridge 0E:A4:C1:E2:B0:1B [8/20/2024, 5:25:36 PM] Loading 3 accessories... [8/20/2024, 5:25:36 PM] [SharkIQ] Launched child bridge with PID 19156 [8/20/2024, 5:25:37 PM] Registering platform 'homebridge-foobot-multi.FoobotMultiHomebridgePlugin' [8/20/2024, 5:25:37 PM] [SharkIQ] Loaded homebridge-sharkiq v1.2.0 child bridge successfully [8/20/2024, 5:25:37 PM] [SharkIQ] Loading accessory from cache: Alice [8/20/2024, 5:25:37 PM] Registering platform 'homebridge-lutron-caseta-leap.LutronCasetaLeap' [8/20/2024, 5:28:56 PM] [SharkIQ] Error getting property values. [8/20/2024, 5:28:56 PM] [SharkIQ] Attempting to refresh access token. [8/20/2024, 5:32:11 PM] [SharkIQ] Error getting property values. [8/20/2024, 5:32:11 PM] [SharkIQ] Attempting to refresh access token. [8/20/2024, 5:34:21 PM] [SharkIQ] Error getting property values. [8/20/2024, 5:34:21 PM] [SharkIQ] Attempting to refresh access token. [8/20/2024, 5:41:13 PM] [SharkIQ] Error setting property value. [8/20/2024, 5:41:13 PM] [SharkIQ] Attempting to refresh access token. [8/20/2024, 5:41:14 PM] [SharkIQ] Error setting property value. [8/20/2024, 5:41:14 PM] [SharkIQ] SharkIQ will not continue. If the issue persists, open an issue. [8/20/2024, 5:41:17 PM] [SharkIQ] Error setting property value. [8/20/2024, 5:41:17 PM] [SharkIQ] Attempting to refresh access token. [8/20/2024, 5:41:17 PM] [SharkIQ] Error setting property value. [8/20/2024, 5:41:17 PM] [SharkIQ] SharkIQ will not continue. If the issue persists, open an issue. [8/20/2024, 5:44:21 PM] [SharkIQ] Error getting property values. [8/20/2024, 5:44:21 PM] [SharkIQ] Attempting to refresh access token. [8/20/2024, 5:49:02 PM] [SharkIQ] Error getting property values. [8/20/2024, 5:49:02 PM] [SharkIQ] Attempting to refresh access token.

Bubba8291 commented 2 months ago

@reddog1987 Was able to reproduce. There is a promise rejection executing when refreshing the token, but it isn't logging what it is. I added the debug message locally. Will watch for what it says since it seems to start happening after it has been running for a while.

sabresoftware2021 commented 2 months ago

I tried to configure the updated plugin, but when I try opening the URL for Shark login:

https://login.sharkninja.com/authorize?response_type=code&client_id=wsguxrqm77mq4LtrTrwg8ZJUxmSrexGi&state=40nbnCKaUuDPUaLylg7j1qQeJAhx1TKqSN3cRKJrA7d&scope=openid%20profile%20email%20offline_access%20read%3Ausers%20read%3Acurrent_user%20read%3Auser_idp_tokens&redirect_uri=com.sharkninja.shark%3A%2F%2Flogin.sharkninja.com%2Fios%2Fcom.sharkninja.shark%2Fcallback&code_challenge=pAcdCg1zajZlhZ_8bLyJqc7WF2IVuFYotAU9Bnyyi-M&code_challenge_method=S256&ui_locales=en&auth0Client=eyJ2ZXJzaW9uIjoiMi42LjAiLCJuYW1lIjoiQXV0aDAuc3dpZnQiLCJlbnI6eyJpVCI6IjE3LjYiLCJzd2lmdCI6IjUueCJ9fQ==

  1. Initially it sent me to a login page, but rejected my credentials;
  2. Then I tried setting up a new account (but using the same email address), and it said that I was already registered;
  3. Then I tried the link again, but I get an error page saying "Safari cannot open the page because the address is invalid.";
  4. I restarted Homebridge and tried again, and got the same reply (the URL from the logs was slightly different);
  5. I delete the SharkIQ pluggin and reinstalled it again, and the Shark URL still shows the same error message.

H E L P !

sabresoftware2021 commented 2 months ago

The most recent log:

[23/08/2024, 17:25:40] [SharkIQ] Please visit the following URL to login to Shark: https://login.sharkninja.com/authorize?response_type=code&client_id=wsguxrqm77mq4LtrTrwg8ZJUxmSrexGi&state=FkhYV0VAb9JJJzVvkrvxVb1dWARrwb9lIPMeupbpEbO&scope=openid%20profile%20email%20offline_access%20read%3Ausers%20read%3Acurrent_user%20read%3Auser_idp_tokens&redirect_uri=com.sharkninja.shark%3A%2F%2Flogin.sharkninja.com%2Fios%2Fcom.sharkninja.shark%2Fcallback&code_challenge=hlLobPfY-u934mzaDtyD7W6RIrPvGPJomGDEaDhuCTc&code_challenge_method=S256&ui_locales=en&auth0Client=eyJ2ZXJzaW9uIjoiMi42LjAiLCJuYW1lIjoiQXV0aDAuc3dpZnQiLCJlbnI6eyJpVCI6IjE3LjYiLCJzd2lmdCI6IjUueCJ9fQ==
[23/08/2024, 17:25:40] [SharkIQ] Error logging in to Shark
[23/08/2024, 17:25:40] [SharkIQ] None of the DSNs provided matched the vacuum(s) on your account.
reddog1987 commented 2 months ago

I ran across the same issue, I solved that login issue by using Chrome browser instead of Safari

sabresoftware2021 commented 2 months ago

I tried Chrome and no joy there either. Now I'm trying Microsoft Edge, and while I get the login screen nothing happens when I click on "Continue".

thatpaulallen commented 2 months ago

After hitting “Continue” and it hangs try refreshing the page. I seem to remember that working for me…

sabresoftware2021 commented 2 months ago

Finally was directed to a page that said I needed to change my password in the Shark app. So I did, and I'm able to log back into the app, but when I try it in the Mac web browser I get a user email/password error! Truly frustrating.

I guess that that is the end of this plugin for me. The problem lies squarely with Shark!

sabresoftware2021 commented 2 months ago

I tried refreshing, but got other a blank page or a Shark branding page. Maybe time to find a different vaccuum.

sabresoftware2021 commented 2 months ago

I'm sick of this one anyway because it has the power switch on the side and keeps turning itself off as it rubs up against objects (especially spring loaded door stops).

Bubba8291 commented 2 months ago

@sabresoftware2021 Make sure you're using Chrome or Firefox. I will specify Safari does not work.

Second, have the inspect element network tab opened before you log in. If there are unexpected issues like directing to the Shark home page, try to open the link in private browsing (incognito) mode. You can do that by copying the link, opening private browsing mode, then pasting the link in the address bar.

If you need more assistance, join the Homebridge Discord server, and message in the #sharkiq channel.

Bubba8291 commented 2 months ago

@reddog1987 Okay looking back at my logs, they seem to be showing 500, 503, and 401 errors. 500 and 503 errors are server side errors, which are on Sharks side.

I will see if I can get further with that, since they seem to be random.

reddog1987 commented 2 months ago

FYI: MY Homebridge logs are only showing 401 errors. However everything is working fine :)

[8/24/2024, 12:16:43 PM] [SharkIQ] Attempting to refresh access token.
[8/24/2024, 12:16:43 PM] [SharkIQ] API Error: Unable to refresh auth token. Status Code 401
[8/24/2024, 12:16:43 PM] [SharkIQ] Message: Your refresh token has expired
[8/24/2024, 12:16:43 PM] [SharkIQ] Refreshing access token failed. Please check your auth file and recreate it if needed.
[8/24/2024, 12:16:43 PM] [SharkIQ] SharkIQ will not continue. If the issue persists, open an issue.
[8/24/2024, 12:16:44 PM] [SharkIQ] Error getting property values.
[8/24/2024, 12:16:44 PM] [SharkIQ] SharkIQ will not continue. If the issue persists, open an issue.
[8/24/2024, 12:16:44 PM] [SharkIQ] Error getting property values.
[8/24/2024, 12:16:44 PM] [SharkIQ] Attempting to refresh access token.
[8/24/2024, 12:16:44 PM] [SharkIQ] API Error: Unable to refresh auth token. Status Code 401
[8/24/2024, 12:16:44 PM] [SharkIQ] Message: Your refresh token has expired
[8/24/2024, 12:16:44 PM] [SharkIQ] Refreshing access token failed. Please check your auth file and recreate it if needed.
[8/24/2024, 12:16:44 PM] [SharkIQ] SharkIQ will not continue. If the issue persists, open an issue.
[8/24/2024, 12:16:44 PM] [SharkIQ] Error getting property values.
[8/24/2024, 12:16:44 PM] [SharkIQ] SharkIQ will not continue. If the issue persists, open an issue.
[8/24/2024, 12:16:48 PM] [SharkIQ] Error getting property values.
[8/24/2024, 12:16:48 PM] [SharkIQ] Attempting to refresh access token.
[8/24/2024, 12:16:48 PM] [SharkIQ] API Error: Unable to refresh auth token. Status Code 401
[8/24/2024, 12:16:48 PM] [SharkIQ] Message: Your refresh token has expired
[8/24/2024, 12:16:48 PM] [SharkIQ] Refreshing access token failed. Please check your auth file and recreate it if needed.
[8/24/2024, 12:16:48 PM] [SharkIQ] SharkIQ will not continue. If the issue persists, open an issue.
[8/24/2024, 12:16:48 PM] [SharkIQ] Error getting property values.
[8/24/2024, 12:16:48 PM] [SharkIQ] SharkIQ will not continue. If the issue persists, open an issue.
[8/24/2024, 12:16:48 PM] [SharkIQ] Error getting property values.
[8/24/2024, 12:16:48 PM] [SharkIQ] Attempting to refresh access token.
[8/24/2024, 12:16:48 PM] [SharkIQ] API Error: Unable to refresh auth token. Status Code 401
[8/24/2024, 12:16:48 PM] [SharkIQ] Message: Your refresh token has expired
[8/24/2024, 12:16:48 PM] [SharkIQ] Refreshing access token failed. Please check your auth file and recreate it if needed.
[8/24/2024, 12:16:48 PM] [SharkIQ] SharkIQ will not continue. If the issue persists, open an issue.
[8/24/2024, 12:16:48 PM] [SharkIQ] Error getting property values.
[8/24/2024, 12:16:48 PM] [SharkIQ] SharkIQ will not continue. If the issue persists, open an issue.
[8/24/2024, 12:16:53 PM] [SharkIQ] Error getting property values.
Bubba8291 commented 2 months ago

@reddog1987 Can you update to v1.2.1, and when you get an error, post the error message?

reddog1987 commented 2 months ago

Not functional. un-installed re-installed 1.2.1 & 1.2.2 No url published, can't get a auth code

[8/24/2024, 6:13:39 PM] [SharkIQ] API Error: Unauthorized
[8/24/2024, 6:13:39 PM] [SharkIQ] SharkIQ will not continue. If the issue persists, open an issue.
[8/24/2024, 6:13:39 PM] [SharkIQ] API Error: Unauthorized
[8/24/2024, 6:13:39 PM] [SharkIQ] Attempting to refresh access token.
[8/24/2024, 6:13:39 PM] Registering platform 'homebridge-weather-plus.WeatherPlus'
[8/24/2024, 6:13:39 PM] [SharkIQ] API Error: Unable to refresh auth token. Status Code 401
[8/24/2024, 6:13:39 PM] [SharkIQ] Message: "Your refresh token has expired"
[8/24/2024, 6:13:39 PM] [SharkIQ] Refreshing access token failed. Please check your auth file and delete it to recreate it if needed.
Bubba8291 commented 2 months ago

@reddog1987 If you are on 1.2.2, do you see the log for the auth file path? If so, can you delete it, and try to re auth?

From 1.2.0 to 1.2.2, I am not able to reproduce.

reddog1987 commented 2 months ago

I was able to delete the old auth file & plugin now sent path, however the issue seems to be that in chrome, with incognito & inpect element active I cannot log in as other useres stated, nothing happens when you click on “continue” I do get a callback code but obviously its not good since I am not actually logged in. PS: User/Pass are good when logging in from ios device.

On Aug 24, 2024, at 20:35, Bubba8291 @.***> wrote:

@.*** https://github.com/reddog1987 If you are on 1.2.2, do you see the log for the auth file path? If so, can you delete it, and try to re auth?

From 1.2.0 to 1.2.2, I am not able to reproduce.

— Reply to this email directly, view it on GitHub https://github.com/Bubba8291/homebridge-sharkiq/issues/18#issuecomment-2308612066, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5AZUEJTWTY7H5VACGVDDTLZTEYF3AVCNFSM6AAAAABMX6LBYOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBYGYYTEMBWGY. You are receiving this because you were mentioned.

reddog1987 commented 2 months ago

Attempted again using Fire Fox, same results nothing happens when you click login "continue" in https path. I did attempt using the resume code from https://login.sharkninja.com/authorize/resume?state=NOdMi9IXRg4hit2IZerzyoukQIeYCgei

log:

[8/25/2024, 2:53:18 AM] [SharkIQ] Initializing SharkIQ platform...
[8/25/2024, 2:53:18 AM] Loading 3 accessories...
[8/25/2024, 2:53:18 AM] [SharkIQ] Please visit the following URL to login to Shark: https://login.sharkninja.com/authorize?response_type=code&client_id=wsguxrqm77mq4LtrTrwg8ZJUxmSrexGi&state=7KZWBqEZJkWWz10oQ793x7b5Fgk7HRvOT8mGZx1cL1V&scope=openid%20profile%20email%20offline_access%20read%3Ausers%20read%3Acurrent_user%20read%3Auser_idp_tokens&redirect_uri=com.sharkninja.shark%3A%2F%2Flogin.sharkninja.com%2Fios%2Fcom.sharkninja.shark%2Fcallback&code_challenge=I3HRLyamehV7RXAcdOA-eBOhUu2zzuFAoAUJAcccgL8&code_challenge_method=S256&ui_locales=en&auth0Client=eyJ2ZXJzaW9uIjoiMi42LjAiLCJuYW1lIjoiQXV0aDAuc3dpZnQiLCJlbnI6eyJpVCI6IjE3LjYiLCJzd2lmdCI6IjUueCJ9fQ==
[8/25/2024, 2:53:18 AM] [SharkIQ] Error logging in to Shark
[8/25/2024, 2:53:18 AM] [SharkIQ] None of the DSNs provided matched the vacuum(s) on your account.
[8/25/2024, 3:15:08 AM] [SharkIQ] Initializing SharkIQ platform...
[8/25/2024, 3:15:08 AM] Loading 3 accessories...
[8/25/2024, 3:15:09 AM] [SharkIQ] Successfully logged in to Shark
[8/25/2024, 3:15:09 AM] [SharkIQ] API Error: Unauthorized
[8/25/2024, 3:15:09 AM] [SharkIQ] SharkIQ will not continue. If the issue persists, open an issue.
[8/25/2024, 3:15:09 AM] [SharkIQ] API Error: Unauthorized
[8/25/2024, 3:15:09 AM] [SharkIQ] Attempting to refresh access token.
[8/25/2024, 3:15:09 AM] [SharkIQ] API Error: Unable to refresh auth token. Status Code 401
[8/25/2024, 3:15:09 AM] [SharkIQ] Message: "Your refresh token is not found"
[8/25/2024, 3:15:09 AM] [SharkIQ] Refreshing access token failed. Please check your auth file and delete it to recreate it if needed.
[8/25/2024, 3:15:09 AM] [SharkIQ] The auth file is located at: /Users/danieljohnson/.homebridge/.sharkiq.json
[8/25/2024, 3:15:09 AM] [SharkIQ] SharkIQ will not continue. If the issue persists, open an issue.
[8/25/2024, 3:15:09 AM] [SharkIQ] None of the DSNs provided matched the vacuum(s) on your account.
[8/25/2024, 3:15:29 AM] [SharkIQ] Initializing SharkIQ platform...
[8/25/2024, 3:15:29 AM] [SharkIQ] Initializing child bridge 0E:B5:20:B7:03:78
[8/25/2024, 3:15:29 AM] Loading 3 accessories...
[8/25/2024, 3:15:30 AM] [SharkIQ] Launched child bridge with PID 44994
[8/25/2024, 3:15:30 AM] [SharkIQ] Loaded homebridge-sharkiq v1.2.2 child bridge successfully
[8/25/2024, 3:15:30 AM] [SharkIQ] API Error: Unauthorized
[8/25/2024, 3:15:30 AM] [SharkIQ] SharkIQ will not continue. If the issue persists, open an issue.
[8/25/2024, 3:15:30 AM] [SharkIQ] API Error: Unauthorized
[8/25/2024, 3:15:30 AM] [SharkIQ] Attempting to refresh access token.
Bubba8291 commented 2 months ago

however the issue seems to be that in chrome, with incognito & inpect element active I cannot log in as other useres stated, nothing happens when you click on “continue” I do get a callback code but obviously its not good since I am not actually logged in.

@reddog1987 It actually is good. In fact, that is exactly what is supposed to happen. The callback code is in inspect element, but the same webpage is displayed even after pressing continue and getting the code.

Try to remove the file that was logged in your console, then restart homebridge.

Also, I want to make sure. Are you on the US server?

reddog1987 commented 2 months ago

OK got it to work. yes I am also on US server appears to have no errors initially.

[8/25/2024, 7:35:34 AM] [SharkIQ] Initializing SharkIQ platform...
[8/25/2024, 7:35:34 AM] Loading 3 accessories...
[8/25/2024, 7:35:38 AM] [SharkIQ] Successfully logged in to Shark
[8/25/2024, 7:37:45 AM] [SharkIQ] Initializing SharkIQ platform...
[8/25/2024, 7:37:45 AM] [SharkIQ] Initializing child bridge 0E:03:AE:43:2A:F3
[8/25/2024, 7:37:45 AM] Loading 3 accessories...
[8/25/2024, 7:37:46 AM] [SharkIQ] Launched child bridge with PID 60353
[8/25/2024, 7:37:46 AM] Registering platform 'homebridge-foobot-multi.FoobotMultiHomebridgePlugin'
[8/25/2024, 7:37:46 AM] [SharkIQ] Loaded homebridge-sharkiq v1.2.2 child bridge successfully
[8/25/2024, 7:40:40 AM] [SharkIQ] Initializing SharkIQ platform...
[8/25/2024, 7:40:40 AM] [SharkIQ] Initializing child bridge 0E:03:AE:43:2A:F3
[8/25/2024, 7:40:40 AM] Loading 3 accessories...
[8/25/2024, 7:40:41 AM] [SharkIQ] Launched child bridge with PID 60523
[8/25/2024, 7:40:41 AM] Registering platform 'homebridge-foobot-multi.FoobotMultiHomebridgePlugin'
[8/25/2024, 7:40:41 AM] [SharkIQ] Loaded homebridge-sharkiq v1.2.2 child bridge successfully
[8/25/2024, 7:40:41 AM] [SharkIQ] Loading accessory from cache: Alice
[8/25/2024, 7:40:41 AM] Registering platform 'homebridge-lutron-caseta-leap.LutronCasetaLeap'

The persisten errors are appearing again after a while, only once as write this, and have no effect on performance...
[8/25/2024, 7:54:05 AM] [SharkIQ] Error getting property values.
[8/25/2024, 7:54:05 AM] [SharkIQ] Attempting to refresh access token.

I'l watch for a while.

EDITED: few more...

[8/25/2024, 8:00:54 AM] [SharkIQ] Initializing SharkIQ platform...
[8/25/2024, 8:00:54 AM] [SharkIQ] Initializing child bridge 0E:03:AE:43:2A:F3
[8/25/2024, 8:00:54 AM] Loading 3 accessories...
[8/25/2024, 8:00:54 AM] [SharkIQ] Launched child bridge with PID 61652
[8/25/2024, 8:00:54 AM] [SharkIQ] Loaded homebridge-sharkiq v1.2.2 child bridge successfully
[8/25/2024, 8:00:54 AM] Loaded 1 cached accessories from cachedAccessories.0E03AE432AF3.
[8/25/2024, 8:00:54 AM] [SharkIQ] Loading accessory from cache: Alice
[8/25/2024, 8:08:41 AM] [SharkIQ] Error getting property values.
[8/25/2024, 8:08:41 AM] [SharkIQ] Attempting to refresh access token.
[8/25/2024, 8:09:51 AM] [SharkIQ] Error getting property values.
[8/25/2024, 8:09:51 AM] [SharkIQ] Attempting to refresh access token.
[8/25/2024, 8:14:06 AM] [SharkIQ] Error getting property values.
[8/25/2024, 8:14:06 AM] [SharkIQ] Attempting to refresh access token.

Do you want me to now delete the /Users/***/.homebridge/.sharkiq.json file? Honestly I can live with this as is.

Thank you very much for this plugin!

Bubba8291 commented 2 months ago

@reddog1987 If you start your vacuum, does it still run even with the get property value errors? You were talking about it still runs even with the property value errors. Just want to make sure.

Also, make sure you are on v1.2.2.

reddog1987 commented 2 months ago

Yes it runs fine with those errors in log, running automations from homekit.

On Aug 25, 2024, at 13:08, Bubba8291 @.***> wrote:

@reddog1987 https://github.com/reddog1987 If you start your vacuum, does it still run even with the get property value errors? You were talking about it still runs even with the property value errors. Just want to make sure.

Also, make sure you are on v1.2.2.

— Reply to this email directly, view it on GitHub https://github.com/Bubba8291/homebridge-sharkiq/issues/18#issuecomment-2308945110, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5AZUEKWGQKNN222IOV4FFDZTIMRXAVCNFSM6AAAAABMX6LBYOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBYHE2DKMJRGA. You are receiving this because you were mentioned.

thatpaulallen commented 2 months ago

I’m getting the same errors as reddog1987 and, like them, my vacuum still works in HomeKit.

sabresoftware2021 commented 2 months ago

OK, I'm running on Chrome, in incognito mode and when I try following the URL from the logs file I get a blank page instead of the login page most of the time, and when I do get a login page nothing happens when I click on continue.

reddog1987 commented 2 months ago

is is expected behavior to have “nothing happen” after clicking on ”continue”, you just need to follow instructions to copy the code generated by going to that web page vie the path geberatred.

On Aug 26, 2024, at 18:49, sabresoftware2021 @.***> wrote:

reddog1987 commented 2 months ago

I hate auto correct!!!

On Aug 26, 2024, at 19:51, Daniel Johnson @.***> wrote:

is is expected behavior to have “nothing happen” after clicking on ”continue”, you just need to follow instructions to copy the code generated by going to that web page vie the path geberatred.

On Aug 26, 2024, at 18:49, sabresoftware2021 @.***> wrote:

sabresoftware2021 commented 2 months ago

But most of the time I only get a blank page, and on the odd time I do get a login page, nothing happens when I try to login (nothing shows up in the inspector panels).

sabresoftware2021 commented 2 months ago

I’ve tried both Chrome and Microsoft Edge and same basic results.

Bubba8291 commented 2 months ago

@sabresoftware2021 Are you in the network tab of the inspect panel?

Also, I can provide better support in the Discord server.

sabresoftware2021 commented 2 months ago

Where would I find the log file to delete it?

sabresoftware2021 commented 2 months ago

Where do I find discord server?

Bubba8291 commented 2 months ago

Where do I find discord server?

@sabresoftware2021 Homebridge Discord Server.

Make sure to message in the sharkiq channel.

sabresoftware2021 commented 2 months ago

Solved it. I used Microsoft Edge under Windows 11 running through Parallels on my Mac, and was easily able to complete the process. Oh the joys of computers these days!

Hopefully once we have gotten this login token we don't have to revisit too often, although it was easy enough once I got the right approach.

donavanbecker commented 2 months ago

@Bubba8291 have you thought of using puppeteer to get this info in Homebridge UI?

Bubba8291 commented 2 months ago

@Bubba8291 have you thought of using puppeteer to get this info in Homebridge UI?

I haven't! I actually don't use the Homebridge UI for my setup, so I never would've thought to integrate the login UI.

Do you have experience with the plugins using the UI?

donavanbecker commented 2 months ago

I am using the custom Ui on all my plugins, I have puppteer before, but I have seen it be used in Homebridge-nest-cam before.

Bubba8291 commented 2 months ago

I am using the custom Ui on all my plugins, I have puppteer before, but I have seen it be used in Homebridge-nest-cam before.

@donavanbecker Awesome. The Homebridge UI is not at the top of my list currently. Also I started class(es) again, so I won't have as much time as I did a couple weeks ago.

Does the Homebridge team get demographics on pure CLI vs UI Homebridge?

Bubba8291 commented 2 months ago

@sabresoftware2021 @reddog1987 @thatpaulallen v1.2.3 should fix the property value errors. I am closing, but reopen if the errors show up again on v1.2.3.

donavanbecker commented 2 months ago

Does the Homebridge team get demographics on pure CLI vs UI Homebridge?

I am not sure but I guess we could look at the dependents on npm image

reddog1987 commented 2 months ago

@sabresoftware2021 @reddog1987 @thatpaulallen v1.2.3 should fix the property value errors. I am closing, but reopen if the errors show up again on v1.2.3.

Issue still exists with v1.2.3;

[8/28/2024, 9:17:45 PM] [SharkIQ] Initializing SharkIQ platform... [8/28/2024, 9:17:45 PM] [SharkIQ] Initializing child bridge 0E:03:AE:43:2A:F3 [8/28/2024, 9:17:45 PM] Loading 3 accessories... [8/28/2024, 9:17:45 PM] [SharkIQ] Launched child bridge with PID 34463 [8/28/2024, 9:17:45 PM] [SharkIQ] Loaded homebridge-sharkiq v1.2.3 child bridge successfully [8/28/2024, 9:17:45 PM] [SharkIQ] Loading accessory from cache: Alice [8/28/2024, 9:17:45 PM] Registering platform 'homebridge-lutron-caseta-leap.LutronCasetaLeap' [8/28/2024, 10:24:58 PM] [SharkIQ] Error getting property values. [8/28/2024, 10:24:58 PM] [SharkIQ] Attempting to refresh access token. [8/28/2024, 10:41:58 PM] [SharkIQ] Error getting property values. [8/28/2024, 10:41:58 PM] [SharkIQ] Attempting to refresh access token. [8/28/2024, 10:54:44 PM] [SharkIQ] Error getting property values. [8/28/2024, 10:54:44 PM] [SharkIQ] Attempting to refresh access token. [8/28/2024, 11:24:49 PM] [SharkIQ] Error getting property values. [8/28/2024, 11:24:49 PM] [SharkIQ] Attempting to refresh access token. [8/28/2024, 11:59:05 PM] [SharkIQ] Error getting property values. [8/28/2024, 11:59:05 PM] [SharkIQ] Attempting to refresh access token. [8/29/2024, 12:13:38 AM] [SharkIQ] Error getting property values. [8/29/2024, 12:13:38 AM] [SharkIQ] Attempting to refresh access token. [8/29/2024, 1:56:22 AM] [SharkIQ] Error getting property values. [8/29/2024, 1:56:22 AM] [SharkIQ] Attempting to refresh access token.

Bubba8291 commented 2 months ago

@reddog1987 ok thanks for letting me know.

Makes me think there's a limit on the amount of requests the access token can make before a refresh.

I will have to look more into it tomorrow.

Bubba8291 commented 2 months ago

@reddog1987 @donavanbecker Here's our culprit.

Aug 29 14:17:54 pi homebridge[16458]: [29/08/2024, 14:17:54] [SharkIQ] Triggering Vacuum Docked: true
Aug 29 14:17:58 pi homebridge[16458]: [29/08/2024, 14:17:58] [SharkIQ] Triggering Vacuum Docked: true
Aug 29 14:18:04 pi homebridge[16458]: [29/08/2024, 14:18:04] [SharkIQ] Triggering Vacuum Docked: true
Aug 29 14:18:09 pi homebridge[16458]: [29/08/2024, 14:18:09] [SharkIQ] Triggering Vacuum Docked: true
Aug 29 14:18:13 pi homebridge[16458]: [29/08/2024, 14:18:13] [SharkIQ] Triggering Vacuum Docked: true
Aug 29 14:18:18 pi homebridge[16458]: [29/08/2024, 14:18:18] [SharkIQ] Error getting property value Operating_Mode
Aug 29 14:18:18 pi homebridge[16458]: [29/08/2024, 14:18:18] [SharkIQ] Message: {"code":"429","message":"429 - Too many requests. Try again soon."}
Aug 29 14:18:18 pi homebridge[16458]: [29/08/2024, 14:18:18] [SharkIQ] Attempting to refresh access token.
Aug 29 14:18:18 pi homebridge[16458]: [29/08/2024, 14:18:18] [SharkIQ] Refreshing auth token.
Aug 29 14:18:19 pi homebridge[16458]: [29/08/2024, 14:18:19] [SharkIQ] Triggering Vacuum Docked: true

Probably a good idea for everyone to raise the docked status interval right away as this might bring up question to Shark.

reddog1987 commented 2 months ago

Do you have a suggested interval time? I am temporarily upping mine from 5000 to 10000, will watch.

On Aug 29, 2024, at 16:28, Bubba8291 @.***> wrote:

@reddog1987 https://github.com/reddog1987 @donavanbecker https://github.com/donavanbecker Here's our culprit.

Aug 29 14:17:54 pi homebridge[16458]: [29/08/2024, 14:17:54] [SharkIQ] Triggering Vacuum Docked: true Aug 29 14:17:58 pi homebridge[16458]: [29/08/2024, 14:17:58] [SharkIQ] Triggering Vacuum Docked: true Aug 29 14:18:04 pi homebridge[16458]: [29/08/2024, 14:18:04] [SharkIQ] Triggering Vacuum Docked: true Aug 29 14:18:09 pi homebridge[16458]: [29/08/2024, 14:18:09] [SharkIQ] Triggering Vacuum Docked: true Aug 29 14:18:13 pi homebridge[16458]: [29/08/2024, 14:18:13] [SharkIQ] Triggering Vacuum Docked: true Aug 29 14:18:18 pi homebridge[16458]: [29/08/2024, 14:18:18] [SharkIQ] Error getting property value Operating_Mode Aug 29 14:18:18 pi homebridge[16458]: [29/08/2024, 14:18:18] [SharkIQ] Message: {"code":"429","message":"429 - Too many requests. Try again soon."} Aug 29 14:18:18 pi homebridge[16458]: [29/08/2024, 14:18:18] [SharkIQ] Attempting to refresh access token. Aug 29 14:18:18 pi homebridge[16458]: [29/08/2024, 14:18:18] [SharkIQ] Refreshing auth token. Aug 29 14:18:19 pi homebridge[16458]: [29/08/2024, 14:18:19] [SharkIQ] Triggering Vacuum Docked: true Probably a good idea for everyone to raise the docked status interval right away as this might bring up question to Shark.

— Reply to this email directly, view it on GitHub https://github.com/Bubba8291/homebridge-sharkiq/issues/18#issuecomment-2319046692, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5AZUELQTQMB35NZPXRN4YDZT6HAVAVCNFSM6AAAAABMX6LBYOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJZGA2DMNRZGI. You are receiving this because you were mentioned.

reddog1987 commented 2 months ago

Now trying 100000 interval

On Aug 29, 2024, at 16:48, Daniel Johnson @.***> wrote:

Do you have a suggested interval time? I am temporarily upping mine from 5000 to 10000, will watch.

On Aug 29, 2024, at 16:28, Bubba8291 @.***> wrote:

@reddog1987 https://github.com/reddog1987 @donavanbecker https://github.com/donavanbecker Here's our culprit.

Aug 29 14:17:54 pi homebridge[16458]: [29/08/2024, 14:17:54] [SharkIQ] Triggering Vacuum Docked: true Aug 29 14:17:58 pi homebridge[16458]: [29/08/2024, 14:17:58] [SharkIQ] Triggering Vacuum Docked: true Aug 29 14:18:04 pi homebridge[16458]: [29/08/2024, 14:18:04] [SharkIQ] Triggering Vacuum Docked: true Aug 29 14:18:09 pi homebridge[16458]: [29/08/2024, 14:18:09] [SharkIQ] Triggering Vacuum Docked: true Aug 29 14:18:13 pi homebridge[16458]: [29/08/2024, 14:18:13] [SharkIQ] Triggering Vacuum Docked: true Aug 29 14:18:18 pi homebridge[16458]: [29/08/2024, 14:18:18] [SharkIQ] Error getting property value Operating_Mode Aug 29 14:18:18 pi homebridge[16458]: [29/08/2024, 14:18:18] [SharkIQ] Message: {"code":"429","message":"429 - Too many requests. Try again soon."} Aug 29 14:18:18 pi homebridge[16458]: [29/08/2024, 14:18:18] [SharkIQ] Attempting to refresh access token. Aug 29 14:18:18 pi homebridge[16458]: [29/08/2024, 14:18:18] [SharkIQ] Refreshing auth token. Aug 29 14:18:19 pi homebridge[16458]: [29/08/2024, 14:18:19] [SharkIQ] Triggering Vacuum Docked: true Probably a good idea for everyone to raise the docked status interval right away as this might bring up question to Shark.

— Reply to this email directly, view it on GitHub https://github.com/Bubba8291/homebridge-sharkiq/issues/18#issuecomment-2319046692, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5AZUELQTQMB35NZPXRN4YDZT6HAVAVCNFSM6AAAAABMX6LBYOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJZGA2DMNRZGI. You are receiving this because you were mentioned.

reddog1987 commented 2 months ago

Using 100000 interval I now have about 14 hrs between errors, there seems to bo no impact to fuctionality using this setting.