core: 0.115 RISCO integration error while trying to disarm partition

The problem

After upgrading to HA 0.115 from 0.114.4 while trying to disarm one partition that is armed (via Risco cloud page) and entering PIN code I get an error

Environment

I am using HASSIO on RPi3

  • Home Assistant Core release with the issue: 0.115
  • Last working Home Assistant Core release (if known): N/A
  • Operating environment (OS/Container/Supervised/Core): HASSIO
  • Integration causing this issue: Risco
  • Link to integration documentation on our website: https://www.home-assistant.io/integrations/risco

Problem-relevant configuration.yaml

Done via UI

Traceback/Error logs

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 137, in handle_call_service
    await hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1315, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1350, in _execute_service
    await handler.func(service_call)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
    await self.hass.helpers.service.entity_service_call(
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 459, in entity_service_call
    future.result()  # pop exception if have
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 655, in async_request_call
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 490, in _handle_entity_call
    await result
  File "/usr/src/homeassistant/homeassistant/components/risco/alarm_control_panel.py", line 144, in async_alarm_disarm
    await self._call_alarm_method("disarm")
  File "/usr/src/homeassistant/homeassistant/components/risco/alarm_control_panel.py", line 178, in _call_alarm_method
    alarm = await getattr(self._risco, method)(self._partition_id, *args)
  File "/usr/local/lib/python3.8/site-packages/pyrisco/risco.py", line 337, in disarm
    return Alarm(await self._site_post(CONTROL_URL, body))
  File "/usr/local/lib/python3.8/site-packages/pyrisco/risco.py", line 264, in _site_post
    return await self._authenticated_post(site_url, site_body)
  File "/usr/local/lib/python3.8/site-packages/pyrisco/risco.py", line 251, in _authenticated_post
    raise OperationError(str(json))
pyrisco.risco.OperationError: {'result': 52, 'validationErrors': None, 'errorText': None, 'errorTextCodeID': '0', 'status': 200, 'response': {'partitions': None, 'systemStatus': 2, 'systemReady': False, 'trouble': False, 'bellStatus': 0, 'alarmPending': False, 'batteryLow': False, 'acLost': False, 'haEnabled': False, 'bellOn': False, 'zones': None, 'haDevices': None, 'users': None, 'devCollection': None, 'exitDelayTimeout': 0, 'armNotAllowed': False, 'disarmNotAllowed': False, 'cpTime': '2020-09-18T09:11:25.8136935+00:00', 'partReadySupported': False, 'partFullReady': False, 'part1Ready': False, 'part2Ready': False, 'type': 5}}

Additional information

Armin and disarming partition via HA works just fine although if I enter wrong PIN and use glance card I don’t get any error…

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 17 (5 by maintainers)

Most upvoted comments

maybe better to put this in documentation?