Amcrest Camera Sensor - What would be nice to have in your opinion?

@tchellomello
Sorry for the delayed update, but I ran the 37.1 update and still get the same errors related to the IP3M cameras. I think it might have something to do with a different firmware/web interface differences between the cameras and not being supported the same way. I have removed the IP3M camera from my sensors.yaml to just get rid of the errors for now, and I’ll be pretty busy for the next few weeks with some flooring and painting projects in the house, but I’m more than happy to provide any information needed to help get the IP3M cameras supported.

Hello @tkvtec,

Could you share the traceback you are gettting with the newer version?

Which timezone are you in? We can try to troubleshoot it via gitter.

mmello

@tchellomello
Looks like the latest Amcrest Firmware breaks functionality. I just updated cameras with latest firmware and now all error in HASS.

17-04-10 10:03:30 ERROR (Thread-8) [custom_components.sensor.amcrest] Unable to connect to Amcrest camera: 401 Client Error: Unauthorized for url: http://10.166.2.130:80/cgi-bin/global.cgi?action=getCurrentTime

Hello @tkvtec, thanks for reporting this issue.

We already have an open PR to get this addressed at https://github.com/tchellomello/python-amcrest/pull/72.

Many thanks to the @dparker18.

Oh, great! Thanks for the update. I should have looked.

@tkvtec PR submitted to support new Amcrest firmware.

Many thanks to the @dparker18

https://github.com/home-assistant/home-assistant/pull/7130

Hi, I’ve just got one of the Amcrest IPM-721W indoor camera. What do I need to get started? Do you have comprehensive instructions somewhere that I can follow? Thanks!

1 Like

Yeah also got mine. Not sure how to set it all up with ptz etc.

Late to the party, but it would be super cool to tap into leveraging the two way audio in the amcrest cams that support it. I would love to have automated responses if it recognizes the person in the picture and responses for strangers. May tackle this in the future if i find it’s possible and no one gets to it before me.

Hi @tchellomello, great work that you’ve done here! I see that a few of your updates have made it into homeassistant, but I don’t see the functionality for ptz presets (unless I’m doing something wrong?) Do you plan to push that functionality into HA as well?

@raff take a look at this link https://community.home-assistant.io/t/amcrest-cameras/25605/2

Hmm I seem to be getting a “Sorry, you don’t have access to that topic!” message. Is this a private topic?

Hello @raff,

I’m running the firmware build:2017-06-29 and version 2.520.AC00.18.R. Currently, I have 2 different models: IP2M-841, IPM-723 however only the IP2M-841 has PTZ controls.

How are you trying to control use? You can use the python-amcrest library to control them. For example:

image

Then basically when I click the camera move. The configuration underneath is like this:

#shell_commands.yaml
amcrestcam2_goto_preset_crib: /home/hass/.virtualenvs/hass_venv/bin/amcrest-cli --camera amcrestcam2 --ptz-goto-preset 0 1
amcrestcam2_goto_preset_crib_zoom: /home/hass/.virtualenvs/hass_venv/bin/amcrest-cli --camera amcrestcam2 --ptz-goto-preset 0 4
amcrestcam2_goto_preset_roomview: /home/hass/.virtualenvs/hass_venv/bin/amcrest-cli --camera amcrestcam2 --ptz-goto-preset 0 2
amcrestcam2_goto_preset_nursechair: /home/hass/.virtualenvs/hass_venv/bin/amcrest-cli --camera amcrestcam2 --ptz-goto-preset 0 3
amcrestcam2_goto_preset_mattress_zoom: /home/hass/.virtualenvs/hass_venv/bin/amcrest-cli --camera amcrestcam2 --ptz-goto-preset 0 5

Note that by default, the amcrest-cli will read a configuration set on your directory like this:

↪ ls -la ~/.config/amcrest.conf 
-rw-rw-r--. 1 mdemello mdemello 384 May  5 23:50 /home/mdemello/.config/amcrest.conf

↪ cat /home/mdemello/.config/amcrest.conf
[amcrestcam1]
hostname: 192.168.0.1
username: admin
password: secret
port: 80

[amcrestcam2]
hostname: 192.168.0.2
username: admin
password: secret
port: 80

Please let me know if that helps you.

You can refer for the documentation at https://github.com/tchellomello/python-amcrest#command-line for more examples on how to use the amcrest-cli

mmello

I know this is an old thread, but I’m looking for some help. My son has seizures, so I installed an Amcrest POE camera over his bed to record his night movements. I’ve got the motion detection tied to our nightstand Google Home, playing a short alert when he tosses and turns. I know the camera support audio alarms. Is there a way to activate an audio sensor similar to the motion sensor?
Thanks.

I’ve done quite a bit of enhancement to the Amcrest integration (although I haven’t gotten to the point of being able to share it yet), so I’ve been in the code and I have the HTTP Protocol API Spec from Amcrest. I know via the web interface of my IP2M-841 that there does appear to be settings for enabling and controlling audio detection. However, looking through the spec I don’t see where it has provisions for that. (Nor have I dug into that aspect yet since I didn’t need that capability.) If you like I can spend more time on this tomorrow and see if I can figure it out. Unless someone else knows already.

I’d appreciate all the help I can get. Or if you can point me to where I’d find the HTTP Protocol, I’m game to try and figure it out myself. Thank you.

I believe I found it here:

https://support.amcrest.com/hc/en-us/articles/232310528-Amcrest-HTTP-API-SDK

2 Likes

Hi,

Is two-way audio supported? I’d love to switch my cameras over to HA but need two-way for a couple of them…

Thanks

Would like to see audio detection supported too.

The ffmpeg audio detector built in to home assistant didn’t seem very reliable.

If you amcrest is dahua oem like they often are then you can use this one.

Supports
AudioMutation: intensity change
AudioAnomaly: input abnormal