Skip to content
This repository was archived by the owner on Sep 25, 2022. It is now read-only.
This repository was archived by the owner on Sep 25, 2022. It is now read-only.

Cancel Call - MQTT-Command #50

@bazidibavaria

Description

@bazidibavaria

Hi,

to stop a call, a new function can be integrated

DAHUA_CONSOLE_RUN_CMD = "console.runCmd"

def console_run_cmd_cancel_call(self):
    _LOGGER.debug("Cancel call")

    def handle_console_run_cmd_cancel_call(message):
        _LOGGER.info(f"Cancel call msg: {message}")

    request_data = {
        "command": "hc"
    }

    self.send(DAHUA_CONSOLE_RUN_CMD, handle_console_run_cmd_cancel_call, request_data)

Additionally a mqtt subscription to an command event should be integrated.

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