tchellomello / python-amcrest

A Python 2.7/3.x module for Amcrest and Dahua Cameras using the SDK HTTP API.
GNU General Public License v2.0
213 stars 76 forks source link

IP4M-1041 (works!) #207

Open Hukuma1 opened 2 years ago

Hukuma1 commented 2 years ago

Heya! I noticed the device support doesn't list IP4M-1041. Upon initial setup it seems to all be working just fine. Anything I can provide to make sure it's fully working with the library?

Factory camera version:

Software VersionV2.800.00AC002.0.R, Build Date: 2021-05-18
WEB VersionV3.2.1.864542
ONVIF Version18.12(V2.4.5.826858)

Also works with the latest firmware update as well in case people are scared to update:

Software VersionV2.800.0000000.15.R, Build Date: 2021-07-16
WEB VersionV3.2.1.18144
ONVIF Version20.06(V2.9.0.970440)

https://amcrest.com/4mp-wifi-camera-pan-tilt-ip4m-1041.html

dshokouhi commented 2 years ago

Anything I can provide to make sure it's fully working with the library?

Test every feature you can and if it works update the readme to include the model number

blamaz commented 2 years ago

Looking to buy this camara (IP4M-1041) did you succeed in testing all the features ?

Hukuma1 commented 2 years ago

I don't think I ever went back to test "every feature" but it seems to work. What features exactly? I can move the camera, I can invoke Privacy Mode, and cycle through different presets. Let me know of anything specific and I can check it?

clutch70 commented 1 year ago

Mine doesn't seem responsive to commands.. Like I can get it to spit out camera.software_information but a ptz_control_command doesn't do anything.


>>> camera.software_information
('2.800.0000000.15.R', '2021-07-16\r\n')
>>>
>>>
>>>
>>>
>>>
>>> camera.ptz_control_command(action="start", code="Down", arg1=5, arg2=0, arg3=0)
True
>>>```
clutch70 commented 1 year ago

Oh hey belay that!! Setting arg2 instead of arg1 got it moving.

Edit: Came back to confirm functionality for both the 4MP and 1MP models of this camera. So far I've got privacy mode, go to preset, and motion tracking config via my appdaemon worker in HASS. Flippin sweet. Gonna start messing with playing a .wav.

pannal commented 1 year ago

Hey, I've got the IP4M-1041W and there's no privacy mode switch in the cloud app or the web interface. I'm on firmware Amcrest_IPC-AWXX-V2-Rhea_Eng_NP_AMCREST_V2.620.00AC000.3.R.20191218 but have also tested Amcrest_IPC-AWXX-V2-Rhea_Eng_N_AMCREST_V2.620.00AC003.0.R.20220727.

Opening /cgi-bin/configManager.cgi?action=getConfig&name=LeLensMask[0].Enable results in

Error
Bad Request!

Any idea what's going on?

Thank you!

Edit: The only way to turn off the camera seems to be to call /cgi-bin/configManager.cgi?action=setConfig&Encode[0].ExtraFormat[0].VideoEnable=false&Encode[0].MainFormat[0].VideoEnable=false&Encode[0].MainFormat[1].VideoEnable=false&Encode[0].MainFormat[2].VideoEnable=false&Encode[0].MainFormat[3].VideoEnable=false&Encode[0].SnapFormat[0].VideoEnable=false&Encode[0].SnapFormat[1].VideoEnable=false&Encode[0].SnapFormat[2].VideoEnable=false