GithubHelp home page GithubHelp logo

maxmudjon / homebridge-video-doorbell-button Goto Github PK

View Code? Open in Web Editor NEW
12.0 6.0 3.0 14 KB

Video Doorbel plugin for Homebridge

License: Apache License 2.0

JavaScript 100.00%
homebridge video-doorbel-plugin camera ffmpeg doorbell video-doorbell aqara mi switch gpio

homebridge-video-doorbell-button's Introduction

homebridge-video-foorbell

ffmpeg plugin for Homebridge

Installation

  1. Install ffmpeg on your Raspberry
  2. Install this plugin using:
npm install -g npm i homebridge-video-doorbell-button --unsafe-perm
  1. Edit config.json and add the camera and add Mi/Aqara Button.
  2. Run Homebridge
  3. Add extra camera accessories in Home app. The setup code is the same as homebridge.

config.json example

{
  "platform": "Video-DoorbellV2",
  "camera": {
    "name": "Домофон",
    "videoConfig": {
      "source": "-rtsp_transport tcp -i rtsp://192.168.1.16/unicast",
      "stillImageSource": "-i rtsp://192.168.1.16/unicast -vframes 1 -r 1",
      "maxStreams": 2,
      "maxWidth": 1280,
      "maxHeight": 720,
      "maxBitrate": 1600,
      "maxFPS": 20,
      "audio": true,
      "vcodec": "h264_omx"
    }
  },
  "event": {
    "buttonSid": "158d00029088e3",
    "gpio": 7,
    "motion": false,
    "switch": {
      "name": "Ding Dong"
    },
    "http": true
  },
  "lock": {
    "name": "Lock mechanism",
    "gpio": 5,
    "http": {
      "unlock": "http://192.168.1.6:4343/unlock"
    }
  }
}

Events

buttonSid

sid for Mi or Aqara switch.

gpio

GPIO number, to trigger plug to ground (GND).

motion

virtual motion accessory and switch for trigger motion.

switch

virtual switch accessory for trigger doorbell.

- You cannot add "motion" and "switch" at the same time

http

HTTP server for event bridge "get or post request" ip:6412/dingdong (example: http://192.168.1.2:6412/dingdong).

Lock mechanism

gpio

GPIO number for lock.

http

HTTP url for lock (example: http://192.168.1.6:4343/unlock).

Incidentally, check iSpyConnect's camera database to find likely protocols and URLs to try with your camera.

homebridge-video-doorbell-button's People

Contributors

maxmudjon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

homebridge-video-doorbell-button's Issues

How to add aqara button

How to add aqara button.
I have aqara security hub and have button in front door as doorbell.
How I find the "buttonSid" number?

Получаю ошибку FFmpeg exited with code -2

[2020-9-4 17:02:04] [Video-DoorbellV2] Snapshot from undefined at 480x270
[2020-9-4 17:02:04] [Video-DoorbellV2] An error occurs while making snapshot request
[2020-9-4 17:02:07] [Video-DoorbellV2] Start streaming video from undefined with 1280x720@299kBit
[2020-9-4 17:02:07] [Video-DoorbellV2] An error occurs while making stream request
[2020-9-4 17:02:07] [Video-DoorbellV2] ERROR: FFmpeg exited with code -2

Хотя если подключаю через "platform": "Camera-ffmpeg", вместо "platform": "Video-DoorbellV2", то всё работает корректно!
Подскажите, пожалуйста в чем проблема

А также возможно подключить кнопку не от aqara а gpio от реле sonoff sv к примеру?
Заранее благодарю

credentials for lock url

hey,
how can i add the credentials for the lock?
on browser i have to enter username and password for the http action.

if i put the credentials into the url, i get an error on homebridge log

<title>401 Unauthorized</title>

Unauthorized

This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.

Thanks!

2-way audio

hey,
thank you for this plugin - i tried for some days to get in run.
my hardware is a synology nas with docker for my homebridge and an AXIS A8207-VE doorstation.
video is working fine, still image also!
audio from camera is working, doorbell notification is working and door opener is working!
but i miss 2 way audio, to answer the person in front of the door.
the axis app / die camera has microphone and speaker - it works on axis app.

is it possible to use in home app? Big thanks!

Конфликтует с другим плагином

После добавления плагина подсветка хаба и кнопка добавления устройств пишут нет ответа.Скорее всего это из-за конфликта плагинов

using GPIO pins

Can you make support for using GPIO pins?

  • for button
  • for control lock(better if it will be with setting for time how much relay will hold lock - eltctromagnetic or electromecanic)
  • sensor to control door state.

Usecase?

Do I need to have a program making the rtsp stream or does this make the stream itself from a connected camera? And if it does only just need a stream: what are the requirement? can this be a http stream or how does it work?

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.