The problem
Reolink integration connected solely to NVR (RLN8-410) with various types of Reolink cameras only shows the basic Motion binary sensor and no longer shows the Person, Vehicle, Pet binary sensors. On PTZ cameras, although it does show the PTZ button entities, it no longer shows the PTZ preset select entities.
This integration has been working flawlessly since it went live, with all camera sensors and controls from each camera being made visible to HA through the integration to just the NVR. I decided to change the channel order on the NVR itself and rather than trying to update HA integrated entities to match the new camera ordering, I just removed the ReoLink integration (and all associated entities), rebooted, and started over by re-adding the ReoLink integration and connecting back to the NVR. All cameras showed up again, however this time not all sensors and controls showed up. All cameras show the motion binary sensor, but none of the cameras show the Vehicle, Person, or Pet binary sensor. I have PTZ cameras which previously showed a selection box for PTZ mode but these no longer show up, though the button controls for PTZ did show up. There have been no firmware changes to any of my cameras or my NVR and I did not perform this action alongside any HA updates. All cameras and the NVR are setup with uPNP, Enable UID, basic service (port 9000), HTTPS (443), RTSP (554), and ONVIF (8000). Any idea why these sensors no longer appear when the integration auto-detects the NVR and adds the individual child devices? I do see some errors in the log.
What version of Home Assistant Core has the issue?
core-2023.9.1
What was the last working version of Home Assistant Core?
core-2023.9.1
What type of installation are you running?
Home Assistant OS
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?
Logger: homeassistant.components.reolink.host
Source: components/reolink/host.py:615
Integration: Reolink IP NVR/camera (documentation, issues)
First occurred: 03:48:23 (2 occurrences)
Last logged: 03:48:24
Error processing ONVIF event for Reolink CamNVR: 2
Error processing ONVIF event for Reolink CamNVR: 9
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/reolink/host.py", line 615, in _process_webhook_data
channels = await self._api.ONVIF_event_callback(message)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/reolink_aio/api.py", line 4302, in ONVIF_event_callback
self._ai_detection_states[channel]["face"] = state
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
KeyError: 2
Logger: homeassistant.components.reolink.host
Source: components/reolink/host.py:615
Integration: Reolink IP NVR/camera (documentation, issues)
First occurred: 03:48:23 (1 occurrences)
Last logged: 03:48:23
Error processing ONVIF event for Reolink CamNVR: 4
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/reolink/host.py", line 615, in _process_webhook_data
channels = await self._api.ONVIF_event_callback(message)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/reolink_aio/api.py", line 4308, in ONVIF_event_callback
self._ai_detection_states[channel]["dog_cat"] = state
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
KeyError: 4
Logger: reolink_aio.api
Source: components/reolink/host.py:89
First occurred: 03:48:22 (3 occurrences)
Last logged: 03:48:22
Host 192.168.0.89:443 error mapping response to channels, received 119 responses while requesting 158 responses
Camera Entrance Camera reported to support zoom, but zoom range not available
Camera Patio Camera reported to support zoom, but zoom range not available
Additional information
As mentioned, all cameras are connected to the NVR and only the NVR is integrated via the ReoLink integration and before doing a fresh re-add of this integration, all cameras' sensors (pet, vehicle, and person) and controls were visible and usable in HA. Here are the camera types just in case you are interested:
Reolink RLC-511WA (now missing binary sensors Person and Vehicle)
Reolink Duo 2 WiFI (now missing binary sensors Person, Pet, and Vehicle)
Reolink E1 Pro (now missing binary sensors Person and Pet; missing select entity PTZ preset)
The problem
Reolink integration connected solely to NVR (RLN8-410) with various types of Reolink cameras only shows the basic Motion binary sensor and no longer shows the Person, Vehicle, Pet binary sensors. On PTZ cameras, although it does show the PTZ button entities, it no longer shows the PTZ preset select entities.
This integration has been working flawlessly since it went live, with all camera sensors and controls from each camera being made visible to HA through the integration to just the NVR. I decided to change the channel order on the NVR itself and rather than trying to update HA integrated entities to match the new camera ordering, I just removed the ReoLink integration (and all associated entities), rebooted, and started over by re-adding the ReoLink integration and connecting back to the NVR. All cameras showed up again, however this time not all sensors and controls showed up. All cameras show the motion binary sensor, but none of the cameras show the Vehicle, Person, or Pet binary sensor. I have PTZ cameras which previously showed a selection box for PTZ mode but these no longer show up, though the button controls for PTZ did show up. There have been no firmware changes to any of my cameras or my NVR and I did not perform this action alongside any HA updates. All cameras and the NVR are setup with uPNP, Enable UID, basic service (port 9000), HTTPS (443), RTSP (554), and ONVIF (8000). Any idea why these sensors no longer appear when the integration auto-detects the NVR and adds the individual child devices? I do see some errors in the log.
What version of Home Assistant Core has the issue?
core-2023.9.1
What was the last working version of Home Assistant Core?
core-2023.9.1
What type of installation are you running?
Home Assistant OS
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?
Logger: homeassistant.components.reolink.host Source: components/reolink/host.py:615 Integration: Reolink IP NVR/camera (documentation, issues) First occurred: 03:48:23 (2 occurrences) Last logged: 03:48:24 Error processing ONVIF event for Reolink CamNVR: 2 Error processing ONVIF event for Reolink CamNVR: 9 Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/reolink/host.py", line 615, in _process_webhook_data channels = await self._api.ONVIF_event_callback(message) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/reolink_aio/api.py", line 4302, in ONVIF_event_callback self._ai_detection_states[channel]["face"] = state ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ KeyError: 2 Logger: homeassistant.components.reolink.host Source: components/reolink/host.py:615 Integration: Reolink IP NVR/camera (documentation, issues) First occurred: 03:48:23 (1 occurrences) Last logged: 03:48:23 Error processing ONVIF event for Reolink CamNVR: 4 Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/reolink/host.py", line 615, in _process_webhook_data channels = await self._api.ONVIF_event_callback(message) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/reolink_aio/api.py", line 4308, in ONVIF_event_callback self._ai_detection_states[channel]["dog_cat"] = state ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ KeyError: 4 Logger: reolink_aio.api Source: components/reolink/host.py:89 First occurred: 03:48:22 (3 occurrences) Last logged: 03:48:22 Host 192.168.0.89:443 error mapping response to channels, received 119 responses while requesting 158 responses Camera Entrance Camera reported to support zoom, but zoom range not available Camera Patio Camera reported to support zoom, but zoom range not availableAdditional information
As mentioned, all cameras are connected to the NVR and only the NVR is integrated via the ReoLink integration and before doing a fresh re-add of this integration, all cameras' sensors (pet, vehicle, and person) and controls were visible and usable in HA. Here are the camera types just in case you are interested:
Reolink RLC-511WA (now missing binary sensors Person and Vehicle)
Reolink Duo 2 WiFI (now missing binary sensors Person, Pet, and Vehicle)
Reolink E1 Pro (now missing binary sensors Person and Pet; missing select entity PTZ preset)