Hello,
Is it possible to add the pincode to the configuration of the verisure yale door lock? Or add it in the code itself?
I know I can add it using automation, but I would like the locks to work directly using the sliders and aslo from the hadashboard:
When pressing the liders I get this in the log:
2018-02-20 10:02:06 ERROR (MainThread) [homeassistant.core] Error executing service <ServiceCall lock.unlock: entity_id=['lock.main_door']>
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/core.py", line 1010, in _event_to_service_call
yield from service_handler.func(service_call)
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/lock/__init__.py", line 101, in async_handle_lock_service
yield from entity.async_unlock(code=code)
File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
future.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
raise self._exception
File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/lock/verisure.py", line 99, in unlock
self.set_lock_state(kwargs[ATTR_CODE], STATE_UNLOCKED)
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/lock/verisure.py", line 113, in set_lock_state
lock_state)['doorLockStateChangeTransactionId']
File "/srv/homeassistant/lib/python3.5/site-packages/verisure/session.py", line 285, in set_lock_state
_validate_response(response)
File "/srv/homeassistant/lib/python3.5/site-packages/verisure/session.py", line 15, 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"}