|
1 { |
|
2 "bridge": { |
|
3 "name": "Homebridge", |
|
4 "username": "{{ansible_default_ipv4.macaddress | upper}}", |
|
5 "port": {{homebridge_port}}, |
|
6 "pin": "{{homebridge_pin}}" |
|
7 }, |
|
8 |
|
9 "description": "Homebridge", |
|
10 |
|
11 "platforms": [ |
|
12 |
|
13 {"platform": "Camera-ffmpeg", |
|
14 "cameras": [ |
|
15 |
|
16 {% for cam in homebridge_rtsp_cams %} |
|
17 {"name": "{{cam.name}}", "videoConfig": { |
|
18 "source": "-i {{cam.rtsp_url}}", |
|
19 "stillImageSource": "-i {{cam.rtsp_url}} -vframes 1 -r 1", |
|
20 "vcodec": "{{homebridge_rtsp_vcodec}}", |
|
21 "maxStreams": {{homebridge_rtsp_max_streams}}, |
|
22 "debug": {{homebridge_rtsp_debug}} |
|
23 } |
|
24 {% if not loop.last %} |
|
25 }, |
|
26 {% else %} |
|
27 } |
|
28 {% endif %} |
|
29 {% endfor %} |
|
30 ]} |
|
31 |
|
32 ], |
|
33 |
|
34 "accessories": [ |
|
35 { |
|
36 "accessory": "Roomba", |
|
37 "name": "Roomba", |
|
38 "model": "{{homebridge_roomba_model}}", |
|
39 "blid": "{{homebridge_roomba_blid}}", |
|
40 "robotpwd": "{{homebridge_roomba_passwd}}", |
|
41 "ipaddress": "{{homebridge_roomba_ip}}", |
|
42 "autoRefreshEnabled": {{homebridge_roomba_auto_refresh}}, |
|
43 "keepAliveEnabled": {{homebridge_roomba_keep_alive}}, |
|
44 "cacheTTL": {{homebridge_roomba_cache_TTL}} |
|
45 } |
|
46 ] |
|
47 |
|
48 } |