-
Notifications
You must be signed in to change notification settings - Fork 102
Motion Sensors do not work - Usually Unavailable #348
Comments
Please provide full logs, this is just a summary |
Could you please instruct me how to do it? |
Same issue here. will be happy to provide any logs (don't know how to do it) |
Hello, i have the same problem. It never worked for me with nvr16ch last hardware and firmware with any camera. The error i have is : Futhermore, this rtmp url doesn't worl on my lan with vlc.
Go to 'Supervisor > System >'log provider??' > Core and look for reolink line. |
Same. NVR16Channels. |
I have same model NVR with 810A cameras, was getting same errors as above when using version 0.34 and 0.35, switched out to master version and picked the AI sensors, now sensors are reporting clear all the time even when there is motion, am getting push notifications from NVR, no errors in home assistant log, the person sensors stay constant clear, the actual main motion sensor will sometimes register motion but not reliably |
See https://github.com/fwestenberg/reolink_dev/blob/master/TSHOOT.md |
Thanks for the link. Hope you can find the issue :). |
Your NVR replies with error: |
7 cameras. |
Did someone with the 16 channels 4k NVR got the sensors working? Is it related to the User? |
I haven't tried using another login, using admin default but will do, I was able to use Rest to extract motion states |
Have tried with General Account and a created Admin neither of these work either, only log entry is "User test has authorisation level guest. Only admin users can change camera settings! Switches will not work.", test is the general user |
I can find no way to creat a Super Admin, it looks like only the built in default account has that |
As a workaround I used rest to get states i.e binary_sensor:
This works fine for Motion haven't been able to find any AI ones being exposed |
Upgraded to version 0.36 (was on Master), now have lost my AI and Motion Sensor States all together all saying "Unavailable", with previous master I was getting "off" most of the time but not "Unavailable", after upgrading I got the following log entries Subscription process ended with wrong HTTP status: 400: Bad Request Host "my NVR IP" error renewing the Reolink subscription Host "my NVR IP" subscription failed to its webhook, base object state will be set to NotAvailable Port 80 is used, USE_HTTPS set back to False I changed the connection on one of the cameras to use 443, however this didn't make any difference to the Motion states |
because of the number of cameras you have, subscription system is failing randomly. initial code written by @fwestenberg seems to register to the hook once per camera while Reolink doesn't allow this (God I want to slap them) and they merge all triggers into same webhook. The fix won't be easy and I do lack time to write it this week. |
No problems I am using the following workaround in my configuration.yaml binary_sensor:
replace people with vehicle/pet for the others, as I'm using via the NVR then I need to specify channel this is equal to the NVR channel -1, just need to duplicate for each channel and AI being used. |
excuse me, how do you do it? I have RLN8-410 and when requested http://192.168.1.26/api.cgi?cmd=GetAiState&channel=00&user=hass&password=paaaasssswwwwoooorddd |
check the NVR Hardware version (cog, system,info) and confirm your NVR hardware version support access to the AI sensors, H3MB18 may need Firmware upgrade N2MB02 & N3MB01 support it but H3MB02, H3MB16 do not. basically any that have the new interface. |
I seem to have the same problem with the motion sensor. My setup has been working from time to time, but has never been stable. A while it seemed to be working ok with motion callbacks, but then the main problem was that the "clear" notification never arrived. With the current version it seems to have trouble to get any kind of callbacks. The setup is described in this old ticket (but now running version 0.38 of this integration and NVR firmware v3.0.0.148_21100909). I just tried enabling the debug logs and this seems to the most interesting logs:
I have an ongoing support ticket with Reolink regarding the missing "clear" callbacks and they asked if I could provide Wireshark captures, but since I'm running HA on a RasberryPi I'm thinking that will be kind of tricky? Anyone running HA on an ordinary computer that could provide these? |
Have decided to move away from this integration, not the integrations fault as I'm sure they will eventually fix the AI sensors webhook subscription issue, I am moving away as the streams are 10 sec behind actual (and regualry freeze), instead am using rest (as above) for the sensors and rtsp for the streams as combining with webrtc card I can get pretty close to realtime streams that don't freeze, combining this with condition cards gives me a display that shows my cameras 4 at a time and then changes to full screen on person/vehicle motion, I setup a couple of helpers to use as triggers to change which 4 are shown at a time that way the 8 cameras I have all get shown over a time period and switch to full screen on motion, I cast this to my google hub max and use a button at bottom of screen combined with helper to switch between control dashboard view and camera view works pretty well but ocassionally drops out on the hub just need to rerun script to cast again if it does, will eventually combine all this into a tablet instead as casting to hub means I cannot send it anything else like tts without the cast dropping. |
@bfeige , I have implemented your proposal. Works great. |
@bfeige or @Fannangir can you share the configuration you used as you described? Sounds like it's the way to go. |
@spf13, refer to some examples. camera: Reolink High Quality Stream
Reolink Low Quality Stream (Sub Stream)
binary_sensor: Reolink Motion Sensor
Reolink AI Person Sensor
Reolink AI Vehicle Sensor
|
I'm having the same issue. Also connected via RLN16-410 NVR with the latest firmware 3.0.0.148. (Don't know how to check if Onviff is enabled or disabled, but haven't seen any option to turn it on or off either) |
Same issue. Motion constantly reported as clear. Reolink RLN8-410-E hw version H3MB16 fw version 2.0.0.274. ** In my case, this issue was resolved by setting the internal and external URLs of home assistant to static IP addresses. |
@DIYtechie , onviff setting is seen only if you connect an external monitor to the NVR. |
I read about this solution, but tell me, where exactly do I need to set the ip? |
Thanks. I noticed that in the ReadME, but cannot find it in the NVR menu (on the screen connected via HDMI)? |
Thanks for providing this, the motion sensor works for motion detected, but does not switch off, do i need to do this manually in a script? |
FWIW, I found this digging around on reddit from Reolink support regarding a question about not passing vehicle and person detections. Going to try this over the weekend.
|
Hi @rfporter, can you share your config with me as I have the same NVR and for the life of me cannot get them to work consistently with motion and all 4 cameras configured in HA. I have tried the REST approach but get the following from the LOG: The following is the response received from the URL below (minus the user/password!): [ { "cmd" : "GetMdState", "code" : 0, "value" : { "state" : 0 } } ] The binary sensor is configured thus:
P.S. My HA and my NVR both have fixed IP addresses... |
as a result of the above, the REST based motion sensors are not working for me. Does anyone know why this is not working? To reiterate, I am getting the following messages (every 2 seconds for each of my 4 cameras!):
The binary_sensor is defined as follows:
(IP address and user/password are redacted) and when you hit that URL from a browser it returns:
Can anyone assist with this issue - is the value_template incorrect? Thanks. |
Hey Peeps, I got Motion, Person, Vehicle detection working for my cameras. I updated the firmware of my cameras (Reolink 820A, Reolink 510WA) to version v3.0.0.494 (The property names are different on different firmwares.) I downloaded the CGI/API file here, Found that, Plugged that into my Postman app as a GET request [ So now I know what values to grab in my home assistant configuration.yaml, I added Reolink 820Asensor: - platform: rest - platform: rest - platform: rest Reolink 510WA- platform: rest - platform: rest - platform: rest |
@Fannangir v0.47 is out and the following was added in https://github.com/fwestenberg/reolink_dev/blob/master/TSHOOT.md: |
Hi,
Can't get the sensors to operate.
Connected via RLN16-410 NVR with the latest firmware 3.0.0.148.
Cameras are RLC-810A and RLC-820A with the latest firmware 3.0.0.494.
Have set internal URL, and enabled ONVIF on the NVR.
In the log I can see the following:
Logger: reolink.subscription_manager
Source: /usr/local/lib/python3.9/site-packages/reolink/subscription_manager.py:103
First occurred: 18:57:00 (126 occurrences)
Last logged: 19:02:00
Subscription process ended with wrong HTTP status: 400: Bad Request
And the following:
Logger: custom_components.reolink_dev.base
Source: custom_components/reolink_dev/base.py:376
Integration: Reolink IP camera (documentation, issues)
First occurred: 18:57:00 (42 occurrences)
Last logged: 19:02:00
Host 192.168.1.248 error renewing the Reolink subscription
Occasionally, I can see some data from the sensors, but these are mostly unavailable.
What I could be missing?
What additional information/log can I provide?
Thanks.
The text was updated successfully, but these errors were encountered: