You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When iobroker is running in a docker container, the default network is a docker-internal vlan like 172.21.0.2. This vlan and therefore that ip is not reachable outside of the docker container and is definitely not the same ip like the host ip (e.g. 192.168.0.100).
When iobroker is running in a docker container, the default network is a docker-internal vlan like 172.21.0.2. This vlan and therefore that ip is not reachable outside of the docker container and is definitely not the same ip like the host ip (e.g. 192.168.0.100).
Problem
The routine for adding callbacks automatically derives the iobroker host ip via the ip package
https://github.com/Zefau/ioBroker.nuki-extended/blob/67462a540437d2bd5004a21e1d651b3dcbc463e6/nuki-extended.js#L8
https://github.com/Zefau/ioBroker.nuki-extended/blob/67462a540437d2bd5004a21e1d651b3dcbc463e6/nuki-extended.js#L426
and thus will always see the internal ip 172.21.0.2.
Thus callbacks will be added with an internal ip and will never reach their destination (here the host running docker: 192.168.0.100)
Callbacks will therefor simply not work.
Suggested fix
Add a setting for the adapter to set a custom ip for callbacks.
The text was updated successfully, but these errors were encountered: