Status Module

class JciHitachi.status.JciHitachiCommand(gateway_mac_address)[source]

Bases: object

Abstract class for sending job command.

Parameters:

gateway_mac_address (str) – Gateway mac address.

get_b64command(command, value)[source]

A wrapper of get_command, generating base64 command.

Parameters:
  • command (str) – Status name.

  • value (int) – Status value.

Returns:

Base64 command.

Return type:

str

class JciHitachi.status.JciHitachiCommandAC(gateway_mac_address)[source]

Bases: JciHitachiCommand

Sending job command to air conditioner.

Parameters:

gateway_mac_address (str) – Gateway mac address.

get_command(command, value)[source]

Get job command.

Parameters:
  • command (str) – Status name.

  • value (int) – Status value.

Returns:

Bytearray command.

Return type:

bytearray

class JciHitachi.status.JciHitachiCommandDH(gateway_mac_address)[source]

Bases: JciHitachiCommand

Sending job command to dehumidifier.

Parameters:

gateway_mac_address (str) – Gateway mac address.

get_command(command, value)[source]

Get job command.

Parameters:
  • command (str) – Status name.

  • value (int) – Status value.

Returns:

Bytearray command.

Return type:

bytearray

class JciHitachi.status.JciHitachiCommandHE(gateway_mac_address)[source]

Bases: JciHitachiCommand

Sending job command to heat exchanger.

Parameters:

gateway_mac_address (str) – Gateway mac address.

get_command(command, value)[source]

Get job command.

Parameters:
  • command (str) – Status name.

  • value (int) – Status value.

Returns:

Bytearray command.

Return type:

bytearray

class JciHitachi.status.JciHitachiStatusInterpreter(code)[source]

Bases: object

Interpreting received status code.

Parameters:

code (str) – status code.

decode_status()[source]

Decode all status codes of a peripheral.

Returns:

Decoded status.

Return type:

dict

decode_support()[source]

Decode all support codes of a peripheral.

Returns:

Decoded support.

Return type:

dict