Alarm.com List Index Out of Range

This morning when I logged into HA my Alarm Control Panel was not responding. When I restarted HA I got an “Entity Not Available” when I looked into the logs I received the following.

Log Details (ERROR)
Mon Feb 10 2020 07:57:32 GMT-0600 (Central Standard Time)
Error while setting up alarmdotcom platform for alarm_control_panel
Traceback (most recent call last):
File “/usr/local/lib/python3.7/site-packages/pyalarmdotcom/pyalarmdotcom.py”, line 188, in async_login
self.state = tree.select(self.ALARM_STATE)[0].get_text()
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 159, in _async_setup_platform
await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
File “/usr/local/lib/python3.7/asyncio/tasks.py”, line 442, in wait_for
return fut.result()
File “/usr/src/homeassistant/homeassistant/components/alarmdotcom/alarm_control_panel.py”, line 48, in async_setup_platform
await alarmdotcom.async_login()
File “/usr/src/homeassistant/homeassistant/components/alarmdotcom/alarm_control_panel.py”, line 70, in async_login
await self._alarm.async_login()
File “/usr/local/lib/python3.7/site-packages/pyalarmdotcom/pyalarmdotcom.py”, line 197, in async_login
‘#{}’.format(self.ERROR_CONTROL))[0].attrs.get(‘value’)
IndexError: list index out of range

I’m getting exactly the same error, also starting this morning. I posted about it here:

Ditto. Same issue on 105.2

I’m having the same problem. It started this morning. Didn’t notice it until after upgrading to 105.2 this morning, but that’s not to say it hadn’t been acting up prior.

Any way to check if the alarm.com API is down?

I looked through the pyalarm.com code. I believe they scrape alarm.com PDA to run this integration. It wasn’t an official api. Maybe the site has changed or Alarm.com has caught on.

Link to issue in Github:

Same issue here on 104.3

Same issue here…looks like there was a similar problem a couple years ago…

Seems to be working again - strange

Yep. Mine is working again too.

I’m back up too. Awesome.

Not working here.

For those who are working again, are you subscribers directly through alarm.com or do you have alarm.com through other providers? In my case, my alarm.com account comes through a subscription with ADT.

Through a subscription.

Different provider for me

Rebooted HA. It’s working now.

I have alarm.com through Protection1

I’m using Frontpoint which is an alarm.com provider. Once I rebooted HA yesterday it’s been back up and running since.

Has this been resolved for everyone? starting this morning, I am encountering the same issue.

Yep I’m encountering the same thing again this morning. Hopefully it’ll get resolved through the day like it did last time?

I’m also getting this error today. Fingers crossed it gets resolved soon.