Skip to content

[BUG] I cannot get a live video in the Home app #61

@xoniq

Description

@xoniq

I cannot get a live video in my home app, all other switches are working connecting to my Xiaofang camera using MQTT.
I already tried with "disableStream": false, and "disableStream": true,

Here is my config:

{
    "platform": "Dafang",
    "mqtt": {
        "hostBroker": false,
        "port": 1883,
        "host": "XXX.XXX.XXX.XXX",
        "debug": true
    },
    "cameras": [
        {
            "cameraName": "Oprit",
            "cameraRTSPStreamUrl": "rtsp://XXX.XXX.XXX.XXX:8554/unicast",
            "mqttTopic": "thuis/dafang/#",
            "disableStream": false,
            "folder": "/home/media/defang/",
            "recordingDirectoryPathFormat": "MMM-D-YY",
            "recordingFilenameFormat": "DD_MM_YYYY_ HH_mm_ss",
            "accessories": [
                {
                    "name": "Beweging sensor",
                    "type": "richMotionSensor",
                    "threshold": 300000
                },
                {
                    "name": "Nachtzicht",
                    "type": "nightVisionSwitch"
                },
                {
                    "name": "Video opname",
                    "type": "recordVideo"
                },
                {
                    "name": "Afbeelding opname",
                    "type": "captureImage"
                },
                {
                    "name": "Opslag wissen",
                    "type": "clearStorage"
                },
                {
                    "name": "Reset stream",
                    "type": "resetFFMPEG"
                },
                {
                    "name": "Beweging detectie",
                    "type": "motionDetection"
                },
                {
                    "name": "RTSP",
                    "type": "rtspSwitch"
                },
                {
                    "name": "Herstarten",
                    "type": "restartSwitch"
                }
            ],
            "videoConfig": {
                "source": "-rtsp_transport tcp -i rtsp://XXX.XXX.XXX.XXX:8554/unicast",
                "stillImageSource": "-rtsp_transport http -i rtsp://XXX.XXX.XXX.XXX:8554/unicast -vframes 1 -r 1",
                "maxStreams": 5,
                "maxWidth": 1280,
                "maxHeight": 720,
                "maxFPS": 25,
                "vcodec": "h264",
                "debug": true
            }
        }
    ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions