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

Cancel Call - MQTT-Command #50

Open
bazidibavaria opened this issue Oct 15, 2021 · 0 comments
Open

Cancel Call - MQTT-Command #50

bazidibavaria opened this issue Oct 15, 2021 · 0 comments

Comments

@bazidibavaria
Copy link

bazidibavaria commented Oct 15, 2021

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant