pi_portal.modules.integrations.chat.cli.handler.ChatCLICommandHandler

class pi_portal.modules.integrations.chat.cli.handler.ChatCLICommandHandler(bot: TypeChatBot)[source]

Bases: object

Chat CLI command handler.

Parameters:

bot (TypeChatBot) – The configured chatbot in use.

__init__(bot: TypeChatBot) None[source]
command_arm() None[source]

Arm the security system.

command_disarm() None[source]

Disarm the security system.

command_disk() None[source]

Report the disk space available for camera storage.

command_help() None[source]

Report the list of valid commands.

command_id() None[source]

Report the logger ID the bot is currently running with.

command_restart() None[source]

Terminate the bot, and rely on supervisor to restart it.

command_snapshot() None[source]

Post a realtime camera snapshot to chat.

command_status() None[source]

Report the current status of the security system.

command_temp() None[source]

Report the current temperature from polling the sensors.

command_uptime() None[source]

Report the current uptime of this bot.

handle(command_class: Type[ChatCommandBase]) None[source]

Handle a command class instance.

Parameters:

command_class (Type[ChatCommandBase]) – The command class to invoke.