New House - Existing Lorex DVR system, will it work?

I conceded and I am finally using the Motion Eye Addon on HassIO :unamused:

Thanks for your message. I’m going to give it a try. I have it loaded up but I’m in the middle of changing my entire network system. All new managed switches an AP access points.
Until I receive another need managed switch I do not have network access to my NVR.
Next week?

How does the motion eye work with Lorex?

Jon

I have access to the Lorex NVR again. I have been going over motion eye but I can’t figure out the setup for a camera. Can you post your settings?

1 Like

In Motion Eye --> Add Camera
Camera Type: Network Camera
URL: rtsp://YOUR_NVR_IP_ADDRESS:554/cam/realmonitor?channel=1&subtype=1
Username: YOUR_NVR_UNAME
Password: YOUR_NVR_PWD

Once you type these in, it should take a moment or so to get the Camera feed populated as “(unknown) RTSP/TCP Camera” with a dropdown menu including the UDP option. I am using the TCP option and I added all my cameras using the same settings. I am using MotionEye 0.4.2 and latest HassIO (I think is 0.93) on Ubuntu Linux LTS18.04. I hope this helps you. Good Luck.

Thanks for the info.
I have got everything set as you did and from the web setup of motioneye everything works.
However, when I ticked the (iframe) left panel option I get an error.
I did some searching and found the yaml for iframe motioneye. It fails to load. It only showes me my IP for home assistant.

Blockquote
motioneye:
title: motionEye
icon: mdi:cctv
url: https://192.168.1.5:8765
Blockquote

HI @jaltman056

When you tried the config I gave you did, you monitor the logs and see something like this?

2019-06-03 20:31:59 WARNING (MainThread) [haffmpeg.tools] Error starting FFmpeg.

2019-06-03 20:33:01 ERROR (MainThread) [haffmpeg.core] FFmpeg fails [Errno 2] No such file or directory: ‘ffmpeg’: ‘ffmpeg’

I tried my camera setup on my X86 install running on Ubuntu and got this error I’m working through.

FYI, I found my answer here…

Once I installed it my cameras are working now.

I am using Hass.IO, so for me, all I did was install the montion eye addon and flip the switch on to show it in the sidebar, and I refreshed the page and viola! I am glad to know that your cameras now work!

@jaltman056, were you able to get this going without MotionEye?

Yes I did. I’m sorry I didn’t give you any feedback.

Motion Eye work very well with Lorex dvr. Too bad they just don’t support their products.

I see. No worries! Thank you.

@jaltman056 I finally got this working!

Here’s what I changed -
Added this to -
configuration.yaml

frontend:
javascript_version: latest

stream:

I have a cameras.yaml file, where I added these entries -

On my lovelace, I am using the following 6 cards -

camera: live
entity: camera.camera1
type: picture-entity

camera: live
entity: camera.camera2
type: picture-entity

camera: live
entity: camera.camera3
type: picture-entity

camera: live
entity: camera.camera4
type: picture-entity

camera: live
entity: camera.camera5
type: picture-entity

camera: live
entity: camera.camera6
type: picture-entity

1 Like

Hi

Did you put anything else anywhere as Im getting 2 errors

Component error: javascript_version - Integration javascript_version not found.
Component error: cameras - Integration cameras not found.

I have 2 Skyview cameras on a HView 8 channel DVR.

Do you know what Im doing wrong ?

Thanks in advance

Martyn

ffmpeg:
  ffmpeg_bin: /usr/bin/ffmpeg

frontend:
  javascript_version: latest

stream:

In my configuration.yaml

and the camera config is in my cameras.yaml file

Thanks that got rid of the errors.

Still no stream. I did notice that the names dont seem to match the cameras, is that correct ?

Where is the matching info for the camera names ie camera.camera1 as camera 1 is called cam1?

Thanks

Martyn

Does the stream run locally on a vlc player with the same rtsp link?

Hi, got it working. I found another url input like below and it worked. I now have similar screenshots and streams working in HA as above.

rtsp://192.168.0.20:8554/user=USERNAME_password=PASSWORD_channel=2_stream=0.sdp?real_stream

Thanks for your help

1 Like

Are you using motion Eye? Is port 8554 a typo?

Is port 8554 a typo?

Probably not. 8554 is an alternate port for RTSP.

http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml?search=554

Hi Folks,

absolute n00b here but I’ve got kinda familiar with the Lorex system and noticed some differences with the setup here and what should be used for some systems. It’s a LHA2108LC and I can use the Lorex Client 13 for viewing my cameras on desktop and the Lorex Cirrus app on iOS.

I log in to those with Device ID/IP, port 9000 (disregard this for HA), user (admin) and pw.

In the Lorex Client 13 on desktop (and I think on the DVR itself - it’s in the attic I’m not going up there now) you go to the below path

Settings > Network > RTSP

In there you should have RTSP enabled, Verify is enabled for me, port 554. Below this I have;

Instruction :
Analog Channel: rtsp:////IP:port/chA/B
A:01(ch1),02(ch2)…
B : 0(main stream, 1(sub stream)

So after a bit of fiddling about with that info and the info in this thread I have put camera: !include camera.yaml in my main config and my camera.yaml looks like this;

- platform: ffmpeg
  input: rtsp://admin:[email protected]:554/ch2/0
  name: driveway

- platform: ffmpeg
  input: rtsp://admin:[email protected]:554/ch4/0
  name: back

- platform: ffmpeg
  input: rtsp://admin:[email protected]:554/ch5/0
  name: nursery

I hope this isn’t too n00b for people here, I’m getting to grips with yaml - that took me the longest here in all honesty, but I’m pretty happy I got this sorted!

DC

1 Like

Hi tried setting it up and i see following error in my ha logs:

av.error.HTTPNotFoundError: [Errno 875574520] Server returned 404 Not Found: 'rtsp://admin:[email protected]:554/ch2/0'; last error log: [rtsp] method DESCRIBE failed: 404 Not Found

this is my camera.yaml config

- platform: ffmpeg
  input: rtsp://admin:[email protected]:554/ch2/0
  name: driveway

any ideas how to fix it?

i verified that i have rtsp enabled on port 554. Is there a way to test it without HA, i tried with vlc and no luck