MQTT Connection Module

class JciHitachi.mqtt_connection.JciHitachiMqttEvents(device_access_time: Dict[str, int] = <factory>, job: threading.Event = <factory>, job_done_report: threading.Event = <factory>, peripheral: threading.Event = <factory>)[source]

Bases: object

class JciHitachi.mqtt_connection.JciHitachiMqttConnection(email, password, user_id, print_response=False)[source]

Bases: object

Connecting to Jci-Hitachi MQTT to get latest events.

Parameters:
  • email (str) – User email.

  • password (str) – User password.

  • user_id (int) – User ID.

  • print_response (bool, optional) – If set, all responses of MQTT will be printed, by default False.

property mqtt_events

MQTT events.

Returns:

See JciHitachiMqttEvents.

Return type:

JciHitachiMqttEvents

configure()[source]

Configure MQTT.

connect()[source]

Connect to the MQTT broker and start loop.

disconnect()[source]

Disconnect from the MQTT broker.