Alarm.com Authentication Error [SOLVED]

Just upgraded to 2025.4.3 and no longer able to utilize Alarm.com integration. Others showing similar issue(s) / GitHub issue created here: Unable to sign in to Alarm.com · Issue #440 · pyalarmdotcom/alarmdotcom · GitHub

Logger: pyalarmdotcomajax
Source: /usr/local/lib/python3.13/site-packages/pyalarmdotcomajax/__init__.py:583
First occurred: 11:22:21 AM (2 occurrences)
Last logged: 11:31:51 AM

pyalarmdotcomajax _async_get_identity_info: Failed to get user's identity info.
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/pyalarmdotcomajax/__init__.py", line 573, in async_login
    self._provider_name = json_rsp["data"][0]["attributes"]["logoName"]
                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
KeyError: 'logoName'

and

This error originated from a custom integration.

Logger: custom_components.alarmdotcom.config_flow
Source: custom_components/alarmdotcom/config_flow.py:102
integration: Alarm.com (documentation, issues)
First occurred: 11:31:51 AM (1 occurrences)
Last logged: 11:31:51 AM

custom_components.alarmdotcom.config_flow: user login failed with AuthenticationFailed exception.
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/pyalarmdotcomajax/__init__.py", line 573, in async_login
    self._provider_name = json_rsp["data"][0]["attributes"]["logoName"]
                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
KeyError: 'logoName'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/config/custom_components/alarmdotcom/controller.py", line 141, in initialize_lite
    await self.api.async_login()
  File "/usr/local/lib/python3.13/site-packages/pyalarmdotcomajax/__init__.py", line 587, in async_login
    raise AuthenticationFailed from err
pyalarmdotcomajax.exceptions.AuthenticationFailed

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/config/custom_components/alarmdotcom/config_flow.py", line 102, in async_step_user
    await self._controller.initialize_lite(
    ...<3 lines>...
    )
  File "/config/custom_components/alarmdotcom/controller.py", line 147, in initialize_lite
    raise ConfigEntryAuthFailed from err
homeassistant.exceptions.ConfigEntryAuthFailed
1 Like

Found this in init.py around line 574, not sure if it’s related:

        try:    
            self._user_id = json_rsp["data"][0]["id"]    
            self._provider_name = json_rsp["data"][0]["attributes"]["logoName"] 
            self._provider_name = json_rsp["data"][0]["attributes"]["logoName"] 
                                                                                

Odd that this logoName line is repeated, and I’m not sure if the attribute is named correctly.

Yes, appreciate the input. The GitHub link above has a fix for the ‘issue’ - though I’m personally on HAOS and makes it much harder to find/edit the file.

Alarm.com Authentication Error

I am a newbie to HA, and you fine people are talking over my head with this code.

I had Alarm.com working by installing HACS. With a recent update, HA Alarm.com asked me to log in. Well, it fails. I cannot do 2FA, and I cannot remove 2FA from Alarm.com since it is required now.

Kindly in language I can understand, is it broken and no fix for Alarm.com with HA?

If not, since I used the GUI and not code. How do I log in now with 2FA required?

Thx

1 Like

Im having the same issue. Im afraid to delete the intergration to see if it works as i have automations and everything already set up.

Do not delete it…not an integration issue, just an update is needed, and we are waiting for the HACS Alarm.com installed

Welcome!!!

UPDATE. @elahd was able to update the code and an update has been pushed out. Ensure your HACS version of Alarm.com is at least 3.0.14 (latest currently) and this issue should be fixed.

1 Like