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 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.
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.
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.