kvj / hass_nuki_ng

Better support for Nuki devices in the Home Assistant
MIT License
167 stars 32 forks source link

NUKI LOCK DOESN'T WORK #147

Open Alex73hub opened 1 year ago

Alex73hub commented 1 year ago

Screenshot 2023-03-25 alle 22 11 08 <img width="339" alt="Screenshot 2023-03-25 alle 22 Screenshot 2023-03-25 alle 22 13 00

Screenshot 2023-03-25 alle 22 13 11
Alex73hub commented 1 year ago
Screenshot 2023-03-25 alle 22 12 47
Alex73hub commented 1 year ago

last version

Alex73hub commented 1 year ago

Logger: homeassistant.config_entries Source: helpers/network.py:206 First occurred: 1 aprile 2023, 21:19:56 (1 occurrences) Last logged: 1 aprile 2023, 21:19:56

Error setting up entry Nuki for nuki_ng Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 383, in async_setup result = await component.async_setup_entry(hass, self) File "/config/custom_components/nuki_ng/init.py", line 26, in async_setup_entry coordinator = NukiCoordinator(hass, entry, data) File "/config/custom_components/nuki_ng/nuki.py", line 345, in init url = config.get("hass_url", get_url(hass)) File "/usr/src/homeassistant/homeassistant/helpers/network.py", line 167, in get_url request_host = _get_request_host() File "/usr/src/homeassistant/homeassistant/helpers/network.py", line 206, in _get_request_host raise NoURLAvailableError homeassistant.helpers.network.NoURLAvailableError

liog22 commented 11 months ago

I have the same problem

UPDATE: Solved! Probably you're trying to connect through https instead of http (local), so you have to install NGIX and configure it properly. I had the same problem just a while ago and noticed that I couldn't connect to HA locally, so I installed the component above and everything, then when I configured the nuki addon the field "home assistant internal url" was already filled and after it worked