core: Nuki 2.0 smartlock fails to setup

My new Nuki 2.0 doorlock does not seem to setup in HA. Does not work in 0.115 and in my current version of HA.

I have this in my configuration.yaml (from the HA integration page). I tested with and without the port, but the error stays the same.

lock:
  - platform: nuki
    host: Static IP
    token: (10 digit alphanumeric)
    port: 8080

After I reboot HA I always get this log:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 193, in _async_setup_platform await asyncio.shield(task) File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/usr/src/homeassistant/homeassistant/components/nuki/lock.py", line 61, in setup_platform devices = [NukiLockEntity(lock) for lock in bridge.locks] File "/usr/local/lib/python3.8/site-packages/pynuki/bridge.py", line 234, in locks return self._get_devices(device_type=const.DEVICE_TYPE_LOCK) File "/usr/local/lib/python3.8/site-packages/pynuki/bridge.py", line 199, in _get_devices for l in self.list(device_type=device_type): File "/usr/local/lib/python3.8/site-packages/pynuki/bridge.py", line 128, in list data = self.__rq("list") File "/usr/local/lib/python3.8/site-packages/pynuki/bridge.py", line 107, in __rq data = result.json() File "/usr/local/lib/python3.8/site-packages/requests/models.py", line 898, in json return complexjson.loads(self.text, **kwargs) File "/usr/local/lib/python3.8/site-packages/simplejson/__init__.py", line 525, in loads return _default_decoder.decode(s) File "/usr/local/lib/python3.8/site-packages/simplejson/decoder.py", line 370, in decode obj, end = self.raw_decode(s) File "/usr/local/lib/python3.8/site-packages/simplejson/decoder.py", line 400, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) simplejson.errors.JSONDecodeError: Expecting ',' delimiter or '}': line 1 column 51 (char 50)

Running version 0.116.1 (as mentioned, 0.115 did not work either) Supervisor version: 247

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 22 (1 by maintainers)

Most upvoted comments

I have two Nuki 2.0 smart locks connected to one Nuki Bridge configured like this in locks.yaml:

- platform: nuki
  host: 192.168.23.30
  token: <6 character token from Nuki App>

It worked from day 1 for ~ 4 weeks now. Setup:

System Health

version core-2021.2.3
installation_type Home Assistant OS
dev false
hassio true
docker true
virtualenv false
python_version 3.8.7
os_name Linux
os_version 5.7.19
arch aarch64
timezone Europe/Berlin
Home Assistant Community Store
GitHub API ok
Github API Calls Remaining 4998
Installed Version 1.11.3
Stage running
Available Repositories 749
Installed Repositories 10
Home Assistant Cloud
logged_in true
subscription_expiration 12. März 2021, 01:00
relayer_connected true
remote_enabled false
remote_connected false
alexa_enabled true
google_enabled false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Hass.io
host_os HassOS 4.20
update_channel stable
supervisor_version supervisor-2021.02.11
docker_version 19.03.12
disk_total 113.9 GB
disk_used 4.0 GB
healthy true
supported true
board odroid-n2
supervisor_api ok
version_api ok
installed_addons File editor (5.2.0), Check Home Assistant configuration (3.6.0), FTP (4.0.1), Terminal & SSH (9.0.1), Duck DNS (1.12.5), Log Viewer (0.9.1)
Lovelace
dashboards 2
resources 4
views 12
mode storage