@DaveTiff - Hey Dave - did you get the code I posted to work for you?
I would also appreciate learning what Amcrest support told you regarding which API commands to try. Their official stance has been to not use anything but SmartHome app to configure the doorbell, so it is very interesting to know if they have backed off on this a bit.
@DaveTiff - Ah, ok. you had asked for help turning off MD, and didnāt mention the IR issue.
You are not alone with the IR either going on/off constantly or causing the doorbell to reboot. You can review discussions about this issue on the Amcrest Support forum - here.
A related issue is that no matter what you have set the IR mode to in the app, a weekly forced Tuesday 2AM reboot resets it. We have found that if you configure the IR to āManualā mode and adjust the intensity, these IR problems can be avoided. It depends on the situation what intensity value works bests. One guy said 95%, another said 15% intensity worked best, so there is a wide range, but the good news, this fixed their issues.
What did Amcrest support ask you to try via the API?
EDIT: forgot to mention - IR issues are often caused by the transformer. Some think lowering the intensity helps with borderline cases of insufficient voltage/amperage.
Ok, thanks Dave. MotionDetect[0].Enable is the normal config other Amcrest/Dahua cameras use. This is NOT what the SmartHome app toggles though. The app leaves this enabled true all the time and instead toggles Alarm[0].Enable. It may accomplish the same thing, but for the doorbell, I doubt it.
Their reply does seem to indicate that even Amcrest Support isnāt fully aware of how the API on this doorbell works and is referring to older API documentation for you to try.
Ding or dong, vs ding/dongā¦ could be many reasons for that. 1) wired to the backdoor terminals that only ding, no dong. 2) Chime is mounted upside down so gravity doesnāt bring the hammer down for a dong. 3) bell unit is mechanically broken. 4) the chime kit is switching too slow, which might slow the gravity falling of the hammer, muting the dong after a ding. The former 3 issues are easy to see/fix. The latter would require an o-scope and additional circuitry to see/fix.
Unless we can safely change iFrame interval and/or frame rate in the AD110, I think we are stuck with the lag with STREAM enabled. Itās a complicated dance in how Stream works that I canāt explain other than to refer comments made by the head developer of Stream.
You may find this post interesting as it contains a detailed review of several different camera integrations with, and without stream enabled. Also note the reply from the developer, hunterjm.
BTW - we do know that it is possible to modify AD110 video configurations via the API, but one guy who tried it confirmed it worked, but then his AD110 died shortly after. It could have been due to overheating the CPU with the different settings, or it could have been coincidental.
Coming in the next .115 update are significant improvements to Stream (such as adding audio). I did not see in the PRās anything related to lag improvements though.
EDIT (12/2021) - An important improvement to STREAM was the addition of a new āLL-HLSā Low Latency option. Iāve added it to my stream config and it works! Now, I am only seeing about 2.5 seconds of lag on both ethernet cameras and Wi-Fi doorbell. I can live with that.
Also, you do not need the āextra_argumentsā that I showed in my early example. This was just an example of how to crop an image when snapshots are taken.
The lag on my AD110 varies from about 8 to 13 seconds via HA stream. Itās not great. Itās also not a unique issue to the doorbell camera as you can see from the referenced post.
ive made similar integration as you did, the lag remains, yeah and vlc is faster on pc.
Maybe there is a way to change from ffmpeg to other stream, or it is default and no options?
if i connect a hikvision camera to HA ill have same 10-15s lag?
also how did you make snapshots sent using telegram?
In the post I referred you to, the author was using Hikvision cameras. You can see all the variations he tried with and without Stream enabled and the effect it had on video lag. He was also seeing ~13 sec lag with Hikvision/Stream.
I also refer you to this reply from the developer on tweaks that should helpā¦
Those tweaks can be done via the Hikvision camera web UI, but since I donāt have these cameras, I canāt offer any other advice on what to try.
Correct - itās how Stream works with HLS/H.264 processing. But as mentioned before, there are tweaks that can be done to improve/optimize this processing.
Whatās unknown at this point is what can be done to optimize the AD110 āsafelyā via the API.
Iāll also point out that I saw one of the PRās to Stream in HASS .115 was to support the next generation format - HEVC H.265. This is a more efficient video format that should really help - if the browser and/or device supports it.
EDIT: H.265 turns out to not be very practical at this time unless you are only going to use the Safari browser or Edge/IE with hardware support for H.265. No other browsers support it. Doubtful it would have much effect on reducing lag in any case.
What firmware version is your unit currently on? (already told them this) I believe that our team is working on an update to fix this issue was I have noticed an increase in this IR problem occurring. As of now, I donāt have an ETA as to when it will be released however from what I was told the update is in the final testing stages.
For anyone interested, hereās how to toggle the AD110 blue button indicator light . The code below creates a switch that can be used in automations. It will also reflect the current state of the light. The SmartHome appās āDevice Indicatorā switch will also automatically update and reflect the current on/off status.
Does anyone else have an issue with the SmartHome app āCall Notificationā turned off, not actually turning off push notifications from doorbell/motion alerts?
(Running 200702 firmware, not the newest 200828 that was retracted).
Thanks.
.
I just wrapped up dealing with Amcrest over my defective AD110 today, they finally agreed to replace it.
I simply cannot get the Amcrest app to stream video while RTSP is being sent to Node-REDā¦ they of course started by pointing the finger at my transformer, to which I did upgrade, but it didnāt help.