blinkpy: Cannot arm/disarm Blink Mini Cameras
Describe the bug Currently no endpoint is implemented to individually arm/disarm blink mini cameras. It can only be done if the camera is added as a standalone device to the Blink app (akin to a Sync Module).
Expected behavior Ability to enable/disable motion detection for a Blink Mini camera attached to a Sync Module.
Home Assistant version: 0.114.0
blinkpy version: 0.16.x
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 2
- Comments: 39 (14 by maintainers)
I can confirm this works as of today! I shall make a PR with these in.
If I can help I will - I have 2 minis and 5 XT2 cameras. I’d love to disable motion detection on the Mini’s inside when we’re at home. I have the arming and disarming working well based on location and the overnight arming too. Would just like to disable the motion detection on the internal cameras. Shout if you need someone to test.
Yep this is on my radar to add in, but haven’t had time. I’m hoping I can mess with it sometime this month
Hi @fronzbot et al ,
Seems to work here. In api.py I added:
in camera.py -> BlinkCameraMini -> arm I call:
api.minicam_arm(self.sync.blink, self.network_id, self.camera_id, value)In my main code sample:
And the camera shows disarmed in my phone app. Set camera.arm to True and it shows back to enabled in my phone app.
Perhaps it just me?
Cheers, DrJES
The main issue is finding the right api endpoint. If you go to the camera.py module and compare it with the default methods called in api.py you can see the Mini cameras usually have the same url format with the only change being “owls” added to the url. I tried some combinations for the arming url, but it didn’t work. Admittedly I didn’t try very hard so it’s possible some simple combination will do the trick. Just a matter of testing it out.
You could do this on your own in python with the module by following the request formats in api.py. Really, once we find the url it’s ridiculously easy to implement it because I already have everything set up for that.