New Simplisafe Auth

@kendadk, you shouldn’t necessarily have a second tab be opened up. After 2FA verification, you should still be “stuck” at the SS login page. From there, open Developer Tools (usually the F12 hotkey in most Windows PC browsers, not sure about Apple machines). Then go to the “Console” tab/area and look for a URL that begins with com.simplisafe.mobile. Near the end of the URL, find the value listed after the code variable:

code=<CODE>

The <CODE> value is what you need to copy and paste in the integration’s “Authorization Code” prompt.

When I go to the console the url is
Prevented navigation to “https:// auth.SimpliSafe.com/u/mfa-sms-challenge?state=xxxxxxxxxxxxxxxlongphrase xxxxxxxxxxx”

“Then due to an unknown protocol. There is not a code there .”

1 Like

But you are able to get through Steps 1-3 here?

What browser are you using? I’d suggest trying another. If a browser switch doesn’t work, you could try @iway’s method of opening the Dev Tools > Network tab and trying to find a request to that URL with the code in it instead of checking the Console.

If you go the Network tab route, you’ll probably need the tab open before you submit your 2FA code in order to capture the request URL.

Yes I am Stuck after I submit the Code from the sms i recieve fron SimpliSafe. then in the Console there is no code in the Url I have tried every Known Browser for Windows and also deleted mt App on my phone and used safari no luck with any of them.

1 Like

That’s super frustrating. I wish SimpliSafe would invest the resources in shoring up their API access, but unfortunately we have to all stumble through this as best we can until they do.

Maybe you can attempt the Network tab route. Just make sure the Network tab is open before you complete Step 3. Hopefully that URL is in the network activity list.

1 Like

Finally got thru to get the code from the console in Ms edge browser after over 25 attempts
Thanks for all of the ideas.

1 Like

After messing around for two hours to get a browser which showed me the code, I got it to work.

It lasted about 12 hours and asked me to authenticate again. I did the process again. Let’s see how long it works this time.

How did you find the “Failed” URL? I can’t find any failure other than a “failed to load source map” in console - but with no code. I’m now using Edge, but also tried Chrome.

I follow the steps, but after entering my 6 digit code sent to my phone, it takes me straight into Simplisafe, without an error. I Look in the Console and look in the Network area and I find

new?code=XXXXXXXXXXXXXXXX&state=YYYYYYYYYYYY

I tried using the bit XXXXXXXXXXXX, but with no luck. I have spent hours on this now and would really appreciate any help. I have become so dependant on this integration that I am lost right now :frowning:

I got it!!!

I’m embarrassed to say, but I was doing the very first step wrong.

  1. Opened authorization link in browser from integration Reconfigure popup.

I started there the first time, but when I didn’t know how to get to Developer Tools, I then lost that version and then was trying to log into Simplisafe, not clicking the link. So, follow the steps exactly as outlined above by C64ever

For additional clarity, I used

Windows and Chrome (Developers Tools [F12] and Console)
The code was on this section
Failed to launch ‘com.simplisafe.mobile://auth.simplisafe.com/ios/com.simplisafe.mobile/callback?code=XXXXXXXXXXXXXXXXX’ because the scheme does not have a registered handler.

Thanks all for the amazing tips and support on this tough integration.

1 Like

I can also confirm doing the step from C64ever worked for me. Only difference i had removed the integration completely trying to get it work so i started fresh with adding the integration. Thanks for all the work folks put in to figure this out. Here is to it continuing to work…

1 Like

Thanks @C64ever and others who have helped the community out. I have a docs PR under review to add more info (outside of the Safari-specific use case I had while developing the integration); at the same time, I highly encourage others to step forward and update the docs with info that I might not have!

1 Like

With the new auth, I am able to get it working but seems I need to reauth or rather remove and add the integration every few days. Anyone else having this issue?
Below is the error. I can remove and add with no problem

Logger: homeassistant.config_entries
Source: components/simplisafe/__init__.py:236
First occurred: 9:31:29 AM (1 occurrences)
Last logged: 9:31:29 AM

Error setting up entry 1272282 for simplisafe
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 304, in async_setup
    result = await component.async_setup_entry(hass, self)  # type: ignore
  File "/usr/src/homeassistant/homeassistant/components/simplisafe/__init__.py", line 236, in async_setup_entry
    api = await API.async_from_refresh_token(
  File "/usr/local/lib/python3.9/site-packages/simplipy/api.py", line 159, in async_from_refresh_token
    await api._async_refresh_access_token()
  File "/usr/local/lib/python3.9/site-packages/simplipy/api.py", line 198, in _async_refresh_access_token
    token_resp = await self._async_request(
  File "/usr/local/lib/python3.9/site-packages/simplipy/api.py", line 233, in _async_request
    async with self.session.request(
  File "/usr/local/lib/python3.9/site-packages/aiohttp/client.py", line 1117, in __aenter__
    self._resp = await self._coro
  File "/usr/local/lib/python3.9/site-packages/aiohttp/client.py", line 544, in _request
    await resp.start(conn)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/client_reqrep.py", line 890, in start
    message, payload = await self._protocol.read()  # type: ignore
  File "/usr/local/lib/python3.9/site-packages/aiohttp/streams.py", line 604, in read
    await self._waiter
aiohttp.client_exceptions.ServerDisconnectedError: Server disconnected

What OS and HASS installation method are you using?

Hi,

I’m having some serious issues with Simplisafe and I figured Id ask you.

I went through the authorization method about a month ago with any issue. I use safari and was able to get the authorization code via the network tab in web inspector. Earlier today I update to the latest Hassio OS and needed to once again authorize SimpliSafe. Unfortunately, now whenever I get my authroization code and submit it via Home assistant I get an unknown error. I know Im doing everything correctly, but this time around it will not allow me past this step. Any suggestions would be greatly appreciated.

I am running a raspberry pi, with the standard image.

What do your logs show when this unknown error occurs?

The only errors I see in the logs after trying the authorization code are home config errors. Nothing more.

I attempt the authorization code I pull from the network tab and still just get unknown error but it doesn’t report it?

Make sure you set your log level to DEBUG before you attempt.

I have noticed I can get it to recover after a couple of full system reboots.
But just a standard restart, after a config file change or something will cause it to fail.
But sometimes can take 4 or 5 reboots.


This is the error I receive