reolink_dev icon indicating copy to clipboard operation
reolink_dev copied to clipboard

Motion detection not working with NVR

Open cob94440 opened this issue 5 years ago • 100 comments

There seems to be some problems yet. 1st every entity created are named like the 1st one. But this isn't annoying as entity has right naming 2nd every entity except first are assigned with the channel number. Again not really a probblem.

The most effective probleme is motion detection that work only on first camera Others are triggered when 1st camera is triggered

cob94440 avatar Dec 15 '20 12:12 cob94440

I will dive into this, can you provide some pictures?

fwestenberg avatar Dec 15 '20 12:12 fwestenberg

In your configuration.yaml can you change logging to:

logger:
    custom_components.reolink_dev: debug
    reolink: debug

When you trigger motion detection, please post the XML part here please. Don't forget to disable logging afterwards and remove passwords/tokens from the log.

fwestenberg avatar Dec 15 '20 13:12 fwestenberg

reolink integration entity

cob94440 avatar Dec 15 '20 14:12 cob94440

The first pic show 4 same entity. Second pic show camera channel 2

cob94440 avatar Dec 15 '20 14:12 cob94440

Invalid config for [logger]: [custom_components.reolink_dev] is an invalid option for [logger]. Check: logger->logger->custom_components.reolink_dev. (See /config/configuration.yaml, line 43).

cob94440 avatar Dec 15 '20 14:12 cob94440

logger

cob94440 avatar Dec 15 '20 14:12 cob94440

i modified : logger: logs: custom_components.reolink_dev: debug reolink: debug

cob94440 avatar Dec 15 '20 14:12 cob94440

unavailable

cob94440 avatar Dec 15 '20 14:12 cob94440

they now show unavailable And ftp is on for channel 2,3 and 4 althought it s not on. I can't desactivate it

cob94440 avatar Dec 15 '20 14:12 cob94440

sub

cob94440 avatar Dec 15 '20 14:12 cob94440

Thanks for all pictures. This really helps. When triggering motion, do you see anything like an XML for in the log? You should find it when clicking the button "Show full log" on the log screen.

fwestenberg avatar Dec 15 '20 14:12 fwestenberg

I can't access log its running out of memory unfortunately

cob94440 avatar Dec 15 '20 15:12 cob94440

Can you download the latest file from custom_components (download zip) and manually test if naming is OK now? For the motion some more work is needed I'm afraid. The logs may be accessible from the terminal, like:

sudo docker logs homeassistant --tail=500

fwestenberg avatar Dec 15 '20 15:12 fwestenberg

unexpected error when i try to add a camera after deleting

cob94440 avatar Dec 15 '20 16:12 cob94440

debugging

cob94440 avatar Dec 15 '20 16:12 cob94440

Thanks, I just updated the config_flow.py. Can you check it?

fwestenberg avatar Dec 15 '20 16:12 fwestenberg

This may also help.

Added first camera 'Front' all appears fine.

Added second camera 'Back' and you can see it references 'Front' and 'Back2'.

https://i.imgur.com/tylpu9l.png

emericklaw avatar Dec 15 '20 16:12 emericklaw

I found this error also. Should be fixed if you update base.py. Do you have a motion xml from the log already?

fwestenberg avatar Dec 15 '20 17:12 fwestenberg

naming is good now with latest updates in config flow and base

cob94440 avatar Dec 15 '20 20:12 cob94440

Logger: custom_components.reolink_dev.base Source: custom_components/reolink_dev/base.py:157 Integration: Reolink IP camera (documentation, issues) First occurred: 21:15:26 (1 occurrences) Last logged: 21:15:26

Host 10.0.0.36 error renewing the Reolink subscription

cob94440 avatar Dec 15 '20 20:12 cob94440

i have this error in log

cob94440 avatar Dec 15 '20 20:12 cob94440

still no motion. i can activate and deactivate ftp on channel 1. on other channel it seems on but i can't disable And on my nvr its disabled

cob94440 avatar Dec 15 '20 20:12 cob94440

i modified : logger: logs: custom_components.reolink_dev: debug reolink: debug

This looks good. Is there any XML in the log when you trigger motion? Every camera got it's own webhook, and own subscription. So if you have 5 camera's there should be 5 renew messages in the log (or 4 errors and 1 succes in example).

fwestenberg avatar Dec 17 '20 23:12 fwestenberg

Hi all, I also own a RLN8-410-E NVR, and I have the same motion detection issue (I upgraded from 0.7, with manual platform configuration, to 0.9, with configuration>integrations>add integration>Reolink IP camera procedure).

I added each cameras connected to the NVR, the preview on lovelace interface works, but the icon on cameras stream is always idle and the motion sensors are always clear

RikyUnreal avatar Dec 18 '20 08:12 RikyUnreal

@RikyUnreal @cob94440 I can really only fix this with logging like my previous post. So the motion detection XML from your log. I expect only 1 motion sensor works now.

fwestenberg avatar Dec 18 '20 08:12 fwestenberg

Ok @fwestenberg I'm not a super-geek so be patient. I try to activate logging e search for XML file. Stand by.

RikyUnreal avatar Dec 18 '20 08:12 RikyUnreal

You can recognize the XML by the tag: <IsMotion> in the body. Somewere near the end of the XML.

fwestenberg avatar Dec 18 '20 08:12 fwestenberg

Ok @fwestenberg, logger added, but I can't find anything.

Have I to check the logs (see picture) or somewhere else? 0001

RikyUnreal avatar Dec 18 '20 08:12 RikyUnreal

Yes, click the button "Load full Home Assistant log"

fwestenberg avatar Dec 18 '20 08:12 fwestenberg

Ok, huge amount of lines. Any keyword to search?

RikyUnreal avatar Dec 18 '20 08:12 RikyUnreal