Can't Arm/Disarm Total Connect

Hi,

I’m pretty noob with HomeAssistant.

I run it with docker. I tried to install Total Connect integration. Setup my username and password but I have these errors

2020-06-21 02:37:01 WARNING (SyncWorker_8) [root] total-connect-client unknown result code -4106 with message: Invalid user code. Please try again..
2020-06-21 02:37:02 ERROR (SyncWorker_8) [root] Could not disarm system. ResultCode: -4106. ResultData: Invalid user code. Please try again.
2020-06-21 02:37:02 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.140434109253008] TotalConnect failed to disarm MONTREAL.
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 130, in handle_call_service
    connection.context(msg),
  File "/usr/src/homeassistant/homeassistant/core.py", line 1260, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1295, in _execute_service
    await handler.func(service_call)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 209, in handle_service
    self._platforms.values(), func, call, required_features
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 454, in entity_service_call
    future.result()  # pop exception if have
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 597, in async_request_call
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 485, in _handle_entity_call
    await result
  File "/usr/src/homeassistant/homeassistant/components/alarm_control_panel/__init__.py", line 128, in async_alarm_disarm
    await self.hass.async_add_executor_job(self.alarm_disarm, code)
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/totalconnect/alarm_control_panel.py", line 119, in alarm_disarm
    raise HomeAssistantError(f"TotalConnect failed to disarm {self._name}.")
homeassistant.exceptions.HomeAssistantError: TotalConnect failed to disarm MONTREAL.

Also, I installed xmlsec-dev libxml2-dev in the docker.

Could you help me ?

Hey tegoa and welcome to the forum :slight_smile:

Did you create a seperate account on Total Connect for Home Assistant?
How did you set it up? Via the User Interface or manually in YAML?

Create a seperate user in Total Connect and try a password with a length of 16 and only alphanumeric letters, if that works, try increasing the password security.

Hi Thanks for the answer.

I tries to configure with both options. UI or CLI.

I tried with the password set with 16 characters but we have to put 1 non-alphanumeric.

So after that, it’s still not working :frowning:

Resolved in https://github.com/craigjmidwinter/total-connect-client/issues/85

Did the problem return for you after doing any updates? I’m getting the same series of errors since I started running on Home assistant back to version 0.117 and have never been able to get Total Connect to arm/disarm via home assistant. I updated to version 2020.12.6 today and still getting hung up on the usercode.

Logger: root
Source: /usr/local/lib/python3.8/site-packages/total_connect_client/TotalConnectClient.py:406
First occurred: 11:22:57 PM (1 occurrences)
Last logged: 11:22:57 PM

Could not disarm system. ResultCode: -4114. ResultData: System User Code not available/invalid in Database

@fistowutini this will be fixed in https://github.com/home-assistant/core/pull/39199

Looks like the update is working now. I did have to delete and re-add my TotalConnect integration to get the arm/disarm working. Thanks for the help! :slight_smile:

Hi All, I just started using HA. I’ve successfully added Total Connect. I can see all my sensors and it right away switches the current state when I arm and dissarm from the Honeywell panel. I am unable to arm /disarm through HA. When I click to arm It just shows the arming yellow icon and nothing happens. when I try to disarm I get an error log. Not sure how to troubleshoot this
Logger: homeassistant.components.websocket_api.http.connection
Source: components/totalconnect/alarm_control_panel.py:117
Integration: Home Assistant WebSocket API (documentation, issues)

Logger: homeassistant.components.websocket_api.http.connection
Source: components/totalconnect/alarm_control_panel.py:117
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 4:14:33 PM (3 occurrences)
Last logged: 4:15:19 PM

[139844112848544] TotalConnect failed to disarm House.
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 143, in handle_call_service
    await hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1480, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1515, in _execute_service
    await handler.job.target(service_call)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 206, in handle_service
    await self.hass.helpers.service.entity_service_call(
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 649, in entity_service_call
    future.result()  # pop exception if have
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 692, in async_request_call
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 686, in _handle_entity_call
    await result
  File "/usr/src/homeassistant/homeassistant/components/alarm_control_panel/__init__.py", line 129, in async_alarm_disarm
    await self.hass.async_add_executor_job(self.alarm_disarm, code)
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/totalconnect/alarm_control_panel.py", line 117, in alarm_disarm
    raise HomeAssistantError(f"TotalConnect failed to disarm {self._name}.")
homeassistant.exceptions.HomeAssistantError: TotalConnect failed to disarm House.
Logger: homeassistant.components.websocket_api.http.connection
Source: components/totalconnect/alarm_control_panel.py:117
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 4:14:33 PM (3 occurrences)
Last logged: 4:15:19 PM

[139844112848544] TotalConnect failed to disarm House.
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 143, in handle_call_service
    await hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1480, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1515, in _execute_service
    await handler.job.target(service_call)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 206, in handle_service
    await self.hass.helpers.service.entity_service_call(
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 649, in entity_service_call
    future.result()  # pop exception if have
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 692, in async_request_call
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 686, in _handle_entity_call
    await result
  File "/usr/src/homeassistant/homeassistant/components/alarm_control_panel/__init__.py", line 129, in async_alarm_disarm
    await self.hass.async_add_executor_job(self.alarm_disarm, code)
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/totalconnect/alarm_control_panel.py", line 117, in alarm_disarm
    raise HomeAssistantError(f"TotalConnect failed to disarm {self._name}.")
homeassistant.exceptions.HomeAssistantError: TotalConnect failed to disarm House.