core: Error setting up entry Total Connect

The problem

The Total Connect integration is no longer working as of today. No system updates were made since it worked last. It stopped working overnight. I tried re-start and re-boot to no avail. Service (TotalConnect - Resideo - https://status.resideo.com/ ) itself appears to be up but integration fails. I am able to use their mobile app to arm/disarm system fine but not via HA.

Logger: homeassistant.config_entries Source: config_entries.py:640 First occurred: 6:17:11 AM (2 occurrences) Last logged: 7:46:46 AM

Error setting up entry Total Connect for totalconnect Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 640, in __async_setup_with_context result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/usr/src/homeassistant/homeassistant/components/totalconnect/init.py”, line 36, in async_setup_entry client = await hass.async_add_executor_job( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TotalConnectClient, username, password, usercodes, bypass ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File “/usr/local/lib/python3.13/concurrent/futures/thread.py”, line 59, in run result = self.fn(*self.args, **self.kwargs) File “/usr/local/lib/python3.13/site-packages/total_connect_client/client.py”, line 96, in init self.authenticate() ~~~~~~~~~~~~~~~~~^^ File “/usr/local/lib/python3.13/site-packages/total_connect_client/client.py”, line 296, in authenticate response = self.request( operation_name, (self.username, self.password, self.API_APP_ID, self.API_APP_VERSION), ) File “/usr/local/lib/python3.13/site-packages/total_connect_client/client.py”, line 235, in request self._raise_for_retry(response) ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^ File “/usr/local/lib/python3.13/site-packages/total_connect_client/client.py”, line 157, in _raise_for_retry rc = _ResultCode.from_response(response) File “/usr/local/lib/python3.13/site-packages/total_connect_client/const.py”, line 154, in from_response raise ServiceUnavailable(f"Server returned empty response, check server status at {STATUS_URL}") from None total_connect_client.exceptions.ServiceUnavailable: Server returned empty response, check server status at https://status.resideo.com/

What version of Home Assistant Core has the issue?

core-2025.1.3

What was the last working version of Home Assistant Core?

core-2025.1.3

What type of installation are you running?

Home Assistant OS

Integration causing the issue

TotalConnect

Link to integration documentation on our website

https://www.home-assistant.io/integrations/totalconnect/

Diagnostics information

Logger: homeassistant.config_entries Source: config_entries.py:640 First occurred: 6:17:11 AM (2 occurrences) Last logged: 7:46:46 AM

Error setting up entry Total Connect for totalconnect Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 640, in __async_setup_with_context result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/usr/src/homeassistant/homeassistant/components/totalconnect/init.py”, line 36, in async_setup_entry client = await hass.async_add_executor_job( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TotalConnectClient, username, password, usercodes, bypass ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File “/usr/local/lib/python3.13/concurrent/futures/thread.py”, line 59, in run result = self.fn(*self.args, **self.kwargs) File “/usr/local/lib/python3.13/site-packages/total_connect_client/client.py”, line 96, in init self.authenticate() ~~~~~~~~~~~~~~~~~^^ File “/usr/local/lib/python3.13/site-packages/total_connect_client/client.py”, line 296, in authenticate response = self.request( operation_name, (self.username, self.password, self.API_APP_ID, self.API_APP_VERSION), ) File “/usr/local/lib/python3.13/site-packages/total_connect_client/client.py”, line 235, in request self._raise_for_retry(response) ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^ File “/usr/local/lib/python3.13/site-packages/total_connect_client/client.py”, line 157, in _raise_for_retry rc = _ResultCode.from_response(response) File “/usr/local/lib/python3.13/site-packages/total_connect_client/const.py”, line 154, in from_response raise ServiceUnavailable(f"Server returned empty response, check server status at {STATUS_URL}") from None total_connect_client.exceptions.ServiceUnavailable: Server returned empty response, check server status at https://status.resideo.com/

Example YAML snippet


Anything in the logs that might be useful for us?


Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 8
  • Comments: 114 (17 by maintainers)

Most upvoted comments

We’ll need to wait for the next Home Assistant update that includes the “pull request” above. This is hopefully version 2025.2. When the new version is released, there should be a note about this fix in the Release Notes.

When Home Assistant restarts following that update (if I did things right) everything should be working as normal with no other action required.

Tuesday night update:

  • I made a few minor changes in total_connect_client that helped make things easier in the tests in HA. Latest version is now 2025.1.4
  • The tests are now updated and it’s working on my development system, and with my real alarm. A pull request is submitted and awaiting review.
  • The HA core team has been talking with me directly and offering lots of help, so I imagine they will quickly review and approve the request (assuming I got things right).
  • I’m hoping the update that fixes this is easy - if you run into trouble please file a new issue.
  • We’ll be working update the rest of the code to the new API, though hopefully not on an emergency schedule like the last few days. Assuming we can stay ahead of any further changes on the Resideo side, that should be mostly transparent to HA users.
  • In various comments above there are a few points about things not directly related to the authentication problem. Please feel free to drop feature requests in as issues at https://github.com/craigjmidwinter/total-connect-client . Any new features have to be added there first, then put into HA.
  • Hopefully this is the last update for this problem. Thanks again to everyone who contributed, either with code or contacting their alarm companies.

Here’s the status as of Monday night.

Summary: Resideo seems to be turning off pieces of the old SOAP API (which we currently use) in favor a new API. We have to adapt all of our code accordingly. We have a working fix that I hope to have in Home Assistant in the coming days. However, depending on how quickly other pieces of the old API are turned off, other issues may pop up as we race to change all of the code to the new API.

Details:

  • Someone in the TotalConnect team at Resideo responded to my email, but they pushed the issue to others and are awaiting their response. Hopefully we’ll hear from them soon.
  • Thanks to the efforts of @thor0215 and @db3000 and help from some others, we discovered that the new API provided by Resideo allows us to log in and operate alarms.
  • A basic fix is in place in total_connect_client version 2025.1.3 which is available on pypi. While the code is working, we don’t have thorough or long term testing, so this “hot fix” likely has some hidden problems. I can see panel status and arm and disarm the system from my development environment of Home Assistant.
  • I’m still working to get the new code pulled into Home Assistant so a simple update will fix the problem. The new code requires some updates to our automatic testing regime which is taking me a bit longer than I wanted. I hope to have an update pushed into Home Assistant soon, maybe Tuesday.
  • Once an update is pulled into Home Assistant (either a version 2025.1.5 or 2025.2) users would just need to update and restart, and then it should work.
  • Brave souls could manually install the new version of total_connect_client in their Home Assistant. If you know how to do that, it would be great to have some beta testers trying to find any issues. I’m purposely not explaining that here, because it will definitely break your warranty.
  • We hypothesize this whole issue is because Resideo is deprecating pieces of the old SOAP API in favor of the new API. Hopefully communication with Resideo will confirm this, or tell us what is actually going on.
  • Assuming our hypothesis is correct, Resideo may be in the process of deprecating other pieces we have not yet discovered, so other things may be broken or break in the near future.
  • We will move as quickly as we can to transition to fully transition to the new API. We will have to balance going fast against taking the time for thorough testing.

I plan to post another update Tuesday night.

I am the integration owner for the totalconnect integration in Home Assistant, and I maintain the underlying total_connect_client used to talk with the TotalConnect 2.0 API.

As @thor0215 noted above, and I verified, the server is providing empty responses to all queries at the moment. This is a server problem, and has nothing to do with upgrading Home Assistant to 2025.1.x.

When a user logs in, the API requires an ApplicationID be provided. It is possible they have decided to block our ID. However, I would not jump to that conclusion yet. I think it’s more likely there is some weird server error that is not denying their main TotalConnect website/app, and they just haven’t seen the problem yet. In the past we’ve seen the server status page show green, yet this integration was not working.

Resideo/Honeywell’s business model is to sell alarms to third party installers (your alarm company). They don’t want to communicate with or support users directly. All of their documentation essentially says ‘contact your installer for help’. Folks could try to talk with Resideo/Honeywell. One address I have found for them is developerinfo@resideo.com but in the past they have not responded to me. They have a contact page, and various social media handles HoneywellHome Twitter/X, Resideo Twitter/X, HoneywellHome Facebook, Resideo Facebook which is another way to try. There is also a Homeowner support # 1-800-633-3991

I tried their online support chat earlier and got this:

“All of the security panels/systems along the TC2.0 app are not supported by this channel. These are only sold, installed and supported, by professional security providers/installers. For technical information, account management or general documentation, you can use our tool: https://www.resideo.com/us/en/find-a-pro/ To find a local security provider/installer that carries/services and supports this products.”

Complaining to your alarm company is another option. Changing alarm monitoring service will not fix this - though threatening to do so might motivate your current company to talk with Resideo.

It’s a relatively minor thing, but it would also help to enable Analytics on your Home Assistant to help boost our numbers. Right now we only show 265 active users on the analytics page.

@austinmroczek - Cannot thank you enough. This integration is crucial to some of my automations and how I have things setup. Do you have a “buy me a coffee link?” I tried to find one for you but couldn’t.

Not that it matters, but for what it is worth, this is the response I got from AlarmGrid:

Hello Daniel,

Resideo has been made aware of this issue and have reported it to engineering. They are currently investigating and working towards resolving this issue.

We will provide an update once we have more information to share.

Thank you!

@brownbloodspider thanks for the contacts. I have sent a detailed email describing the problem and asking how we can help restore service. I hope we’ll get feedback soon.

I will be disconnected most of Sunday and Monday. I will not be able to post an update until very late Monday night.

Considering it worked initially on v2025.1.3, and it went down for all of us at about the same time, and considering it works fine with Alexa, could it be that Resideo is blocking API calls from unknown (non-AWS/Alexa) IP addresses? If they use the same API? Hopefully they didn’t do what MyQ did and cut us off. BTW, I just upgraded to v2025.1.4, and no change. TotalConnect is still down. I hope this is fixable. I have a lot of automations that are based on the state of the security system.

Glad it’s working. Thanks everyone. If you run into problems in the future please create an Issue.

The fix works in 2025.2 beta 3

This is the PR for the fix in HA Core, you can follow it to see when it gets merged

https://github.com/home-assistant/core/pull/136793

looks like there are a few changes requested

Thanks to @austinmroczek and the other developers for all their work on this integration! Much appreciated.

Wouldn’t konnected be the alternative? I’ve been looking at it but don’t know if the integration kit would work …

I had no idea this existed! This might be exactly what I’ve been wanting so thank you for bringing this up.

Good tip! I sent this thru the TC2.0 Feedback link: "Are there any recent changes to restrict the TC2.0 API to limit 3rd party applications? I have been using Home Assistant with TC2.0 for a long time now, and I, along with several hundred home automation enthusiasts, are locked out and trying to figure out what happened.

If a change was made to TC2.0 to prevent Home Assistant from connecting to the TC2.0 API, please communicate this."

At this point, the biggest thing we need is open communication with Resideo/Honeywell, specifically whoever manages TotalConnect 2.0. Even if the answers they give aren’t what we want (i.e. they are purposely blocking us), it would be better than guessing what’s happening on the server end.

If folks are willing to try to contact Resideo, or their alarm company, please ask them to reach out to me. My discord is austinm6748 and email is austin@mroczek.org

I sent the following to my alarm company.

I have monthly AlarmNet / TotalConnect service with account #########. One of the reasons I use your service is because I could use TotalConnect to tie my alarm into my home automation system called Home Assistant (https://www.home-assistant.io/). However, there seems to be a problem with the TotalConnect servers that is preventing use with Home Assistant. See https://github.com/home-assistant/core/issues/136340

I contacted Resideo / TotalConnect but all they would tell me is:

"All of the security panels/systems along the TC2.0 app are not supported by this channel. These are only sold, installed and supported, by professional security providers/installers. For technical information, account management or general documentation, you can use our tool: https://www.resideo.com/us/en/find-a-pro/ To find a local security provider/installer that carries/services and supports this products.”

Thank you

Almost sounds like a single well written email that we can all send to our providers would make sense in this type of scenario. Most of our providers will not have any clue what we are even talking about, so something that explains the issue with technical support that can be sent in writing would be the way to go. I don’t have the technical understanding of the issue to explain it, but happy to help anyway I can. This integration has been the primary reason I have been using home assistant!

Personally when my installers came in they had no idea how I was doing what I was doing when I showed them I already had Total Connect in HomeKit before it was supported. In fact, the last “tech” I had out for an unrelated issue didn’t even know about the homekit integration (my original panel failed and had to be replaced).

I suppose if enough monitoring companies report that they are losing customers due to a loss of HA connectivity to TC2.0, Honeywell Resido may fix the issue.

I would think that Nabu Casa would take action and advise us if loss of connectivity is due to a fee dispute or something else.

Nabu Casa seeks fee-free services on our behalf, but have been unsuccessful with MyQ and others, which devalues HA and TC2.0 for us automation enthusiasts.

Personally, a loss of TC2.0 connectivity leaves a big hole in my HA.

@austinmroczek Not sure if this helps, but tracing the web interface, this is roughly how the authentication works. If I had more time I might be able to figure out how to grab the appid and locale using jsonpath. This script will get the session id which I hope can then be used for the other SOAP calls

from Crypto.PublicKey import RSA
from Crypto.Cipher import  PKCS1_v1_5
from jsonpath_ng import jsonpath, parse
import base64
import requests
import jwt


def encrypt_message(message, public_key_pem):
    """Encrypts a message using a public key from a PEM file."""

    # Load the public key from the PEM file
    public_key = RSA.importKey(public_key_pem)

    # Create a cipher object using PKCS1_OAEP padding
    cipher = PKCS1_v1_5.new(public_key)

    # Encrypt the message
    encrypted_message = cipher.encrypt(message.encode())

    # Encode the encrypted message in base64 for safe transmission
    encoded_message = base64.b64encode(encrypted_message).decode()

    return encoded_message

if __name__ == "__main__":

    response = requests.get('https://totalconnect2.com/application.config.json')

    if response.ok:
        config_json = response.json()
        public_key = config_json["AppConfig"][0]["tc2APIKey"]
        client_id = config_json["AppConfig"][0]["tc2ClientId"]
        #jsonpath_expr = parse('$..langCulture[?(@.LanguageCulture=="en")]')
        locale = 'en-US'
        #jsonpath_expr = parse("$..brandInfo[?(@.BrandName=='totalconnect')].AppID")
        appid = 16808
        

    public_key_pem = '-----BEGIN PUBLIC KEY-----\n' + public_key + '\n-----END PUBLIC KEY-----'

    username = "username"
    encrypted_username = encrypt_message(username, public_key_pem)

    password = "password"
    encrypted_password = encrypt_message(password, public_key_pem)

    data = {
        'username': encrypted_username,
        'password': encrypted_password,
        'grant_type': 'password',
        'client_id': client_id,
        'locale': locale,
    }


    response = requests.post(
        url='https://rs.alarmnet.com/TC2API.Auth/token',
        data=data
    )

    if response.ok:
        response_json = response.json()
        if 'access_token' in response_json:
            jwt_token = jwt.decode(response_json['access_token'], algorithms="HS256", options={"verify_signature": False})
            ids = jwt_token["ids"]
            session_id = ids.split(';',1)[0]


    print(session_id)

    data = f'<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><GetSessionDetails xmlns="https://services.alarmnet.com/TC2/"><SessionID>{session_id}</SessionID><ApplicationID>{appid}</ApplicationID><ApplicationVersion>3.40.1.34</ApplicationVersion></GetSessionDetails></soap:Body></soap:Envelope>'
    
    response = requests.post(
        url='https://rs.alarmnet.com/TC21API/TC2.asmx',
        data=data,
        headers={
            'Content-Type': 'text/xml; charset=utf-8',
            'SOAPAction': 'https://services.alarmnet.com/TC2/GetSessionDetails',
        }
    )

    if response.ok:
        print(response.text)

Thank you for the update @austinmroczek . Wouldn’t a server-side issue on the API also impact Alexa? I appreciate all your efforts on this, but it has the same feel as when we were locked out of MyQ and Life360. So disappointing that companies do this to their customers. I spent so much time creating complex automations based on the state of the security system, as I’m sure many others did. I’ll keep my fingers crossed that it gets resolved.

It’s a relatively minor thing, but it would also help to enable Analytics on your Home Assistant to help boost our numbers. Right now we only show 265 active users on the analytics page.

Done. It looks like we need to have at least Usage analytics to report which integrations we are using.

I instinctually disable/don’t allow analytics when I set up systems. But reading up on HA’s analytics, I’m impressed by how open it is about the data it collects.

Will investigate as soon as possible. This seems like similar website/API problems in the past