josepramon / homebridge-mijia-camera

Homebridge plugin for the Xiaomi Mijia 1080P Smart IP Camera, also known as Mi Home Security Camera.
MIT License
38 stars 5 forks source link

[Enhancement] Support for Xiaomi Mijia 1080P Home Panoramic WiFi IP Camera #1

Closed DJay-X closed 5 years ago

DJay-X commented 6 years ago

@josepramon thanks for your work and sharing. Any Idea if your plugin will work with the Xiaomi Mijia 1080P Home Panoramic WiFi IP Camera? https://www.gearbest.com/ip-cameras/pp_009991451325.html?wid=1433363 And any plans for ongoing development? At the moment the plugin works as an on/off switch when I get this right?

Thanks again for the time you are investing. DJay

20180718115734_62475

josepramon commented 6 years ago

Hi, to be honest I don't know if the plugin will work with that specific camera. In my experience, different Xiaomi cameras have different APIs (that's the reason I created this plugin based on this other one: https://github.com/seikan/homebridge-mi-camera).

So, you will need to try. Although I don't have any immediate plans to add support for other cameras, but it should be pretty easy, if you can figure out what commands expects the camera.

So, for example, for the the Xiaomi Mijia 1080P Smart IP Camera, in order to get the current state, one needs to read a property power from the camera, and to change the value, the command is set_power with the appropriate value. With another Xiaomi camera, the property and the command maybe are named differently.

DJay-X commented 5 years ago

Just want to let you know, that the above cam also works On/Sleep with your plugin. 👍🏻 Thx.