-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrating Onvif (ie Home Assistant) #8
Comments
@lesleyvanrijn Did your home assistant find the doorbell automatically? |
@BytheWWW Yep, with this settings: Name: Whatever you fancy Submit and it will add the camera to your home assistant instance (if the doorbell and the camera are on the same network). After that you'll have to update the connection type to TCP, like shown below. |
@lesleyvanrijn Was trying to connect through port 8554 🤪 It's visible in HA now. Now the main reason for me to integrate it into HA was to be able to hear a chime through Google home when someone was ringing the doorbell |
@BytheWWW That is possible! 1: Add the MQTT middleware to the doorbell (at the end of that reply is a zip and instructions for adding the middleware).
4: Create a new automation:
|
@lesleyvanrijn Awesome! Will have a look later, but thanks for the tip |
@lesleyvanrijn |
@BytheWWW glad your efforts to get the camera feeds were not a waste! |
@guino Thanks to both you and @lesleyvanrijn 👍🏻 |
@lesleyvanrijn Stil having trouble getting the mqtt to work. Is there any way to see if the mosquitto_pub is being loaded? |
Finally got it working! I needed to put my home assistant username and password in the log_parser.sh, otherwise it wouldn't work. Learned a lot in a short time. Thanks again to all who helped me, especially @guino and @lesleyvanrijn! You guys rock! |
Is it possible to use mqtt with the original pspapp or does that only work with a patched? The example of @m11tch uses a patched pspapp
|
@TopdRob I don't use HA/mqtt but I am pretty sure this will work with original ppsapp (no patch) because none of the patches we made change the output of ppsapp. I would expect it to work, but it's possible different versions of ppsapp would have different outputs. In custom.sh you just have to change the line from
(and copy log_parser.sh to the SD card) |
@TopdRob It works with the original ppsapp. I've got it working on my Google home speaker with HA an mqtt. (there is a small lag but that's too be expected) |
Any idea how I can make HA cast to Google smart display on button press? Onvif is working in HA. My automations.yaml is as follows: `
` |
It is working! |
Have it working but without the What is that meant for ? |
@Tyrian81 i think the payload idle is to 'reset' the pushed state, but I might be wrong. Anyway, can't hurt to add it. Just make sure it comes after the other actions you create |
Hi, I had it working with RTSP, MJPEG and now with ONVIF (I recofigured the WIFI to have the camera on the same VLAN). Unfortunately it does not matter in which mode is the camera configured, once I start to stream the content to my Lenovo Smart Display. There is about 5 seconds ore more lag to realty. I tried without success to start casting directly the camera MJPEG URL that I can watch in VLC but it did not worked. I am not sure did not worked. Thank you anyway for all the development so far. It is really a great $30 camera, now. |
Next to the delay of the stream itself you can gain a small win by making the mqtt call a bit earlier. Adjust in log_parser.sh: |
Thank you for the hint. I will try it out. |
@lesleyvanrijn Hi, |
@Suspect-byte start a telnet session, modify home/cfg/tuya_config.json and restart ppsapp. |
@lesleyvanrijn i am really new to telnet. So I got as far as the terminal with putty and cd to home/cfg/ but how can i edit the tuya_config.json file? I found on google that you can use |
@Suspect-byte the easiest way for people unfamiliar with vi is this: #15 (comment) that said, only 2.9.7 firmware has onvif support. From what I hear you should be able to configure the camera with the RTSP stream (not onvif). |
When i point my NVR (shinobi) to the RTSP stream my doorbell spontaniously reboots over time , any workaround ? whats best to use in NVR software the onvif/rtsp/mjpeg.cgi ? |
@Tyrian81 there's a known issue with cameras rebooting after 13 minutes of viewing the RTSP on UDP (which is default in most clients). If you use TCP this does not happen -- I have left it on overnight several times for testing. The question is how do you configure your NVR to use TCP instead of UDP (if that's possible). If your NVR doesn't support TCP your only option would be to setup a proxy on a computer using ffmpeg so it connects to the camera on TCP and serves the stream in UDP to your NVR. |
ONVIF/RTSP are virtually the same as long as you can specify TCP it should be fine. RTSP is more widely supported and gives you a little more control I think. MJPEG is fine if you don't mind the lower resolution and no audio. |
looks like shinobi does support RTSP over TCP: https://shinobi.video/docs/settings |
@guino Thank you very much set it to use TCP transport !! Yeah continous recording !! Ps. anyway to get 2 way comms working ? |
@Tyrian81 you can use the app for that. Excluding the app how did you want to send the audio to it ? You can currently play wav files on the device (even uploaded files) using play.cgi |
I've not tried it myself yet, but maybe this could work with a nvr if you have a firmware that has no onvif built in. |
@roykaandorp Other than requiring a separate computer/board to run the onvif service for the camera I would expect it to work. |
Is sound working with onvif integration? |
@zuzuman the onvif video feed should have sound if that’s what you’re asking. There’s no sound input support (to play on the device from onvif). For playing sounds on the device the only thing we have is play.cgi (see #10 and #10 (comment) ) |
I have integrated my doorbell with onvif, but sound is missing (live preview and records) - can see video only |
@zuzuman I would suggest: Depending the results the problem can be better defined, but there’s a good chance it could just be the app you’re using and the poor onvif support. |
|
@zuzuman sorry so don’t use/have home assistant so I can’t help much with that. |
@BytheWWW Where exactly did you put the username and password, in the logparser.sh file? Also, I assume that for the IP you put the HA ip, right? |
@AndreiGr did you take a look here: https://github.com/guino/BazzDoorbell/wiki/%5BHow-to%5D-Integrate-with-Home-Assistant,-HomeBridge,-Domoticz,-etc the user/password information for logparser would be in the mosquitto_pub or mqtt_pub line in logparser. |
Yes, I checked it out, and I managed to figure out where to put the username and password. Unfortunately, the MQTT messages still aren't working for me. I can't see anything when I listed to those topics in HomeAssistant, |
@AndreiGr you should test the mqtt messages manually from command line either in telnet from the device OR using some other machine and mosquitto_pub -- once that is working from command line then you can adjust the logparser to use the same script. I don't use Home Assistant so I don't know what all is required to be configured for MQTT to work with it (I use domoticz and home bridge personally and mqtt works fine there). |
I'm not exactly sure how I could test mqtt from command line. Is there a way to see also the response of the command when using telnet? |
@AndreiGr basically you telnet into the device (may need to install telnet in windows): Then assuming you have mosquitto_pub in the SD card it should just typing the command:
Basically the same stuff you were editing in log_parser but you execute it by hand instead of waiting for it to detect motion. Feel free to post a copy of your SD card files (without SDT folder) for review if you like. |
I picked the debug back up today, and after logging into telnet, I kept getting an 'Invalid port given' error, from mosquitto_pub. That's when I realized that I was specifying the MQTT password using the -p flag, instead of -P. So that was the issue all along. Thank you for the help with telnet, I don't think I would've figured it out if I wouldn't have seen that error. |
Guys any idea what is login and password for onvif (4.0.7v)? Admin:admin not working. I get worng password error on my NVR. ONVIF is turn on in Smart Life app. |
@KapitanKapitan I replied to your question here: #95 (comment) |
No description provided.
The text was updated successfully, but these errors were encountered: