Update for future generations - it turned out that after a reset of the router due to e.g. a power cut, the intercom connects to the router once and once not, and it is not clear why. The problem seems to be that when the power is switched back on in the house, the intercom tries to connect over Wi-Fi to the router faster than the router starts to provide Wi-Fi. I solved the problem by hooking the intercom up to a Wi-Fi switch, which has the advantage that it always connects to the router after a reset. And thanks to this, when I see that the intercom is not connected to the router after restoring power in the whole house, via the Wi-Fi switch it resets the intercom once again, which after restoring it already has Wi-Fi available with the router, it connects to it without any problem. It seems to me that the intercom, after the reboot, only attempts to connect to the Wi-Fi at the very beginning and as there is no Wi-Fi available at that time, it will not connect to the Wi-Fi afterwards. The solution to the problem would be for the intercom to continuously attempt to connect to the Wi-Fi and not just once at the very beginning