python-verisure: Errors in verisure :(

I have HomeAssistant 0.55.2

I config verisure: verisure: username: !secret verisure_username password: !secret verisure_password

And get this errors

2017-10-17 20:14:54 ERROR (MainThread) [homeassistant.setup] Error during setup of component verisure
Traceback (most recent call last):
  File "/usr/src/app/homeassistant/setup.py", line 194, in _async_setup_component
    component.setup, hass, processed_config)
  File "/usr/local/lib/python3.6/asyncio/futures.py", line 332, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/local/lib/python3.6/asyncio/tasks.py", line 250, in _wakeup
    future.result()
  File "/usr/local/lib/python3.6/asyncio/futures.py", line 245, in result
    raise self._exception
  File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/app/homeassistant/components/verisure.py", line 69, in setup
    if not HUB.login():
  File "/usr/src/app/homeassistant/components/verisure.py", line 119, in login
    self.session.login()
  File "/usr/local/lib/python3.6/site-packages/verisure/session.py", line 90, in login
    self._vid = json.loads(response.text)['cookie']
KeyError: 'cookie'

Any idea? Im from spain thanks!

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 19 (3 by maintainers)

Most upvoted comments

Thanks @efpe, I finally managed to sniff the traffic with an iPhone. They do certificate pinning in Android, but they trust the user installed CAs on IOS …

@titoudoc I’ve created an API Client for the Spanish accounts (might work with others that use the same API system):

https://github.com/Cebeerre/VerisureAPIClient