New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reolink integration IP configuration #91493
Comments
Hey there @starkillerOG, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) reolink documentation |
I think the DHCP discovery might still be reporting the old IP adress causing this issue. I would recommand first removing the reolink integration for the doorbell from HomeAssistant, then restarting HomeAssistant, power cycle your router and the doorbell, then once everything has started again, add the doorbell back to HomeAssistant. (Normally this schould not happen, but I think this is a issue in your router/network that is still remembering the old IP adress and reporting that to HomeAssistant). |
If you appreciate the reolink integration and want to support its development, please consider sponsering the upstream library. |
Hmm, but if the integration only get configured with: admin, password and the IP address, then what is the role of the DHCP? All the involved parties have a static IP configured. The DNS is also not involved. It's the mqtt used by the integration? Maybe there is a persistent configuration topic in the broker. I will have to check this. |
Hi, At 7:50 there was somebody at the door and this happened in the log:
It lost the connection and after some retries to 192.168.1.76 the reolink_aio.api switched to the old IP, 192.168.1.112. What is this with the config entry? The current config entry locks like:
|
@RaveGun no mqtt is not involved with the Reolink integration, only DHCP discovery. If the Doorbell loses connection when you press it, it might be due to insuficient power. I am suspecting the doorbell reboots when you press it, and reconnects to you router due to a dip in power if you are using a power source that delivers insufficient power. |
Thank you for the feedback. The doorbell is connected to the previously available AC 12V transformer. This will still not explain from where is it getting the old IP information. PS. It is a PKT 121 transformer that outputs 12V 1,3A. Is this too low? |
@RaveGun did you use the jumbers to bridge your chime? The old IP infromation is probably comming from the DHCP discovery from your router that has remembered the IP somewhere in its memory. Did you try power cyceling your router and acces points? |
Hi @starkillerOG, I'm facing the exact same issues, I have two reolink cameras (same model), both have a static configured IP on the cameras (not DHCP reservation) since over a year, none of them does exist in the DHCP server or reverse DNS zone, and both of them keep reverting to the wrong IP address (actually even the same one for both cameras). Any idea where this comes from? Could you shed some light on how this DHCP Discovery works so we might be able to figure out more? |
Hi @RaveGun / @starkillerOG, I might just figured it out.. This is confirmed by this post here: |
@RobinBeismann thank you for this information! The correct solution would be to not set a static IP in the camera, but set it to dynamic DHCP, then assign a static IP in the router. |
Yeah, even through this is just a workaround. Can you imagine adding an option to disable discovery and assign a static address? This would help for cameras that are on a different L3 network also, being bound to DHCP discovery on the same Broadcast Domain is quite unflexibel. |
When manually starting the config flow for Reolink (not use the discovered entry) you will be prompted to specify the host (ip address). However when discovery information does reach homeassistant, the IP adress used will be updated with the discovery info (to accomodate DHCP setups where the IP adress is not fixed). |
Ah I see - but wouldn't it be even better that DHCP discovery is completely turned off for a device once a static IP is entered? I believe this is how other implementations do it, either the device is auto discovery or configured staticly, but a dynamic broadcast overwriting the static configuration could be undesired (especially given how Reolink handles their configuration with DHCP broadcasts even if static IPs are assigned). |
Hi @starkillerOG, could you shed some light on how this dhcp discovery works? Suddently my cameras are showing a wrong IP again, even through they have the same IP as always and it's assigned via a DHCP reservation - I don't even see how it gets the current IP. It's not even assigned to any client in the DHCP. |
Actually for people with basic network setups that fail to set a static IP in the router, this will make sure the integration automatically recovers when the IP of the camera changes. This is how many integrations are implemented to mitigate the problems with changing IP adresses. |
@RobinBeismann what did you configure in the network settings of the camera? |
The problem
Cannot connect to the Doorbell camera.
The first time I configured the camera was after the initial setup. Back then, the camera had the IP 192.168.1.102.
I changed the camera's IP to 192.168.1.76 and then, there was no connection possible, as expected.
Since I do not know how to change the IP of an integration, I removed the camera from HA and re-added it.
It works for a while (until I start the HA, I guess) and then it reverts back to the old ...102 IP.
Interesting is that if I navigate from the device menu (Visit link), it is opening the 192.168.1.76 IP webpage.
What version of Home Assistant Core has the issue?
core-2023.4.4
What was the last working version of Home Assistant Core?
?
What type of installation are you running?
Home Assistant Supervised
Integration causing the issue
Reolink IP NVR/camera
Link to integration documentation on our website
https://www.home-assistant.io/integrations/reolink
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
No response
The text was updated successfully, but these errors were encountered: