BaQs / pyEzviz

Python package for ezviz cameras
Apache License 2.0
103 stars 45 forks source link

Changing status of alarm notification returns error #41

Closed baxxter70 closed 3 years ago

baxxter70 commented 3 years ago

I have an issue when trying to enable or disable the alarm notification. I receive this error:

Impossible to decode response: Expecting value: line 1 column 1 (char 0)
Response was: <!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EDGE">
<meta charset="utf-8">
<meta HTTP-EQUIV="pragma" CONTENT="no-cache">
<meta HTTP-EQUIV="Cache-Control" CONTENT="no-cache, no-store">
...

It can be reproduced with this command: pyezviz -u XXXX -p XXXX camera --serial XXXX alarm --notify 1

Note that this command works correctly: pyezviz -u XXXX -p XXXX --debug camera --serial XXXX alarm --sensibility 3

Thanks

RenierM26 commented 3 years ago

Hi @baxxter70,

This doesn't work at the moment due to recent changes. You can use the "change defense mode" in the interim.

image

The api does some or other binary connection to this URL that I need to reverse engineer:

"casIp": "eucas.ezvizlife.com", "casPort": 6500,

baxxter70 commented 3 years ago

Hi @RenierM26,

Thanks for the workaround.

Good luck for the reverse engineering.

RenierM26 commented 3 years ago

Hi @baxxter70 ,

Finally managed to reverse engineer the ezviz cas server connection/encryption types. With the latest version your should be able to enable/disable motion detection on individual cameras again.

baxxter70 commented 3 years ago

Hi @RenierM26,

Thanks a lot, it works well.