persandstrom / python-verisure

A python module for reading and changing status of verisure devices through verisure app api.
MIT License
138 stars 42 forks source link

Set on/off motion detector for smart cams #65

Closed daweedm closed 5 years ago

daweedm commented 7 years ago

Hello, is it possible to set on/off motion detector for smart cams ?

Thanks !

persandstrom commented 7 years ago

Hi, No, can you do it from the app?

daweedm commented 7 years ago

Hi, Yes, we have a "my cameras" section where there is a motion detector switch for each of them

daweedm commented 7 years ago

img_0486

persandstrom commented 7 years ago

I don't have any cameras myself, so I can't help to reverse engineer it. But it should be possible.

daweedm commented 7 years ago

What tools did you use to spoof the API routes called by the app from the phone ? I could try to do it myself

persandstrom commented 7 years ago

I have used Charles https://www.charlesproxy.com.

You can set a proxy on the wireless connection on your phone and point it to the IP of the computer running charles. You have to enable ssl ploxying in charles as well for the locations e-api02.verisure.com, mymobile.verisure.com, e-api01.verisure.com and sstats.securitas-direct.com

daweedm commented 7 years ago

Thanks for your advices, I'd have liked to contribute to this project but my Python knowledge is limited. If someone faces the same needs, I've done it with PHP : daweedm/php-verisure