question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Motion sensor unavailable after upgrade to 0.31

See original GitHub issue

First 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”.

image

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:closed
  • Created 2 years ago
  • Comments:15 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
MacL3ancommented, Oct 26, 2021

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.

1reaction
cpainchaudcommented, Oct 24, 2021

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:

Could you explain where can I turn it on ? I connected camera directly to my HA (via IP - PoE) without any additional devices. Should I set port forwarding on my router ? or another way ?

Thanks

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/fwestenberg/reolink_dev/issues/330#issuecomment-950383762, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTC5PXBMHOFRU2QOXUNSNTUIRPEXANCNFSM5GO3B7LA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Binary sensors show unavailable after upgrade to 0.112
My binary sensors (door sensors, water sensors, PIR) show unavailable after upgrading to the latest version of HA. Any ideas?
Read more >
Hub E1 - Aqara
Sensor. Motion Sensor P1 · TVOC Air Quality Monitor · Vibration Sensor ... Why is the remote control unavailable after the Hub and...
Read more >
Cisco Industrial Asset Vision Data Sheet
With Cisco Industrial Asset Vision's dashboard, customers need only one solution to correlate data and identify business-impacting trends. ○ Cyber Security: ...
Read more >
Zigbee sensors sometimes show as unavailable after server ...
Here's my setup, and what I've done so far. ... Issues / troubleshooting steps: ... I removed all Zigbee devices and re-added the...
Read more >
This device is unavailable at the moment - Apps & Clients
Although one member did comment that the app just hasn't updated the ... After changing the batteries on the 2 motion sensors that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found