src.nth.io/

summaryrefslogtreecommitdiff
path: root/homebridge/templates/config.json.j2
blob: 5d0a61ae0c9f39c592857a88b4fc6c437d02ba24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
    "bridge": {
        "name": "Homebridge",
        "username": "{{ansible_default_ipv4.macaddress | upper}}",
        "port": {{homebridge_port}},
        "pin": "{{homebridge_pin}}"
    },

    "description": "Homebridge",

    "platforms": [

        {"platform": "Camera-ffmpeg",
         "cameras": [

        {% for cam in homebridge_rtsp_cams %}
            {"name": "{{cam.name}}", "videoConfig": {
                "source": "-i {{cam.rtsp_url}}",
                "stillImageSource": "-i {{cam.rtsp_url}} -vframes 1 -r 1",
                "vcodec": "{{homebridge_rtsp_vcodec}}",
                "maxStreams": {{homebridge_rtsp_max_streams}},
                "debug": {{homebridge_rtsp_debug}}
            }
        {% if not loop.last %}
        },
        {% else %}
        }
        {% endif %}
        {% endfor %}
        ]}

    ],

    "accessories": [
        {
          "accessory": "Roomba",
          "name": "Roomba",
          "model": "{{homebridge_roomba_model}}",
          "blid": "{{homebridge_roomba_blid}}",
          "robotpwd": "{{homebridge_roomba_passwd}}",
          "ipaddress": "{{homebridge_roomba_ip}}",
          "autoRefreshEnabled": {{homebridge_roomba_auto_refresh}},
          "keepAliveEnabled": {{homebridge_roomba_keep_alive}},
          "cacheTTL": {{homebridge_roomba_cache_TTL}}
        }
    ]

}