persandstrom / python-verisure

A python module for reading and changing status of verisure devices through verisure app api.
MIT License
134 stars 42 forks source link

Authentication issue for UK installation #119

Closed bazwilliams closed 2 years ago

bazwilliams commented 4 years ago

We've recently had a Verisure alarm installed in the UK. If I attempt to login using the same credentials required for the mobile app (My Verisure) I receive the following error:

Traceback (most recent call last):
  File "/Users/barry/Projects/venv/bin/vsure", line 11, in <module>
    load_entry_point('vsure==1.5.4', 'console_scripts', 'vsure')()
  File "/Users/barry/Projects/venv/lib/python3.7/site-packages/verisure/__main__.py", line 214, in main
    session.login()
  File "/Users/barry/Projects/venv/lib/python3.7/site-packages/verisure/session.py", line 90, in login
    self._create_cookie()
  File "/Users/barry/Projects/venv/lib/python3.7/site-packages/verisure/session.py", line 120, in _create_cookie
    raise ResponseError(response.status_code, response.text)
verisure.session.ResponseError: Invalid response, status code: 401 - Data: {"errorGroup":"UNAUTHORIZED","errorCode":"AUT_00004","errorMessage":"Invalid username/password/authentication method combination"}

I've tried with my email address and also with a secondary user account created within the app. I suspect the 'My Verisure' app is unfortunately using a different API.

persandstrom commented 4 years ago

I know that the script does not work for all regions, like Spain, that could be that case with UK as well. As you say, there seem to be one verisure API, and a securitas API.

j-vizcaino commented 3 years ago

Stumbled upon this today as well, trying to get the Verisure integration working with Home Assistant. At least for french customers, the site does not use the verisure.com endpoint but some securitasdirect.fr endpoint.

bazwilliams commented 3 years ago

This version might work https://github.com/segalion/securitasdirect it seems verisure have a few different backend systems.

nckslater commented 3 years ago

I live in Spain and use the Verisure app. Thanks for this integration. I have the alarm panel working perfectly. Is there any plans to add the various sensors and cameras? Thanks