QuantumEntangledAndy / neolink

An RTSP bridge to Reolink IP cameras
GNU Affero General Public License v3.0
317 stars 44 forks source link

Having trouble getting Neolink to work on Home Assistant Yellow #291

Open d102030 opened 3 weeks ago

d102030 commented 3 weeks ago

I'm a brand new HA user, transitioning from Hubitat and running HAOS on a Home Assistant Yellow device. I created a directory called Config/Addons under the parent HomeAssistant directory and put the neolink.toml file in there. I edited it to reflect the Reolink E1 camera I have.

Hence, the file location is in homeassistant/config/addons/neolink.toml. When I start the neolink add on, the log file contains an error:

Error: Failed to read "/config/addons/neolink.toml"

Caused by: No such file or directory (os error 2)

Did I create the directory incorrectly? If so, how do I create the directory in the right place?

HBK1 commented 3 weeks ago

Are all lower case? /config/addons/neolink.toml Linux is case sensitive.....

HBK1 commented 3 weeks ago

config is a link to dir homeassistant so addons should be created under dir homeassistant.

/homeasistant/addons/neolink.toml or /config/addons/neolink.toml seen from /

d102030 commented 3 weeks ago

Thank you HBK1! I figured that out and setup the addons directory in the correct location (i.e. directly under "homeassistant"). When I examine the log after starting it again, there are a ton of entries, so I assume it is running correctly. In particular, there is a line near the top that says "Connecting to camera at Address: :9000 and it shows the UID thereafter as I entered them in the .toml file.

OK, so now how do I create the device or is it created automatically?

QuantumEntangledAndy commented 3 weeks ago

Firstly, the ha adding comes from here https://github.com/dm82m/hassio-addons/tree/main/neolink. So sorry if I get something wrong.

I believe the addon just runs neolink in a docker container. You still need to add the camera yourself. You should be able to find some guides on how to setup on rtsp camera for ha online.

The rtsp camera should be setup to use this url: rtsp://127.0.0.1:8554/{CameraName}

HBK1 commented 3 weeks ago

Localhost when using the HA addon do not work so well so it is best to use the external address of HA and the port but I gave up and started a Debian host and now it is more stable. If you use Frigate you may have to change the port to 8553 instead of 8554.

d102030 commented 3 weeks ago

Thanks to both of you for your advice! I have to figure out what a docker container is. Just to back up a bit, I installed the Neolink-latest add on and then created the toml file and ended up putting it in the correct directory. I checked and verified that the add on is running. I attempted to add the camera using both the generic and reolink camera add ons, to no avail. I assume I'd have to use the generic camera add on but I'm not sure.

Could you provide additional guidance on how to create the camera entity? I'm wondering if I am missing something. Or are you saying that using the RTSP bridge on a Home Assistant Yellow device doesn't work well?

I assume a Debian host means a seperate server of some sort. My preference is to keep it simple and just run Home Assistant stuff on the Yellow device. If that won't work, it would be easier and cheaper for me to just buy another Reolink camera that supports RTSP natively and call it a day.

Let me know if you have any additional comments or advice.

Thanks again!

Jster42 commented 2 weeks ago

What are you trying to use the rtsp feed with? If it is another container in HA rtsp://a14d3924-neolink:8554 Or if external: rtsp://ha ip address:8554