Git Product home page Git Product logo

homebridge-mi-camera's Introduction

homebridge-mi-camera

This is Xiaomi Mi Camera plugin for Homebridge.

mi-camera

Features

  • Switch on / off.

Notes: Only able to wake the camera from sleep or set it to sleep at this moment.

Installation

  1. Install required packages.

    npm install -g homebridge-mi-camera miio
    

    โ€‹

  2. Open Mi Home app and open Mi Camera from the device list.

  3. Go to Network Info and find the IP address of the camera.

  4. On your Homebridge server, open command prompt or terminal. Run following command to discover the device:

    miio --discover --sync
    

    Notes: This will take about a minute or two.

  5. Wait until you get output below with the Address matches with the IP address you found from Network Info.

    Device ID: 50668318
    Model info: Unknown
    Address: 192.168.1.203
    Token: 3574645a6a52526447566b4e69484e42 via auto-token
    Support: Unknown
    
  6. Record down the value value for Token as we need it later.

  7. Add these values to config.json.

      "accessories": [
        {
          "accessory": "MiCamera",
          "name": "Mi Camera",
          "ip": "IP_ADDRESS_OF_THE_CAMERA",
          "token": "TOKEN_DISCOVERED_FROM_STEP_5",
        }
      ]
    

    โ€‹

  8. Restart Homebridge, and your Mi Camera will be added to Home app.

License

See the LICENSE file for license rights and limitations (MIT).

homebridge-mi-camera's People

Contributors

seikan avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.