reolink_dev icon indicating copy to clipboard operation
reolink_dev copied to clipboard

Error Setting Up Platform

Open Swanky-Bubbles opened this issue 7 years ago • 19 comments

Receiving the following error with this component

Error while setting up platform reolink Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 150, in _async_setup_platform await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT) File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for return fut.result() File "/usr/local/lib/python3.7/asyncio/coroutines.py", line 120, in coro res = func(*args, **kw) File "/config/custom_components/reolink/camera.py", line 52, in async_setup_platform reolinkCameraDevice = ReolinkCamera(hass, config) File "/config/custom_components/reolink/camera.py", line 130, in __init__ self._reolink_session = Camera(self._host, self._username, self._password) File "/config/custom_components/reolink/ReolinkCamera.py", line 163, in __init__ super(Camera, self).login(self.username, self.password) File "/config/custom_components/reolink/ReolinkCamera.py", line 27, in login data = json.loads(response.text)[0] File "/usr/local/lib/python3.7/json/__init__.py", line 348, in loads return _default_decoder.decode(s) File "/usr/local/lib/python3.7/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/local/lib/python3.7/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Swanky-Bubbles avatar Sep 18 '19 19:09 Swanky-Bubbles

Seems like the login doesn't get the expected result. Are you sure the credentials are correct in the configuration.yaml? Which camera type do you have?

fwestenberg avatar Sep 19 '19 09:09 fwestenberg

Credentials are correct, using the same ones that work with the generic camera component. Camera is RLC-410

Swanky-Bubbles avatar Sep 19 '19 17:09 Swanky-Bubbles

Same here. RLC-410 with hassio 0.1002 and have done installation via HACS but still get the integration not found.

MichaelRoxin avatar Oct 29 '19 16:10 MichaelRoxin

same here Platform error camera.reolink - Integration 'reolink' not found.

hmmatos avatar Nov 14 '19 15:11 hmmatos

Can you please verify if this issue is still actual with the latest vesion?

fwestenberg avatar Nov 28 '19 05:11 fwestenberg

I got my Reolink E1 a week ago. I checked the version from a few days ago and had the same error. Today with the new version i get the following error in the Log. Unbenannt

In configuration.yaml i have:

camera:
- platform: reolink 
  name: ipcam
  host: 192.168.0.22
  username: admin
  password: 123456789
  scan_interval: 5

Kaibob2 avatar Nov 28 '19 12:11 Kaibob2

Please check your folder structure as mentioned here. This should fix it.

fwestenberg avatar Nov 29 '19 11:11 fwestenberg

Ich changed the directory structure to

a9bc8d0ec7af1a8ab552a081f4627f52710854bc

and added an empty __init__.py file into the reolink_dev and the ReolinkPyPi directory. Now the error after reboot is

Unbenannt

Configuration.yaml is still

camera:
- platform: reolink 
  name: ipcam
  host: 192.168.0.22
  username: admin
  password: 123456789
  scan_interval: 5

Kaibob2 avatar Nov 29 '19 11:11 Kaibob2

I'm sorry, forgot to tell that ffmpeg is required for the camera stream. Just add ffmpeg: to your configuration.yaml, like described here.

fwestenberg avatar Nov 29 '19 13:11 fwestenberg

Nice. Thanks for the support. The integration itself seems to be running now. But i stil get the folowing errors Unbenannt

Unbenannt2

Unbenannt3

Kaibob2 avatar Nov 29 '19 13:11 Kaibob2

I'm not absolutely sure if this is some network issue. I'm unable to connect to the E1 via any browser. Using the Reolink Windows client works flawless, no matter if connecting via UID or IP. The IP is correct and the media Port is set to (default) 9000. RTSP is set to 554.

Kaibob2 avatar Nov 29 '19 13:11 Kaibob2

If you take a look here you'll find your camera does not support this image url.. Any idea what the image url might be?

fwestenberg avatar Nov 29 '19 13:11 fwestenberg

I contacted the support and asked for it. There are no hints across the internet regarding the URL for the E1. I already searched before.

Kaibob2 avatar Nov 29 '19 14:11 Kaibob2

I think this issue is more related to the E1 cam than the integration itself. As soon as there is an URL available let me know. For the time being if you are using the picture glance card like in my example, you can set it to live view (instead of snapshot), or just add a fixed image.

fwestenberg avatar Nov 29 '19 15:11 fwestenberg

Only for completeness. The E1 does not provide any access via URL nor RTSP. Only the App or the Reolink client can access the camera. This is what the support answered me. Sad but true :)

Kaibob2 avatar Dec 02 '19 11:12 Kaibob2

Thanks for the info.

fwestenberg avatar Dec 02 '19 11:12 fwestenberg

Only for completeness. The E1 does not provide any access via URL nor RTSP. Only the App or the Reolink client can access the camera. This is what the support answered me. Sad but true :)

If I take a look at the reolink website, they say that RTSP for E1 Pro can be used? So why is E1 pro "unsupported"? https://support.reolink.com/hc/en-us/articles/360007010473-How-to-Live-View-Reolink-Cameras-via-VLC-Media-Player

mwegener-com avatar Sep 01 '20 07:09 mwegener-com

We were discussing about the E1 without the "pro".

Kaibob2 avatar Sep 01 '20 09:09 Kaibob2

In the Link you provided it clearly says: Applies to: All Reolink IP cameras( Reolink E1 pro and E1 zoom included) except for battery-powered cameras and B800/D800/B400/D400/E1/ Reolink Lumus.

Kaibob2 avatar Sep 01 '20 09:09 Kaibob2