Hi,
I am struggling to get the Verisure (alarm) settings to accept my default lock code.
If I manually input the code on the lock-pad and arm the alarm, everything works great. But if I leave out the code (or if I try to arm it from HomeKit or similar) I get the bellow error.
Anyone who knows what is wrong and how to fix it?
My settings as below:
verisure:
username: “my username”
password: “my password”
default_lock_code: 1234
code_digits: 4
I have tried with the code both in and out of quotation marks (1234 and “1234”). Fails on both.
This is my error log:
## Log Details (ERROR)
Logger: homeassistant.components.websocket_api.http.connection.140703042025936
Source: components/verisure/alarm_control_panel.py:32
Integration: Home Assistant WebSocket API([documentation](https://www.home-assistant.io/integrations/websocket_api), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+websocket_api%22))
First occurred: June 21, 2020, 11:55:49 PM (1occurrences)
Last logged: June 21, 2020, 11:55:49 PM
Invalid response, status code: 400 - Data: {"errorGroup":"BAD_REQUEST","errorCode":"VAL_00008","errorMessage":"Invalid or non-existing value for code"}
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 130, in handle_call_service connection.context(msg), File "/usr/src/homeassistant/homeassistant/core.py", line 1260, in async_call task.result() File "/usr/src/homeassistant/homeassistant/core.py", line 1295, in _execute_service await handler.func(service_call) File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 209, in handle_service self._platforms.values(), func, call, required_features File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 454, in entity_service_call future.result() # pop exception if have File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 597, in async_request_call await coro File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 485, in _handle_entity_call await result File "/usr/src/homeassistant/homeassistant/components/alarm_control_panel/__init__.py", line 136, in async_alarm_arm_home await self.hass.async_add_executor_job(self.alarm_arm_home, code) File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/usr/src/homeassistant/homeassistant/components/verisure/alarm_control_panel.py", line 105, in alarm_arm_home set_arm_state("ARMED_HOME", code) File "/usr/src/homeassistant/homeassistant/components/verisure/alarm_control_panel.py", line 32, in set_arm_state transaction_id = hub.session.set_arm_state(code, state)[ File "/usr/local/lib/python3.7/site-packages/verisure/session.py", line 215, in set_arm_state _validate_response(response) File "/usr/local/lib/python3.7/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"}