Securitas Direct (Verisure EU) Custom Component [TESTERS WANTED]

I confirm the fix works

can you send me the fie file correct please??
thanks in advanced

After @Marco_Elgordo confirmation and a few days in my HA working fine I have made the changes in GitHub for @segalion to review and accept. If he agrees he can consolidate the change in the master Branch.

I canā€™t go to the bed if I cannot ask Alexa to connect my alarm :laughing: :laughing: :laughing:

Sorry about delay on support. @jimenbar, I am going to try to accept PR from mobile. I canā€™t test it, but I suppose it work fine. Thanks for your effort fixing it.

Successfully merged.

Thank you, is working!

Planning to integrate sensors and cameras ?

1 Like

Iā€™ve only small programming experience but to be helpful in this really good project I can confirm the panel is working for Italy; Iā€™ve installed right now and tested. I would also really like to have the possibility to have sensors and cameras as @Vartkat as home assistant entities. Hope to be a tester of these additions soon :slight_smile: It would really be an incredibile solution!!

Hello,

Thank you for this great job ! Iā€™m a french customer facing some issues ā€¦ Here they are

Fri Jan 03 2020 20:57:54 GMT+0100 (heure normale dā€™Europe centrale)
Error during setup of component securitas_direct
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 176, in _async_setup_component
    component.setup, hass, processed_config  # type: ignore
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/securitas_direct/__init__.py", line 64, in setup
    HUB.update_overview()
  File "/usr/src/homeassistant/homeassistant/util/__init__.py", line 240, in wrapper
    result = method(*args, **kwargs)
  File "/config/custom_components/securitas_direct/__init__.py", line 107, in update_overview
    self.overview = self.session.last_state()
  File "/config/custom_components/securitas_direct/securitas.py", line 114, in last_state
    if reg['@type'] in filter:
TypeError: string indices must be integers

Any suggestion?

Paste the configuration Yamil related lines, issue may come from there

securitas_direct:
  username: ********
  password: *******
  code: 1234
  country: FR

End thatā€™s all ā€¦

@ardnas33, not sure whar your problem can be. Have you made step #4 of the install process (Enable track of all your remotes and keys (on mobile app), to get good sync between real Securitas Alarm and the HA alarm component). Once you had done that you should connect and disconnect your alarm using one of your controls. That action should create readable actions for the component to work. It looks like the component is not being able to read any valid status for your alarm.

The fact is that the manual script works like a charm ā€¦

Before installing the new HA version 0.103.6 I made a configuration check against this HA new relaese and I got the following error:

Failed config
General Errors:
- Component error: securitas_direct - No module named ā€˜xmltodictā€™

Any idea about it?

I used to install this module manually with pip

1 Like

Whats the upside of using this insted of the official Verisure component?

@Vennerberg The official Verisure component is not working for some countries (e.g. Italy).

Seems like this component is not working in Sweden? I have tried but get error message ā€œuser does not existā€ in the home-assistant.log file.

Hi,
i did the testing this weekend. Took the latest version of the code from github, put it correctly in the custom component folder and added this to the configuration:

securitas_direct:
  username: !secret alarmuser
  password: !secret alarmpw
  code: 1234
  country: ES

user and password are the same as I use in the mobile app or the website and they work. I am only confused about the codeā€¦what code should i use?
I also tried without code in the config, but the result is the sameā€¦

I still get authentication error in the homeassistant logā€¦
Anyone has a clue what the right settings should be (I live in Spain)?

Hi,
Iā€™m using it, and seems to work well.
I just have a problem; If I use only HA the state changes, but if I use the manual pannel, I have 2 different states, the real one in the Verisure app (armed) and other in HA (disarmed).
Anyone knows how to solve this situation?