Motion sensor unavailable after upgrade to 0.31
See original GitHub issueFirst of all, thanks again for all the hard work you guys are putting into this integration! I hope I can help you debug this issue.
Describe the bug I just added a second camera and while doing this I also upgraded to reolink_dev v0.31 (from 0.26) and now the callbacks for motion detection have stopped working. They worked fine before but now is just says “unavailable”.
To Reproduce I’ve tried to remove and add the cameras again. Also upgraded to the latest reolink firmware (v3.0.0.148_21100909). After adding the cameras, I don’t seem to get any callbacks from Reolink.
I have tried enabling push notifs in the Reolink app and they work, so the camera does detect motion. I’ve tried going to the /cgi-bin/api.cgi?cmd=GetMdState page, and I can confirm the state is 1
during motion. And it worked before upgrading to 0.31. I have also set the internal_ip to the correct IP (without using the mDNS name).
This is what I see in the logs:
2021-10-21 20:52:34 ERROR (MainThread) [custom_components.reolink_dev.base] Host 10.0.1.15 subscription failed to its webhook, base object state will be set to NotAvailable
2021-10-21 20:52:34 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.zwave_js
2021-10-21 20:52:34 INFO (MainThread) [homeassistant.components.switch] Setting up switch.zwave_js
2021-10-21 20:52:34 INFO (MainThread) [homeassistant.setup] Setting up lock
2021-10-21 20:52:34 INFO (MainThread) [homeassistant.setup] Setup of domain lock took 0.0 seconds
2021-10-21 20:52:34 INFO (SyncWorker_5) [googleapiclient.discovery] URL being requested: GET https://www.googleapis.com/calendar/v3/calendars/hakan%40kry.se/events?orderBy=startTime&singleEvents=true&maxResults=100&timeMin=2021-10-21T20%3A52%3A34.845530%2B02%3A00&alt=json
2021-10-21 20:52:34 INFO (SyncWorker_4) [homeassistant.loader] Loaded number from homeassistant.components.number
2021-10-21 20:52:34 INFO (MainThread) [homeassistant.components.lock] Setting up lock.zwave_js
2021-10-21 20:52:34 INFO (MainThread) [homeassistant.setup] Setting up number
2021-10-21 20:52:34 INFO (MainThread) [homeassistant.setup] Setup of domain number took 0.0 seconds
2021-10-21 20:52:35 INFO (MainThread) [homeassistant.components.number] Setting up number.zwave_js
2021-10-21 20:52:35 INFO (SyncWorker_7) [homeassistant.loader] Loaded select from homeassistant.components.select
2021-10-21 20:52:35 ERROR (MainThread) [custom_components.reolink_dev.base] Host 10.0.1.15 error renewing the Reolink subscription
2021-10-21 20:52:35 ERROR (MainThread) [custom_components.reolink_dev.base] Host 10.0.1.15 error renewing the Reolink subscription
...
2021-10-21 20:52:45 INFO (MainThread) [custom_components.hacs] Stage changed: HacsStage.RUNNING
2021-10-21 20:53:21 INFO (MainThread) [homeassistant.components.websocket_api.http.connection] [548231073072] Connection closed by client
2021-10-21 20:53:35 ERROR (MainThread) [custom_components.reolink_dev.base] Host 10.0.1.15 error renewing the Reolink subscription
2021-10-21 20:53:35 ERROR (MainThread) [custom_components.reolink_dev.base] Host 10.0.1.15 error renewing the Reolink subscription
2021-10-21 20:54:35 ERROR (MainThread) [custom_components.reolink_dev.base] Host 10.0.1.15 error renewing the Reolink subscription
2021-10-21 20:54:35 ERROR (MainThread) [custom_components.reolink_dev.base] Host 10.0.1.15 error renewing the Reolink subscription
2021-10-21 20:55:35 ERROR (MainThread) [custom_components.reolink_dev.base] Host 10.0.1.15 error renewing the Reolink subscription
2021-10-21 20:55:35 ERROR (MainThread) [custom_components.reolink_dev.base] Host 10.0.1.15 error renewing the Reolink subscription
2021-10-21 20:56:35 ERROR (MainThread) [custom_components.reolink_dev.base] Host 10.0.1.15 error renewing the Reolink subscription
2021-10-21 20:56:35 ERROR (MainThread) [custom_components.reolink_dev.base] Host 10.0.1.15 error renewing the Reolink subscription
2021-10-21 20:57:33 INFO (MainThread) [homeassistant.components.websocket_api.http.connection] [548249828848] Connection closed by client
2021-10-21 20:57:35 ERROR (MainThread) [custom_components.reolink_dev.base] Host 10.0.1.15 error renewing the Reolink subscription
2021-10-21 20:57:35 ERROR (MainThread) [custom_components.reolink_dev.base] Host 10.0.1.15 error renewing the Reolink subscription
Environment: Please provide useful information about your environment, like:
- Reolink v 0.31
- Home Assistant version
- Reolink camera model: NVR RLN8-410
- Camera firmware number: v3.0.0.148_21100909
Issue Analytics
- State:
- Created 2 years ago
- Comments:15 (5 by maintainers)
I am sorry for wasting everybody’s time here. It seems the firmware upgrade reset the ONVIF setting, but since I can’t see that setting from the web/app I didn’t notice it at first. Once enabled things sort of work.
However, I have the same problem as described in this ticket, where the “clear” callback is never called. I will close this ticket.
I don’t have a NVR so I can’t tell you. Onvif can be enabled only from an HDMI TV screen, it is all I know.
On Sun, Oct 24, 2021, 21:47 GitKiller-HA @.***> wrote: