淘宝上99一个的山寨云台摄像头接入homekit和homeassistant
以前有个小米云台的,信号稳定性差,隔了个铁防盗门门信号差的很
所以换了个山寨的,这货支持rtsp mjpeg都可以拿到地址,非常的方便
接入homekit需要home bridge
接入方式:
homebridge加入homekit config。json内写下以下内容
"platforms": [
{
"platform": "config",
"name": "Config",
"port": 8888,
"sudo": false
},
{
"platform": "Camera-ffmpeg",
"cameras": [
{
"name": "FrontDoor",
"videoConfig": {
"source": "-re -i [url]rtsp://admin:[email protected]:554/12[/url]",
"stillImageSource": "-i [url]http://admin:[email protected]/tmpfs/auto.jpg[/url]",
"maxStreams": 2,
"maxWidth": 1280,
"maxHeight": 720,
"maxFPS": 30
}
}
]
}
],
接入homeassistant:
- platform: onvif
host: 192.168.0.75
username: admin
password: admin
port: 8080
name: Door
也可以用mjpeg等都可以
|