Reolink POE IP Camera Setup

Me too. Could you post the setup in the correct format? Use the </>

1 Like

You should change
- platform: reolink

to

- platform: reolink_dev

Just did that and now I get:

Platform error camera.reolink_dev - Integration ā€˜reolink_devā€™ not found.

Hereā€™s what the files look like:
image

It works for me with
- platform: reolink

Are the __init__.py files present in both folders?

I guess this is because in the manifest.json platform is still set to reolink. So both work.

No, when I downloaded the zip file it didnā€™t contain the init files in any of the folders

Yes in both folders.

Are those files automatically created? Because, like I said, I do not see those files anywhere

Got it. Github didnā€™t like the empty files. So now there is a comment line in it. I added the __init__.py files to the git repository.

That did the trick! Thank you sir

Really hope somebody can help you, this HAS to become official (or at least HACSed!)

Iā€™m having some trouble getting this to work. Downloaded today and configured as documented. The custom component loads but no camera entity is created with the below config:

camera:
  - platform: reolink_dev
    name: garage
    host: 192.168.1.173
    username: admin
    password: REDACTED!
    scan_interval: 5

The host, username and password are all correct and I can access the camera from the command line on the system running HA.

Any suggestions as to where I should look to lose this?

Thank you in advance.

Regards,
Michal

I stuck to exactly what he had and that worked and mine is connected to the nvr so just got channel=0
Now I just need to work out how to mod this to include channels 0 to 7 and bring up all cameraā€™s

I tried using platform reolink_dev as documented:

2019-12-03 18:10:31 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for reolink_dev which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2019-12-03 18:10:31 ERROR (MainThread) [homeassistant.config] Platform error: camera
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config.py", line 762, in async_process_component_config
    platform = p_integration.get_platform(domain)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 232, in get_platform
    f"{self.pkg_path}.{platform_name}"
  File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/config/custom_components/reolink/camera.py", line 13, in <module>
    from custom_components.reolink_dev.ReolinkPyPi.camera import ReolinkApi
ModuleNotFoundError: No module named 'custom_components.reolink_dev'

and platform reolink since thatā€™s the custom component directory name:

2019-12-03 20:59:02 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for reolink which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2019-12-03 20:59:02 ERROR (MainThread) [homeassistant.config] Platform error: camera
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config.py", line 762, in async_process_component_config
    platform = p_integration.get_platform(domain)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 232, in get_platform
    f"{self.pkg_path}.{platform_name}"
  File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/config/custom_components/reolink/camera.py", line 13, in <module>
    from custom_components.reolink_dev.ReolinkPyPi.camera import ReolinkApi
ModuleNotFoundError: No module named 'custom_components.reolink_dev'

Neither worked for me :frowning:

i made a copy and have both in my custom components

reolink
reolink_dev

seems to be some where in the code he is referencing both

Oh sorry I just re-read your post
Platform needd to be reolink_dev
Custom component folder needs to be reolink_dev

Yepā€¦ That did itā€¦

Thank you!

Perhaps it would be a good idea to chance the directory name in the github repository to match?

Good to hear.
Now I just need to work out how to fix it to work with the NVR. Or just put a POE switch between the cameras and the NVR so the cams are on the local lan and not just on the NVR local lan

@Harry13 let me know how this goes, as Iā€™m interested in it as well and the NVR just gets in the way!