homebridge-camera-ffmpeg: HomeKit does not see camera

I’m unsure what I did wrong. I am trying to get HomeKit working with my Raspberry Pi 3 B+. HomeKit does not see the camera. I can view the camera with VLC with the URL specified in the config.

  1. I install Raspbian Lite (2018-10-09-raspbian-stretch-lite) to my SD card.

  2. I install Node.js. curl -sL https://deb.nodesource.com/setup_10.x > nodesetup.sh sudo bash nodesetup.sh sudo apt-get install -y nodejs

  3. I install FFMPEG sudo apt-get update sudo apt-get install ffmpeg

  4. I install Homebridge sudo npm install -g --unsafe-perm homebridge

  5. I install homebridge-camera-ffmpeg sudo npm install -g homebridge-camera-ffmpeg

  6. I run Homebridge and exit. Then I create the config file. sudo nano /home/pi/.homebridge/config.json

My config.json:

`{ “bridge”: { “name”: “Homebridge”, “username”: “CC:22:3D:E3:CE:30”, “port”: 51826, “pin”: “031-45-154” },

"description": "This is an initial config for RTSP cameras",

"platforms": [{
	"platform": "Camera-ffmpeg",
	"Cameras": [{
		"name": "UniFi G3 Flex",
		"videoConfig": {
			"source": "-rtsp_transport http -re -i rtsp://myfancy_rtsp_stream",
			"maxStreams": 2,
			"maxWidth": 640,
			"maxHeight": 480,
			"maxFPS": 15,
			"audio": true,
			"debug": true
		}
	}]
}]

}`

I start Homebridge again but there is no camera.

`[11/1/2018, 12:41:40 AM] Loaded config.json with 0 accessories and 1 platforms. [11/1/2018, 12:41:40 AM] — [11/1/2018, 12:41:41 AM] Loaded plugin: homebridge-camera-ffmpeg [11/1/2018, 12:41:41 AM] Registering platform ‘homebridge-camera-ffmpeg.Camera-ffmpeg’ [11/1/2018, 12:41:41 AM] — [11/1/2018, 12:41:41 AM] Loading 1 platforms… [11/1/2018, 12:41:41 AM] [Camera-ffmpeg] Initializing Camera-ffmpeg platform… Setup Payload: X-HM://0023ISYWYN496 Scan this code with your HomeKit app on your iOS device to pair with Homebridge:

Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:

┌────────────┐     
│ 031-45-154 │     
└────────────┘     

[11/1/2018, 12:41:41 AM] Homebridge is running on port 51826. `

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 27 (3 by maintainers)

Most upvoted comments

I take that back. I had to go to “Add Accessory” and then click on “Don’t Have a Code”. The camera showed up there.

Same issue. Homekit adds Homebridge but does not show or allow me to configure the camera. Only the bridge is added to Homekit.