ffmpegpluginforHomebridge
InstallationInstallffmpegonyourRaspberryInstallthispluginusing:npminstall-gnpmihomebridge-video-doorbell-button--unsafe-permEditconfig.jsonandaddthecameraandaddMi/AqaraButton.RunHomebridgeAddextracameraaccessoriesinHomeapp.Thesetupcodeisthesameashomebridge.config.jsonexample{"platform":"Video-DoorbellV2","camera":{"name":"Домофон","videoConfig":{"source":"-rtsp_transporttcp-irtsp://192.168.1.16/unicast","stillImageSource":"-irtsp://192.168.1.16/unicast-vframes1-r1","maxStreams":2,"maxWidth":1280,"maxHeight":720,"maxBitrate":1600,"maxFPS":20,"audio":true,"vcodec":"h264_omx"}},"event":{"buttonSid":"158d00029088e3","gpio":7,"motion":false,"switch":{"name":"DingDong"},"http":true},"lock":{"name":"Lockmechanism","gpio":5,"http":{"unlock":"https://192.168.1.6:4343/unlock"}}}EventsbuttonSidsidforMiorAqaraswitch.
gpioGPIOnumber,totriggerplugtoground(GND).
motionvirtualmotionaccessoryandswitchfortriggermotion.
switchvirtualswitchaccessoryfortriggerdoorbell.
-Youcannotadd"motion"and"switch"atthesametimehttpHTTPserverforeventbridge"getorpostrequest"ip:6412/dingdong(example:https://192.168.1.2:6412/dingdong).
LockmechanismgpioGPIOnumberforlock.
httpHTTPurlforlock(example:https://192.168.1.6:4343/unlock).
Incidentally,checkiSpyConnect'scameradatabasetofindlikelyprotocolsandURLstotrywithyourcamera.
评论