core: Verisure intergration no longer working with HomeKit
The problem
I can no longer operate my alarm from HomeKit. Any action to arm or disarm it results in an error in the Home Assistant log.
Performing the same action from within Home Assistant itself with the Verisure alarm panel does work.
What is version of Home Assistant Core has the issue?
core-2021.4.2
What was the last working version of Home Assistant Core?
core-2021.3.4
What type of installation are you running?
Home Assistant Supervised
Integration causing the issue
Verisure
Link to integration documentation on our website
https://www.home-assistant.io/integrations/verisure/
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Logger: homeassistant.core
Source: components/verisure/alarm_control_panel.py:83
First occurred: 12:14:43 AM (1 occurrences)
Last logged: 12:14:43 AM
Error executing service: <ServiceCall alarm_control_panel.alarm_disarm (c:05ffab8fb64122886e0f881a674736b3): entity_id=['alarm_control_panel.verisure_alarm']>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/core.py", line 1496, in catch_exceptions
await coro_or_task
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/verisure/alarm_control_panel.py", line 99, in async_alarm_disarm
await self._async_set_arm_state("DISARMED", code)
File "/usr/src/homeassistant/homeassistant/components/verisure/alarm_control_panel.py", line 83, in _async_set_arm_state
arm_state = await self.hass.async_add_executor_job(
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.8/site-packages/verisure/session.py", line 195, in set_arm_state
_validate_response(response)
File "/usr/local/lib/python3.8/site-packages/verisure/session.py", line 16, in _validate_response
raise ResponseError(response.status_code, response.text)
verisure.session.ResponseError: Invalid response, status code: 400 - Data: {"errorGroup":"BAD_REQUEST","errorCode":"VAL_00008","errorMessage":"Invalid or non-existing value for code"}
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 26 (8 by maintainers)
Interesting, I don’t use my Alarm via HomeKit, but will definitely add it to test it out.