-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SharkIQ authentication error #123392
Comments
Hey there @JeffResc, @funkybunch, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) sharkiq documentation |
Same problem here. Won't work after updating to HA core-2024 8.0 |
Yep, also seeing the exact same problem here! |
I am also able to reproduce this. It looks like the backend API used by the integration had some changes made and I'm having trouble finding any public documentation for this. I can confirm that this doesn't have to do with any specific HA core version and has to do with the upstream sharkiq pypi package. I can also confirm that the app ID and app secret constants still seem to be correct It looks like the previously working call to Issue created on upstream repo: JeffResc/sharkiq#51 |
Worth noting that this does not seem to affect all installations. Additional analysis is being done to determine the root cause. Instead of simply responding "yeah its happening to me too" please include your logs, model, and region to help us get to the bottom of the issue, otherwise it is not helpful. Likewise, if you have a working installation, please do leave a comment with your model and region to help us determine if there is a pattern. Finally, some users have reported despite successfully logging into the app with the same credentials, both the app and HA worked after resetting their password. Please try this and let us know if it worked for you as well. Any and all data points are helpful at this stage. |
The integration is broken for me in Canada. I have both a Shark IQ and a Shark AI device integrated and previously both working perfectly. Below is the log when I attempt to reload the integration:
|
I apologize that I didn't attempt this in my previous comment, but I've just tried resetting my password and it didn't work. however, it is now giving me a different error log. Hope this helps!
I'd be curious to know how to change the existing credentials on the integration, as I could only figure out how to input my updated password by using "Add Entry" on the integration config. and SharkIQ is not available in the "Application Credentials" page. Just to be sure, I also deleted my (backed up) existing SharkIQ integration and re-added it with the new password, but the log output is the same. |
Not sure if mine is the same problem however I can not set it up
|
I began having failures immediately upon upgrading my HA to 2024.08.0. I am running on an Ubuntu VM. Region is US. Without thinking I removed the configuration and this is what I was met with when I tried to set it back up. Logs from my first attempted logon:
I then reset my password and was met with a failed to connect and this in the logs (I did verify that I can connect to sharkclean's website with the new password):
|
My Robot model is RV2520A0US. The latest integration fails with the access_token error and a 403 response code as reported above. I started using the HA integration in May 2024 (and successfully extended it for room specific cleaning with a custom integration based on the logic in jeffresc/sharkiq). Prior to May, I started running into problems using the Google Assistant with the SharkClean skill. I had been using it to schedule room-based cleaning successfully, but it suddenly stopped working. Alexa's SharkClean skill also failed to work, so I had no solution to schedule specific rooms for cleaning. The reason I mention the above is that I just unlinked and relinked the skills on Alexa and Google Assistant. There was a hint in the link skill page in the Alexa app that says under the heading 'What's new' that they 'replaced the web authorization URI'. There was no information like that on Google Assistant's skill, but when I tried it to perform a room-specific cleaning operation, it worked. |
I imagine that'll be helpful, although I looked into the Google Home integration a bit, and it seems like it authenticates against a google-specific URL.... and I've just checked Alexa and it does the same; you actually log into https://alexa-account-linking.iot-sharkninja.com/?client_id=RANDOMTEXT So, I dunno if it would be possible to leverage the Google/Alexa integrations, but it's definitely interesting to know they had to change their configs as well. Hopefully that's a good sign that there's a way forwards for us too. |
@tombrant do you happen to have that new URL? |
Same problem here in Canada |
Getting the same |
Nope, they're a bit different. I've changed a couple letters at the end of each URL to avoid potential privacy/security issues, but here's what I get when I attempt to authenticate to each: |
I am seeing this as well. Region is US/North America and model is RV1100A. HA Version: 2024.8.3 Logs:
|
From the look of the Google and Alexa auth urls and the arguments being supplied, this appears to be an OAuth Client Credentials Grant flow. In this case, the applications engaged in the API activity to control the device are running on the Google or Alexa hosted servers and are granted authentication through a token exchange with the SharkClean IOT authentication endpoints. This doesn't appear to involve any user-specific credentials being supplied. The fact that the HA authentication is now returning a 403 seems to me to indicate that the original username and password API flow has been explicitly disabled and only registered applications can interact. Does this sound like a valid conclusion to draw based on the information known? |
This seems to be true. It seems the API can still authenticate email/password through the current endpoint so I don't think the URL is dead. The 403 makes me think they disabled auth token generation through the ""Shark-Android-field-id" app_id that HA integration has been using. The is a similar "Shark-iOS-field-id" app_id + app_secret that used to work that returns a 403 now. They probably reworked the mobile apps since 2020 or whenever these app details were first posted and now finally got around to disabling auth token generation from the old app ids. My integration was working fine until yesterday when my token must have expired and I lost client access to the underlying APIs. |
Any news yet ? |
I wouldn't hold your breath. It seems like Shark are deliberately locking out anyone who isn't Google, Amazon, or Apple. My guess is to avoid excess API calls, which is frustrating since other companies deal with this by simply limiting the external API calls (see Ecobee for a good example; they only allow 1 API call per minute, or something along those lines.) I was able to (mostly) recreate my Shark automations with Google Home via their website at home.google.com/automations (note that you can't do this in the Android/iOS app) Here's a sample of one of mine:
This is asking Google Assistant via my device "Dining Room Speaker" to simply run a voice command, and it runs on Tuesdays and Thursdays at 11:00am. I built it using the Gemini assistant built into the site. I may, however, actually end up adjusting my exiting Home Assistant automations so that instead of interacting directly with the Shark integration, they will simply ask the Google Assistant integration to run "Start main vacuum in hallway." Then at least Home Assistant is still doing the scheduling, even though it can't tell me the status of the vacuums anymore. |
re latest comment from @craig0r I have reverted to using the Google Home automations as well. They were broken for me early this year which is why I ended up adapting the jeffresc/sharkiq HA integration for my own use. Now that HA auth is broken and I'm back on Google Home automations (which can be scheduled) I see that they only work for one room at a time. I had successfully adapted Jeff's integration to support more than one room per cleaning. I'm not sure why the Google automation can't handle more than one room. Also, Alexa automations apparently ignore all room-specific commands and just start cleaning. @craig0r you mention Apple as a supported Shark assistant. That's not in Homekit, is it? |
This is all very unfortunate, as I bought two new shark's the week this went down, after integrating my previous shark for the last year without issue. Sucks because I was on the fence with new shark's or Roborocks. It's not ideal, but I did the same with google. Made a bubble-card pop-up with various rooms and commands, and it works pretty good. |
@tombrant I'm not sure, I just assumed Shark works with Apple devices. I don't have one of my own to check. |
Last I checked shark devices only work through apple via app. No homekit, not even siri shortcuts. |
Exact same model/firmware as mine. I also have a SharkIQ on my top floor, V 0.1.9-20211115V6.6.1 o-P3.E3308.22.1-Mar14 2023Lidar2_OM1.1..76Lidar2_OB1.1.13T2.4.026 and it also runs just fine on room-specific Google commands. |
I don't actually use the room commands, I need to clean everything. lol However just to confirm you have rooms labeled correctly in the app. No strange characters or trailing spaces. |
Just for context, on my RV2520AOUS, here’s the version info: App version V1.0.6-20221219V6.6.1 |
The only way I can get shark to work is with Alexa. Unfortunately it is broken with home assistant for me. |
I just tried Alexa and got room-specific cleaning to work, but
Anyone know if there is a workaround for #1 Is Alexa Media player the only or best way to send Alexa voice commands from within Home Assistant? |
Add information about its current status and link to work around within home-assistant/core#123392
I'm having similar issues though I think its on the shark's side. I tried logging out and logging back into the shark app and I'm unable to log in even after changing passwords |
Can you drop a snippet of how you get this to work with alexa media player? everything I try gives me some kind of response like "I don't know how to do that" |
I haven’t tried this with Alexa Mediaplayer inside HA, but here’s the routine syntax I use inside an Alexa routine. Note that I had to shorten the room name to ‘Laundry’ from ‘Laundry Room’ |
I tried with your command for Alexa and Alexa answer me i dont know how to help you |
I just got my shark vacuum in today and was under the impression that it would work with HA. T_T |
Take it back |
Agreed! Black Friday Specials will get you a Roborock Q5 Pro+ for about $300. Got one to replace my Shark... |
Anyone know if this is being address? The authentication error that is... or can we expect HA to drop this integration in the future at this point if the code owners are mia? |
It sounds like a change on the Shark side, nothing that HA can do since the API appears to be restricted. |
Just do what I did... buy a Roborock and sell the Shark. |
Do what I did, just use the Shark app. I would prefer to use HA but the app works fine and not worth the effort and loss of $$ to sell the Shark and get anything else. |
Thanks for the advice. I use google home as my front end devices and shark still integrates just fine with google home as well. I just like it in HA for the dashboard, time since last clean, and a counter to remind me when to clean the filters and empty the docking station. Seems like shark/ninja doesn't want to play nice with others anymore |
The Google Assistant integration is really straightforward on configuration. We aren't going to see a fix to the Shark integration unless Shark decides to make changes to re-allow authentication. That being said, I love my Shark and selling it because the easy integration broke doesn't make sense to me. The functionality is still there, albeit through a slightly different method. You can reference my information above if you want to build it so it triggers on the different areas you specify in the Shark App. The Shark App by itself is fine if you don't want to schedule different rooms, but I also have other automation I kick off when it starts to vacuum. I use the Custom Google Assistant SDK to parse responses regarding the Shark's current state so that I can control music throughout my apartment while the vacuum is running, as well as send notifications to my mobile when it starts and finishes. |
I got my google assistant SDK to send commands from home assistant but I’m not getting any responses back. Only “empty response”. |
Would you mind sharing your automation/config? Curious to see how you’ve
implemented it!
…On Wed, Dec 4, 2024 at 4:09 PM Vaeron ***@***.***> wrote:
The Google Assistant integration is really straightforward on
configuration. We aren't going to see a fix to the Shark integration unless
Shark decides to make changes to re-allow authentication.
That being said, I love my Shark and selling it because the easy
integration broke doesn't make sense to me. The functionality is still
there, albeit through a slightly different method. You can reference my
information above if you want to build it so it triggers on the different
areas you specify in the Shark App.
The Shark App by itself is fine if you don't want to schedule different
rooms, but I also have other automation I kick off when it starts to
vacuum. I use the Custom Google Assistant SDK to parse responses regarding
the Shark's current state so that I can control music throughout my
apartment while the vacuum is running, as well as send notifications to my
mobile when it starts and finishes.
—
Reply to this email directly, view it on GitHub
<#123392 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQQCS3MWI7PNYO5V7PZDMR32D5VQJAVCNFSM6AAAAABMHAPEBSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMJYGU3DMMBUGE>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
I ended up moving my automation from HA to Homekit via Homebridge and it seems to be working |
Maybe someone will work out how to simulate the app in HA. I know other integrations do that when there is no accessible API. |
Here's my version. It needs polishing but, it works.
|
I have it written up in the link in my bio. Just finished it a few minutes ago for y'all. |
I have the same issue. When HA reboots or I reload the integration I get the error "failed to setup". I have two shark robots and they are working in the Shark, Google Home and Alexa apps. This issue started about 2 weeks ago. Shark RV2530AWFB & RV2500AFX Home Assistant Core 2024.12.1 |
The problem
Receiving an error while loading the Shark IQ integration after updating to 2024.8.0:
I have verified my login works through the sharkclean.com website.
What version of Home Assistant Core has the issue?
core-2024.8.0
What was the last working version of Home Assistant Core?
core-2024.7.4
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Shark IQ
Link to integration documentation on our website
https://www.home-assistant.io/integrations/sharkiq
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
No response
The text was updated successfully, but these errors were encountered: