code: def check_power(self):
      
      packet = bytearray(16)
      packet[0] = 1
      response = self.send_packet(0x6a, packet)
      err = response[0x22] | (response[0x23] << 8)
      if err == 0:
        payload = self.decrypt(bytes(response[0x38:]))
        if type(payload[0x4]) == int:
          if payload[0x4] == 1 or payload[0x4] == 3 or payload[0x4] == 0xFD:
            state = True
          else:
            state = False
        else:
          if ord(payload[0x4]) == 1 or ord(payload[0x4]) == 3 or ord(payload[0x4]) == 0xFD:
            state = True
          else:
            state = False
        return state
docs: Returns the power state of the smart plug.