I added the presets in the web view tool. The presets work in the web view tool. I can use the UP, DOWN, LEFT, RIGHT and numbered presets in the web view tool and see the camera move in the SmartThings app. However, these functions in the app do not affect the camera.
I have tried deleting the presets and recreating them as well as recreating the Device and Device Handler.
Very strange since I can turn on debug and see the app sending the commands.
Seems to work for others, so it could be my environment. I’ll keep plugging away at it. PTZ functions aren’t too critical. I also run the full Amcrest app on my mobile.
Regarding the video and MJPEG vs. RTSP, depending on how you configured your camera the answer is “both”. There is a switch button in the DTH to allow you to toggle back and forth, but your camera has to have the ports defined that you are giving the DTH.
Let me try to fill in a few more details:
Protocol used:
From the Amcrest camera settings you are looking at the HTTP Port and RTSP Port values under Network -> Connection page.
HTTPS is not supported.
RTSP is currently hard-coded to use port 554, which is the default for the camera.
If you are using the camera locally with the default settings and you have not done any port mappings, the port is 80.
Okay, thanks. I turned debug on and copied the url it’s using from the debug output. It works fine in my browser, but still not working in the SmartThings app. I guess I’ll just have to figure it out.
Video stream won’t load, just says “Camera Unavailable”. I’ve tried switching between RTSP and MJPEG, but same results. Sorry, I didn’t mean to report an issue as it’s probably specific to me, I just assumed it was/is a configuration issue / user error and that it would be a quick answer quick fix. Normally I’d do more research into it before posting up for help.
Also when I hit the snapshot button, it just says “taking” for a long time, but nothing happens.
Yes, but what happens when you try to “Pan Right”.
Grab the logs (including the "parse -> "… lines) and paste them here so I can see what is happening.
I just re-installed this driver on 1 of my Amcrest cameras to test this and the snapshot, video and PTZ all work fine. So let’s see why yours is failing.
Okay, here is everything. I decoded the headers, removed the authorization bits, removed the Device GUID and removed the MAC address, but other than that it’s a copy paste. I don’t know what parts are security risks.
PTZ works, but video isn’t showing.
DONT KILL ME…if this is the reason…but does it have anything to do with me being at work…does the video stream not work over remote connections? I assumed it would be relaying through the ST hub…
You are basically issuing commands to your work WiFi.
If you want to control your home cameras remotely (outside of your home WiFi network) then you need to either establish a VPN connection (difficult, requires additional software and/or hardware) or use a DNS service that will map your public IP to a defined name.
Try this when you get home and let me know if you are still having problems while connected to your home WiFi.
Wait… I am confused… how to you know PTZ and presets work???
I kinda figured that was the case lol. Sorry. I’ve had that in the back of my mind this whole time, but I thought that it would use the ST hub as a relay for the snapshots and mjpeg streaming. I’ll try it when I get home. And when the PTZ commands worked, I really didn’t think that was the issue. I figured if the PTZ commands work, then why doesn’t the video/snapshot.
I already have that set up now, but I only have HTTPS set up for port forwarding.[quote=“Belgarion, post:78, topic:45023”]
Wait… I am confused… how to you know PTZ and presets work???
[/quote]
LOL, as mentioned above, I do have a Dynamic DNS service set up, but my network configuration is only set up for HTTPS connections for security, so I can’t use it with this device type. I’m using the app TinyCam on my android, and I have it set up with my DNS name and it supports HTTPS with credential encryption.
I also have TeamViewer on my home computer and I can view the cameras that way too.